Skip to content

Commit 6b044fc

Browse files
committed
Dropping trash logs, updating comments and removinf unused fields from the output
1 parent 6bddb5d commit 6b044fc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

filters/filebeat/elasticsearch_module.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Fields based on https://www.elastic.co/guide/en/elasticsearch/reference/8.17/audit-event-types.html,
33
# https://www.elastic.co/guide/en/beats/filebeat/7.13/filebeat-module-elasticsearch.html
44
# and filebeat fields.yml version 7.13.4 oss
5-
# Support only audit logs from elasticsearch 7++
5+
# Support only server and audit logs from elasticsearch 7++
66
# Filter Input requirements -> fileset: datatype
77
# server: plain text, json
88
# audit: plain text, json
@@ -660,6 +660,8 @@ pipeline:
660660
- log.user
661661
- log.apikey
662662
- log.authentication
663+
- log.origin
664+
663665
# Droping unwanted logs
664666
- drop:
665667
where:
@@ -670,4 +672,4 @@ pipeline:
670672
- get: log.component
671673
as: cmp
672674
ofType: string
673-
expression: act_ok == true && cmp_ok == true && ( (act != "elasticsearch.server" && act != "elasticsearch.audit") || (act == "elasticsearch.server" && (cmp.contains("audit")==false && cmp.contains("Audit")==false ) ) )
675+
expression: act_ok == true && cmp_ok == true && ( (act != "elasticsearch.server" && act != "elasticsearch.audit") || (act == "elasticsearch.server" && (cmp.matches("(A|a)udit")==false && cmp.matches("(S|s)(S|s)(L|l)")==false && cmp.matches("(S|s)ecurity")==false ) ) )

0 commit comments

Comments
 (0)