diff --git a/filebeat/module/elasticsearch/audit/ingest/pipeline-json.json b/filebeat/module/elasticsearch/audit/ingest/pipeline-json.json index f0cf48a19ff..0089cce66f9 100644 --- a/filebeat/module/elasticsearch/audit/ingest/pipeline-json.json +++ b/filebeat/module/elasticsearch/audit/ingest/pipeline-json.json @@ -196,10 +196,22 @@ "field": "elasticsearch.audit.@timestamp", "target_field": "@timestamp", "formats": [ - "ISO8601" + "yyyy-MM-dd'T'HH:mm:ss,SSS" ], "ignore_failure": true } + }, + { + "date": { + "if": "ctx.event.timezone != null", + "field": "elasticsearch.audit.@timestamp", + "target_field": "@timestamp", + "formats": [ + "yyyy-MM-dd'T'HH:mm:ss,SSS" + ], + "timezone": "{{ event.timezone }}", + "on_failure": [{"append": {"field": "error.message", "value": "{{ _ingest.on_failure_message }}"}}] + } } ], "on_failure": [