How to change timestamp field added by filebeat while sending logs to output plugin

Hi,

I'm running filebeat where it is fetching logs from kubernetes pods and sending to kafka.
While fetching from kafka topic i could see filebeat is adding some fields to the logs.
wherein one field @timestamp is coming in different timezone(utc), i want to convert that into localtimezone.

{"@timestamp":"2020-08-13T06:43:42.396Z","@metadata":{"beat":"filebeat","type":"_doc","version":"7.5.1"},"message":"{\"level\":\"debug\",\"ts\":\"2020-08-13T12:13:42.395+0530\",\"msg\":\"Device Refresh\",\"pkg\":\"ofagent\",\"ToDel\":[],\"ToAdd\":[]}","kubernetes":{"container":{"name":"x","image":"x:1.3.18"},"replicaset":{"name":"x-6c48d5c44"},"pod":{"uid":"2297d3b2-fd9a-4877-b581-e46089476d5c","name":"x-6c48d5c44-s2kzn"}},"ecs":{"version":"1.1.0"},"agent":{"id":"21f6b5b4-71d5-4a19-8341-996a66cef946","version":"7.5.1","type":"filebeat","ephemeral_id":"1e425ff5-b87d-4829-8286-4ec677b76555","hostname":"filebeat-474j4"}

how can we change that?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.