Hello team,
We are enabling kibana Audit logs to monitor login/logout activities. But we need only authentication type logs and event.category: database or web we need to drop.
We have added below config in kibana.yml and it is working as expected.
xpack.security.audit.enabled: true
xpack.security.audit.ignore_filters: // filter out database and weblog
- categories: [database,web]
But, there are certain unwanted logs are coming from other sources where event.category: database
is present. We are unable to drop these logs and it is getting ingested into Elasticsearch which taking unnecessary space in our ELK server.
Can you please let us know is there any way to drop all these below events.
Can you please help us to drop logs from below log.file.path:
/app/logs/0c80175b078c444aa4772b5090b91985_server.json
/app/logs/kibana-json.log
/app/logs/gc.output
/app/elastic-agent/data/logs/elastic-agent-20231218.ndjson
Need Below logs only:
Need to get only logs where event.category: authentication
and log.file.path: /app/logs/kibana_audit.json