I'm trying to convert 1422083623.329786 to a format like 1-24-2015 7:13:43.329
I've been looking it up through some past posts but I'm pretty lost. My current grok filter for it is
%{NUMBER:ts}
Thanks in advance
I'm trying to convert 1422083623.329786 to a format like 1-24-2015 7:13:43.329
I've been looking it up through some past posts but I'm pretty lost. My current grok filter for it is
%{NUMBER:ts}
Thanks in advance
You can convert it to a timestamp using
date { match => [ "timeStamp", "UNIX" ] }
If instead you want it as a string in a particular format you could do that too.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.