Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.7] Add pattern to handle logs from newer ES versions (#17406) #17422

Merged
merged 1 commit into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fixed a mapping exception when ingesting CEF logs that used the spriv or dpriv extensions. {issue}17216[17216] {pull}17220[17220]
- Fixed a mapping exception when ingesting Logstash plain logs (7.4+) with pipeline ids containing non alphanumeric chars. {issue}17242[17242] {pull}17243[17243]
- Fixed MySQL slowlog module causing "regular expression has redundant nested repeat operator" warning in Elasticsearch. {issue}17086[17086] {pull}17156[17156]
- Fix `elasticsearch.audit` data ingest pipeline to be more forgiving with date formats found in Elasticsearch audit logs. {pull}17406[17406]

*Heartbeat*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ processors:
target_field: elasticsearch.audit.@timestamp
formats:
- yyyy-MM-dd'T'HH:mm:ss,SSS
- yyyy-MM-dd'T'HH:mm:ss,SSSZ
timezone: '{{ event.timezone }}'
- remove:
if: ctx.elasticsearch.audit['@timestamp'] == null && ctx.event.timezone != null
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"@timestamp":"2020-04-01T11:21:06,725+0200", "node.id":"vvj136QVQ2Ci2aXmrhyi3Q", "event.type":"transport", "event.action":"access_granted", "user.name":"logstash_manager", "user.realm":"native1", "user.roles":["logstash_admin","cluster_monitor"], "origin.type":"rest", "origin.address":"10.54.25.111:52148", "request.id":"rLBMfPM2Q9q-DQEB_g30ww", "action":"indices:data/read/mget[shard]", "request.name":"MultiGetShardRequest", "indices":[".logstash",".logstash",".logstash",".logstash",".logstash",".logstash",".logstash",".logstash"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[
{
"@timestamp": "2020-04-01T13:21:06.725Z",
"elasticsearch.audit.action": "indices:data/read/mget[shard]",
"elasticsearch.audit.indices": [
".logstash",
".logstash",
".logstash",
".logstash",
".logstash",
".logstash",
".logstash",
".logstash"
],
"elasticsearch.audit.layer": "transport",
"elasticsearch.audit.origin.type": "rest",
"elasticsearch.audit.request.id": "rLBMfPM2Q9q-DQEB_g30ww",
"elasticsearch.audit.request.name": "MultiGetShardRequest",
"elasticsearch.audit.user.realm": "native1",
"elasticsearch.audit.user.roles": [
"logstash_admin",
"cluster_monitor"
],
"elasticsearch.node.id": "vvj136QVQ2Ci2aXmrhyi3Q",
"event.action": "access_granted",
"event.category": "database",
"event.dataset": "elasticsearch.audit",
"event.kind": "event",
"event.module": "elasticsearch",
"event.outcome": "success",
"event.timezone": "-02:00",
"fileset.name": "audit",
"host.id": "vvj136QVQ2Ci2aXmrhyi3Q",
"input.type": "log",
"log.offset": 0,
"message": "{\"@timestamp\":\"2020-04-01T11:21:06,725+0200\", \"node.id\":\"vvj136QVQ2Ci2aXmrhyi3Q\", \"event.type\":\"transport\", \"event.action\":\"access_granted\", \"user.name\":\"logstash_manager\", \"user.realm\":\"native1\", \"user.roles\":[\"logstash_admin\",\"cluster_monitor\"], \"origin.type\":\"rest\", \"origin.address\":\"10.54.25.111:52148\", \"request.id\":\"rLBMfPM2Q9q-DQEB_g30ww\", \"action\":\"indices:data/read/mget[shard]\", \"request.name\":\"MultiGetShardRequest\", \"indices\":[\".logstash\",\".logstash\",\".logstash\",\".logstash\",\".logstash\",\".logstash\",\".logstash\",\".logstash\"]}",
"related.user": [
"logstash_manager"
],
"service.type": "elasticsearch",
"source.address": "10.54.25.111:52148",
"source.ip": "10.54.25.111",
"source.port": 52148,
"user.name": "logstash_manager"
}
]