i am trying to parse my logs to fields but as you guess i failed
Here is a sample of my logs.
[INFO ] 23.08.2017 20:28:32.941 in [pool-2-thread-20] |com.defne.rbt.eventapi.client.kvp.EventJob:eventCall:239| - Response returned for Call event: Success
Firstly, i tried to use just date filter such that
filter{
date {
match => ["message", "dd.MM.yyyy HH:mm:ss.SSS"]
}
}
However it could not find the date in the message. Then i tried to parse it with grok filter but i failed there too. I could not create fields to put it in the date filter. Indeed,i probably made mistakes in grok. How can i parse it. How can i get the correct timestamp. Need help!...
I used grok constructor and get seperated fields. You mentioned that i should only get timestamp but cannot do that. Instead, i get random fields. Grok constructor says it is matched. But when i use it at logstash, i get _grokparsefailure.
MATCHED
in in
host com.defne.rbt.eventapi.client.kvp.EventJob:eventCall:239
thread pool-2-thread-20
date 23.08.2017·20:28:32.941
message
level INFO
after match: Response returned for Call event: Success
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.