Now its working with
filter {
grok {
match => { "message" => "%{DATESTAMP:timestamp}]%{SPACE}:|:%{SPACE}%{WORD:severity}%{SPACE}:|:%{SPACE}%{WORD:hostname}"}
}
}
Greedydata should also work, but NOTSPACE just pulls every character until there is a space. So it would be %{SPACE}:|:%{SPACE}%{WORD:hostname}%{SPACE}:|:%{NOTSPACE:UniqueID}.
Date and timestamp are always coming in bellow format
[2017-05-15 00:00:07,397]
[2017-05-15 00:00:07,564]
[2017-05-15 00:00:07,877]
[2017-05-15 00:00:07,966]
[2017-05-15 00:00:07,988]
when i use it without GREEDYDATA and NOTSPACE . It works fine . But if i add it ..then it breaks .
Is there any other way i can define --%{DATESTAMP:timestamp}] ---other than this .
NOTE- i am not using [ at the start to skip [ . If i use then it wot work
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.