Skip to content

DDS: Linux Audit Logs Updates #20345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions linux_audit_logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This integration provides enrichment and visualization for various log types, in
- **User and group** management activities
- **SELinux user** errors
- **Access Vector Cache (AVC)** logs
- **System Call** logs

It supports these logs across **Red Hat**, **Ubuntu**, and **CentOS** Linux operating systems.

Expand Down Expand Up @@ -79,6 +80,25 @@ For Linux, run:
sudo systemctl restart auditd
```

### Set up Audit Rules (optional)

1. Create or Edit the audit rules file:
```shell
sudo nano /etc/audit/rules.d/audit.rules
```

2. Configure the audit rules based on your requirements. For reference, see [audit rulesets][9].

3. Reload audit rules:
```shell
sudo augenrules --load
Copy link
Contributor

Choose a reason for hiding this comment

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

Just want to confirm that augenrules is the correct spelling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's the correct spelling.

```

4. Verify loaded rules:
```shell
sudo auditctl -l
```

### Validation

[Run the Agent's status subcommand][8] and look for `linux_audit_logs` under the Checks section.
Expand Down Expand Up @@ -134,3 +154,4 @@ Need help? Contact [Datadog support][1].
[6]: https://docs.datadoghq.com/agent/guide/integration-management/?tab=linux#install
[7]: https://github.com/DataDog/integrations-core/blob/master/linux_audit_logs/datadog_checks/linux_audit_logs/data/conf.yaml.example
[8]: https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information
[9]: https://github.com/Neo23x0/auditd/tree/master
Loading
Loading