My log have this format 11-30-2016 12:13:57 INFO - Mapped "{[/transaction/get-account-history],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}"
then how do i include timestamp format in filter ?
my second query is
i included path => ["/Users/tcstsb3/Downloads/log/*.log"] contain many logs
How to combine all logs and sort based on time
In kibana i want to show like Example :
11-30-2016 12:13:57 INFO hello ....(from log1)
11-30-2016 12:13:57 INFO hai ..... (from log2)
11-30-2016 12:13:58 INFO msg .....(from log1)
then how do i include timestamp format in filter ?
Use a grok filter to extract the timestamp, loglevel, and possibly other pieces of the string into separate fields. Then use a date filter to parse the timestamp string into the @timestamp field.
How to combine all logs and sort based on time
As long as your date filter works that's exactly how Kibana will behave.
Your log isn't an Apache log so COMBINEDAPACHELOG obviously won't work. Perhaps the grok constructor web site can help you create a usable grok expression.
just for sample i mentioned like
11-30-2016 12:13:57 INFO hello ....(from log1)
11-30-2016 12:13:57 INFO hai ..... (from log2)
11-30-2016 12:13:58 INFO msg .....(from log1)
but im using apache log only
how can i change my timestamp format so that it will sort based on timestamp
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.