logstash version : 2.4.1
unix time : 1522092794000
date : 2018-04-10
hello everyone,
I want to convert the unix time to date , so how can I do this with date filter ? Thanks so much !
logstash version : 2.4.1
unix time : 1522092794000
date : 2018-04-10
hello everyone,
I want to convert the unix time to date , so how can I do this with date filter ? Thanks so much !
UNIX_MS
- will parse int value expressing unix time in milliseconds since epoch like 1366125117000
Thanks your reply,
as you say like this,
date{
match => ["mytime", "UNIX"]
}
so after this how can I do ?
The timestamp you gave is more likely than not a millisecond-granularity timestamp, in which case you will need the UNIX_MS
format string (otherwise you will end up with a timestamp tens of thousands of years in the future).
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.