Hi, everyone
I have been working with module Audit Module in order to log any execution of kubectl.
Here you are my config:
auditbeat.modules:
- module: auditd
audit_rules: |
-a always,exit -F exe=/usr/bin/kubectl -F arch=b64 -S execve -k kubectl
logging.level: warning
logging.to_files: true
logging.files:
path: /var/log/auditbeat
name: auditbeat
keepfiles: 3
output.kafka:
hosts: ["<ip>:<port>"]
topic: "<topic-name>"
It logs any execution of kubectl, however it logs more things, like when I do sudo. Is it normal this behaviour ?
Thanks in advance,
Rodrigo