File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # ausearch
2
+
3
+ > Query the Linux audit log for events.
4
+ > Part of the ` audit ` package.
5
+ > See also: ` audit2why ` , ` audit2allow ` , ` aureport ` .
6
+ > More information: < https://manned.org/ausearch > .
7
+
8
+ - Search for all SELinux AVC denial events:
9
+
10
+ ` sudo ausearch {{[-m|--message]}} avc `
11
+
12
+ - Search for events related to a specific executable:
13
+
14
+ ` sudo ausearch {{[-c|--comm]}} {{httpd}} `
15
+
16
+ - Search for events from a specific user:
17
+
18
+ ` sudo ausearch {{[-ui|--uid]}} {{1000}} `
19
+
20
+ - Search for events in the last 10 minutes:
21
+
22
+ ` sudo ausearch {{[-ts|--start]}} recent `
23
+
24
+ - Search for failed login attempts:
25
+
26
+ ` sudo ausearch {{[-m|--message]}} user_login {{[-sv|--success]}} no `
27
+
28
+ - Search for events related to a specific file:
29
+
30
+ ` sudo ausearch {{[-f|--file]}} {{path/to/file}} `
31
+
32
+ - Display results in raw format for further processing:
33
+
34
+ ` sudo ausearch {{[-m|--message]}} avc --raw `
You can’t perform that action at this time.
0 commit comments