Skip to content

Commit

Permalink
adjust drop condition; revert test case for docker
Browse files Browse the repository at this point in the history
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
  • Loading branch information
tetianakravchenko committed Feb 4, 2022
1 parent 005cdbe commit 264c8d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion filebeat/module/elasticsearch/audit/ingest/pipeline-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ processors:
field: event.type
path: elasticsearch.audit
- drop:
if: '!["rest", "transport", "ip_filter", "security_config_change"].contains(ctx.elasticsearch?.audit?.event?.type)'
if: 'ctx.elasticsearch.audit.containsKey('type') && ctx.elasticsearch.audit.type != 'audit'
- drop:
if: '!ctx.elasticsearch.audit.containsKey('type') && !["rest", "transport", "ip_filter", "security_config_change"].contains(ctx.elasticsearch?.audit?.event?.type)'
- remove:
field: elasticsearch.audit.type
ignore_missing: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
{"type": "audit", "timestamp":"2019-06-11T15:03:32,102+0000", "node.id":"Xaq2BFVcQ1OhyMrjL8gNOg", "event.type":"rest", "event.action":"anonymous_access_denied", "origin.type":"rest", "origin.address":"172.17.0.1:40380", "url.path":"/", "request.method":"GET", "request.id":"pkduyMB5Tly6xgmkYbZi-A"}
{"type": "server", "timestamp": "2019-06-11T15:03:32,777+0000", "level": "INFO", "component": "o.e.x.s.a.AuthenticationService", "cluster.name": "docker-cluster", "node.name": "dff7befc418f", "cluster.uuid": "xEiKc6ipRiyzU8_8czXrJw", "node.id": "Xaq2BFVcQ1OhyMrjL8gNOg", "message": "Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]" }
{"type": "audit", "timestamp":"2019-06-11T15:03:32,778+0000", "node.id":"Xaq2BFVcQ1OhyMrjL8gNOg", "event.type":"rest", "event.action":"authentication_failed", "user.name":"elastic", "origin.type":"rest", "origin.address":"172.17.0.1:40380", "url.path":"/", "request.method":"GET", "request.id":"KPgEINaXSbGNaIobp8OcMw"}

0 comments on commit 264c8d1

Please sign in to comment.