We have an audit.rules
defined and things in rules.d
. Many of these are for RHEL CIS compliance and others are more specific for Docker CIS compliance.
One problem we are having is that certain rules (i.e. docker file system rules) account for TBs of monthly logs as we have some servers that are extremely active docker worker nodes. This is blowing up the costs of ingesting these audit logs. We wanted to find a way to separate the auditd logs produced by docker rules into a different file and all of the other CIS RHEL rules that are in place so that we can use our log aggregation agent to forward the dockerd logs to a lower cost solution.
Another approach I considered was since the audit.rules for docker each have a k=docker
I could filter the logs out using that key but the problem is that that key is only associated with one of the audit components (i.e. SYSCALL) but the other logs that correspond to the SYSCALL, like PATH and PROCTITLE don't have this key directly on the record so it's not "easy" to filter them out.
I haven't been able to figure out a way to do this. Anyone have any recommendations for how to separate audit logs from different rules out?