can someone let me know how to filter below log. I want ot break this line base on timestamp java class and my custom text like "Updated By" and "Audit Log" and log level etc.
2018-04-05 17:22:02,047 DEBUG [http-nio-8082-exec-1] DomainResource: Audit Log : Updating user information. User Id is AAA11BE | Updated By : bhargav
I have tried below filter but not working.
input {
file {
path => ["/home/truecom/PE/portaleditor.log"]
type => "pelog"
start_position => end
ignore_older => 0
sincedb_path => "null"
}
Some how i am able to get the data like log level but i am getting blank for GREEDYDATA. what is wrong in my config file? i tried to put GREEDYDATA at the end as well. belows my update .conf file .
input {
file {
path => ["/home/truecom/PE/portaleditor.log"]
type => "pelog"
start_position => end
ignore_older => 0
sincedb_path => "null"
}
NOTSPACE works too but will capture the square brackets that aren't really part of the thread name. You could of course remove the square brackets with a mutate filter.
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.