Skip to content

Commit 3115556

Browse files
authored
ausearch: add page (#18452)
1 parent 3d79e48 commit 3115556

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

pages/linux/ausearch.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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`

0 commit comments

Comments
 (0)