Hello everyone,
Hope you are doing well! I am exploring the possibilities of log viewing through Kibana. I am using version 7.9.2 for ELK and filebeat as well. so I am sending logs through filebeat directly to Elasticsearch.
now I have multiline logs and following is the specific format of logs.
Trace: 2021/03/08 11:12:44.749 02 t=9CFE88 c=UNK key=P8 tag= (13007004)
SourceId: com.ibm.ejs.ras.ManagerAdmin
ExtendedMessage: TRAS0018I: The trace state has changed. The new trace state is *=info.
but I want to use date and time from my logs instead of the timestamp Kibana provides which is the timestamp when logs are processed. Right now I am using dissect processor and the configuration for that is below.
processors:
- dissect:
tokenizer: '%{}: %{+DATE} %{+DATE} %{}'
field: "message"
target_prefix: ""
processors:
- timestamp:
field: DATE
layouts:
- '2021/03/08 11:12:44.749'
- drop_fields:
fields: [DATE]
I have two questions here
- here, I think I am on the right way but I am not sure what am i supposed to put in layouts field so I have put time format from my logs. but it is not working.
can anyone tell me what am i supposed to do here? - is there any way through dissect processor to handle multiline logs. I mean I know I can put if statement to see it as a new log when it sees "TRACE" keyword. can that work?
I hope I was able to explain my problem properly. any help would be much appreciated.
Thanks,
Akhil