Skip to content

Commit

Permalink
auditbeat - Add backlog_wait_time_actual to show-status
Browse files Browse the repository at this point in the history
Now that go-libaudit support backlog_wait_time_actual this field
can be output from the show-status command on Linux 5.9+ kernels.

There were no tests for this code so I did a quick manual smoke test
on 5.10.

Relates elastic#31519
  • Loading branch information
andrewkroh committed May 5, 2022
1 parent b5771a8 commit c1d900c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...main[Check the HEAD dif

*Auditbeat*

- Add `backlog_wait_time_actual` to the output of the `auditbeat auditd show-status` command. {pull}NNNN[NNNN]

*Filebeat*

Expand Down
2 changes: 2 additions & 0 deletions auditbeat/module/auditd/show_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func showAuditdStatus() error {
"lost %d%c"+
"backlog %d%c"+
"backlog_wait_time %d%c"+
"backlog_wait_time_actual %d%c"+
"features %s\n",
status.Enabled, separator,
status.Failure, separator,
Expand All @@ -132,6 +133,7 @@ func showAuditdStatus() error {
status.Lost, separator,
status.Backlog, separator,
status.BacklogWaitTime, separator,
status.BacklogWaitTimeActual, separator,
fmt.Sprintf("%#x", status.FeatureBitmap))

return nil
Expand Down

0 comments on commit c1d900c

Please sign in to comment.