I am testing my Grok filter using the GROK debugger and everything checks out.
When I start up my LogStash it is not throwing any errors about the config. When i query the data in Kibana I do not see the _grokparsefailure on the data.
Not sure what is going on here any help would be appreciated.
I was having issues getting it to print out on the terminal .... i had to change the regex that was parsing out the timestamp to {TIMESTAMP_ISO8601:timestamp} and that actually parsed out to the console. I also changed the date stanza to:
date {
match => ["timestamp" ,"yyyy-MM-dd HH:mm:ss,SSS"]
target => "@timestamp"
timezone => "America/New_York"
}
timestamp: "2017-08-11 17:10:22,212
Below you can see the output, but unfortunately it is still not showing up in Kibana parsed out. No grokparsefailure either.
Where are the service and [attributes][file_path] fields? You only apply the grok filter if those fields have certain values. But some grok filter or similar is obviously being used since you have fields like log_level and log_message.
For this particular test to the terminal I am not invoking the service and attributes field paths ... I am testing the GROK filter directly to the event I am trying to parse. The events is getting parsed out correctly.
The service and attributes field path are specific to each of the events i want parsed out. The service will be the same for the four type of events i want parsed out, but the file path will be specific to the event.
For example:
else if ([service] == "my_service"){
if([attributes][file_path] == "/apps/log/my_service/wso2-errors.log") {
else if ([service] == "my_service"){
if([attributes][file_path] == "/apps/log/my_service/wso2-service.log") {
else if ([service] == "my_service"){
if([attributes][file_path] == "/apps/log/my_service/gc.log") {
else if ([service] == "my_service"){
if([attributes][file_path] == "/apps/log/my_service/wso2carbon.log") {
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.