I'm trying to parse through a timespan value (hh:mm:ss:SSSSSS). Here is the message ...
`2020-08-05 13:28:53.128 +03:00 [DBG] {"Timestamp":"2020-08-05T13:28:53.1286882+03:00","Profile":"db","ProcessID":26688,"SessionId":"0","Message":"SELECT column1, column2 FROM hsi.table","TimeSpan":"00:00:00.0019088","LogLevel":"Debug",,"Direction":"Out","AppPoolName":"Server"}`
I would like to store the TimeSpan value as a sortable column. I looked at this link, but didn't follow how it worked and it didn't include the milliseconds.
My logstash.config uses the following filter settings.
The 10 ** stuff for subsecond ensure that it can handle time spans like "01:02:03.2". Note that your JSON is not valid since it has ,, just after the LogLevel.
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.