File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ) ) )
You can’t perform that action at this time.
0 commit comments