You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ReapProcesses, if enabled, will tell the process DB reaper thread to also remove orphaned process exec events, in addition to orphaned exit events and compleated process events.
21
+
// This can result in data loss if auditbeat is running in an environment where it can't properly talk to procfs, but it can also reduce the memory footprint of auditbeat.
Copy file name to clipboardExpand all lines: x-pack/auditbeat/processors/sessionmd/docs/add_session_metadata.asciidoc
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ auditbeat.modules:
70
70
- module: auditd
71
71
processors:
72
72
- add_session_metadata:
73
-
backend: "auto"
73
+
backend: "auto"
74
74
-------------------------------------
75
75
+
76
76
. Add audit rules in the modules configuration section of `auditbeat.yml` or the
@@ -96,3 +96,25 @@ auditbeat.modules:
96
96
-------------------------------------
97
97
sudo systemctl restart auditbeat
98
98
-------------------------------------
99
+
100
+
===== Configuring the Process Database
101
+
102
+
When using the `procfs` backend, `add_session_metadata` will use an in-memory database to store and match events as they arrive to the processor.
103
+
This processor has a number of additional config values:
104
+
105
+
[source,yaml]
106
+
-------------------------------------
107
+
auditbeat.modules:
108
+
- module: auditd
109
+
processors:
110
+
- add_session_metadata:
111
+
backend: "procfs"
112
+
reap_processes: false
113
+
db_reaper_period: 30s
114
+
-------------------------------------
115
+
116
+
* `reap_processes` tells the database to remove orphan `execve` and `execveat` process events for which no matching `exit_group` event is found.
117
+
This may result in incomplete data, but will reduce memory usage under high load. The default is `false`.
118
+
* `db_reaper_period` specifies the time interval of the reaper process that will regularly remove exited and orphaned processes from the database.
119
+
Setting this value lower my result in incomplete data, but will reduce memory pressure. Setting this to a higher value may help on systems with high load, but will increase memory usage.
0 commit comments