Hi
I have a log file that I want to parse to elasticsearch using logstash.
In the log I have a date like that: 2019-04-18+05:48:54.470
I trying to find how to grok this timestamp with kibana Grok Debugger
Trying the following pattern but with no success:
%{HTTPDATE:timestamp}
%{DATESTAMP:timestamp}
%{TIMESTAMP_ISO8601:timestamp}
Any suggestion?
That was a grok pattern. You can put it in a pattern file or specify it inside the grok filter like
grok {
match => { "filed_name" => "YOUR FULL LINE GROK PATTERN GOES HERE. YOU CAN USE %{MY_TIME:timestamp} FOR THE DATE PART"
pattern_definitions => {
"MY_TIME" => "%{YEAR}-%{MONTHNUM}-%{MONTHDAY}\+%{TIME}"
}
}
Not entirely sure what the best way to turn the time into @timestamp would be...
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.