Skip to content

Commit

Permalink
Fix filebeat kafka module ingest timezone (elastic#13368) (elastic#13399
Browse files Browse the repository at this point in the history
)

Continuation of elastic#13308

(cherry picked from commit a433d5e)

Co-authored-by: Kent Wang <pragkent@gmail.com>
  • Loading branch information
jsoriano and pragkent committed Aug 29, 2019
1 parent e589199 commit ddcab15
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions filebeat/module/kafka/log/ingest/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@
{
"date": {
"if": "ctx.event.timezone != null",
"field": "@timestamp",
"formats": ["ISO8601"],
"field": "kafka.log.timestamp",
"target_field": "@timestamp",
"formats": ["yyyy-MM-dd HH:mm:ss,SSS"],
"timezone": "{{ event.timezone }}",
"on_failure": [{"append": {"field": "error.message", "value": "{{ _ingest.on_failure_message }}"}}]
}
"on_failure": [{"append": {"field": "error.message", "value": "{{ _ingest.on_failure_message }}"}}]
}
},
{"remove": {"field": "kafka.log.timestamp" }}
],
Expand Down

0 comments on commit ddcab15

Please sign in to comment.