I'm using a IngestPipeline to extract fields from my logs.
I start with extracting the Timestamp and targeting it into @timestamp s.b.
now i'm mostly not provided with any timezone from my log and @Timestamp is using its default UTC. This would be fine if i would be in that timezone. But since this will not be only running in one timezone i would like to set the 'timezone' field to something that let it use the local system time. Is there a value like this? Or any other way to achieve this?
I didn't find anything
#Set timestamp to value deduced from log message.
- date:
if: ctx.event == null || ctx.event.timezone == null
field: pac.log.timestamp
target_field: '@timestamp'
formats:
- yyyy-MM-dd HH:mm:ss,SSS
on_failure:
- append:
field: error.message
value: '{{ _ingest.on_failure_message }}'