Hello everyone,
I am trying to use timestamp from my log file instead of the timestamp when my logs were processed. in order to do that, I am using dissect processor and Timestamp processor together as below.
processors:
- dissect:
tokenizer: '%{}: %{DATE} %{DATE} %{}'
field: "message"
target_prefix: ""
- timestamp:
field: DATE
layouts:
- '2021/03/08 11:12:44.749'
- drop_fields:
fields: [DATE]
so with dissect processor I am extracting Date from my logs and then with Timestamp processor I am trying to replace DATE with timestamp when logs were processed. but it is not working for some reason even though do not see any errors in filebeat logs but I see that these processors are being used.
2021-04-25T17:56:20.721-0400 DEBUG [processors] processors/processor.go:101 Generated new processors: dissect=%{}: %{DATE} %{DATE} %{},field=message,target_prefix=, timestamp=[field=DATE, target_field=@timestamp, timezone=UTC, layouts=[2021/03/08 11:12:44.749]], drop_fields={"Fields":["DATE"],"IgnoreMissing":false}
Following is my log format.
Trace: 2021/03/08 11:12:44.733 02 t=9CFE88 c=UNK key=P8 tag= (13007004)
I am stuck on this from sometime now. I am not sure what is wrong. can anyone please help me?
Thanks.