Skip to content

[202411]Ignore audit rate limit exceeded syslog and avoid false alert for kernel syslog#19134

Merged
StormLiangMS merged 1 commit intosonic-net:202411from
ZhaohuiS:ZhaohuiS/ignore_syslog_202411
Jun 24, 2025
Merged

[202411]Ignore audit rate limit exceeded syslog and avoid false alert for kernel syslog#19134
StormLiangMS merged 1 commit intosonic-net:202411from
ZhaohuiS:ZhaohuiS/ignore_syslog_202411

Conversation

@ZhaohuiS
Copy link
Copy Markdown
Contributor

…rnel syslog

Description of PR

Summary:
Fixes # (issue)
Cherry pick #19110 into 202411

  1. 2025 Jun 14 02:28:46.206949 str2-8101-05 ERR kernel: [17800.425621] audit: rate limit exceeded

This syslog was caused by setting rate limit and many audit syslog exceed the rate limit. Due to security, we enable audit syslog, but in some sonic-mgmt cases, it enables rate limit, so many audit syslogs could exceed the rate limit and it will print out this error.
Confirmed with feature owner, we can ignore this error syslog to avoid teardown error for many cases.

  1. 2025 Jun 12 05:51:29.810090 str2-7050cx3-acs-01 NOTICE kernel: [16041.304670] audit: type=1300 audit(1749707485.287:111698): arch=c000003e syscall=59 success=yes exit=0 a0=7f11c7911010 a1=560342061e40 a2=7ffee6493a08 a3=0 items=2 ppid=265359 pid=265360 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=21 comm="kill" exe="/usr/bin/kill" subj=unconfined key="process_audit""

The syslog above is NOTICE level, but it matched the regex pattern "kernel:.*kill" in tests/common/plugins/loganalyzer/loganalyzer_common_match.txt.
Need to add a new ignore pattern to avoid this false alert.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Cherry pick #19110 into 202411

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

…rnel syslog

Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit 75d1ac7 into sonic-net:202411 Jun 24, 2025
14 checks passed
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Jun 30, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   760eb7c (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250624:1905 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * 2e3c1ba (base/202411) zitingguo-ms 250623:2336 - [test_dynamic_acl] Include all upstream neighbors for t0-d18u8s4 (sonic-net#19052)
| * 0c75f5a zitingguo-ms 250623:2335 - [test_bgp_session] Increase timeout to wait hold-timer (sonic-net#18891)
| * 75d1ac7 Zhaohui Sun 250624:1432 - [202411]Ignore audit rate limit exceeded and avoid false alert for kernel syslog (sonic-net#19134)
| * 88304be Sai Kiran 250528:1155 - [fib_test] Updated deprecated imports that break in Python 3.10+ (sonic-net#18544)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants