Open leweafan opened 2 years ago
Pinging @elastic/integrations (Team:Integrations)
Hi! We just realized that we haven't looked into this issue in a while. We're sorry!
We're labeling this issue as Stale
to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1
.
Thank you for your contribution!
Describe the enhancement:
Filebeat Elasticsearch ingest pipeline can't parse failed authentication message. ECS fields important for SIEM like event.category, event.type, event.action, event.outcome and user.name are missing.
Failed authentication message should have fields:
Describe a specific use case for the enhancement or feature:
File /var/log/elasticsearch/elastic_server.json
{"type": "server", "timestamp": "2022-07-04T20:13:03,991+03:00", "level": "WARN", "component": "o.e.x.s.a.RealmsAuthenticator", "cluster.name": "elastic", "node.name": "elastic01", "message": "Authentication to realm default_native failed - Password authentication failed for xxx", "cluster.uuid": "1111111-1111111111_111", "node.id": "2222222222-2222222222" }
{"@timestamp":"2023-06-05T20:09:45.735Z", "log.level": "INFO", "message":"Authentication of [remote_monitoring_user] was terminated by realm [reserved] - failed to authenticate user [remote_monitoring_user]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elastic01][system_critical_read][T#4]","log.logger":"org.elasticsearch.xpack.security.authc.RealmsAuthenticator","elasticsearch.cluster.uuid":"1111111-1111111111_111","elasticsearch.node.id":"2222222222-2222222222","elasticsearch.node.name":"elastic01","elasticsearch.cluster.name":"elastic"}
--
File /var/log/elasticsearch/elastic.log
[2022-07-04T20:13:03,991][WARN ][o.e.x.s.a.RealmsAuthenticator] [elastic01] Authentication to realm default_native failed - Password authentication failed for xxx
[2023-06-05T23:09:45,735][INFO ][o.e.x.s.a.RealmsAuthenticator] [elastic01]Authentication of [remote_monitoring_user] was terminated by realm [reserved] - failed to authenticate user [remote_monitoring_user]
Steps to reproduce
Result