Can someone please help me with this. I tried almost all possible ways but no luck. My grok debugger works perfect but get "beats_input_codec_plain_applied, failedparse" error in Kibana from logstash.
This is the grok I am using:
input {
beats {
port => 5054
}
}
filter {
grok {
match => { "message" => "%{TIMESTAMP_ISO8601:logdate}}"}
# if we can't parse the log message then add a tag to it to identify it
tag_on_failure => [ "failedparse" ]
}
# date match on the date of the log entry using a custom format match, not specifying a target so this date result will go into the @timestamp field
date {
match => [ "logdate", "YYYY-MM-dd HH:mm:ss,SSS" ]
}
# date match on the date of the log entry using a custom format match, specify the target to put this date result in the logdate field
date {
match => [ "logdate", "YYYY-MM-dd HH:mm:ss,SSS" ]
target => "logdate"
}
}
output {
elasticsearch {
# output to elasticsearh, use templates to parse the data and save in an index noliouat-request then append the year and month
hosts => ["localhost:9200"]
manage_template => true
index => "uat-dmall-%{+YYYY.MM}"
}
}
filter {
grok {
match => { "message" => "%{TIMESTAMP_ISO8601:tempdate} [%{NOTSPACE:thread} %{WORD:type}%{SPACE}(%{JAVACLASS:program}:%{NUMBER:programline}) - %{GREEDYDATA:logmessage}"}
# if we can't parse the log message then add a tag to it to identify it
tag_on_failure => [ "failedparse" ]
}
mutate {
split => { "tempadate" => "," }
add_field => { "date" => "%{tempdate[0]}" }
remove_field => [ "tempdate" ]
}
# date match on the date of the log entry using a custom format match, not specifying a target so this date result will go into the @timestamp field
date {
match => [ "date", "YYYY-MM-dd HH:mm:ss" ]
}
}
2017-10-30 14:34:13,362 [JobDisposer-1] INFO (com.platform.server.dataservices.services.execution.ExecutionServiceImpl:1262) - disposing job [1441868].
2017-10-30 14:34:45,958 [ExecutionServerStatusTask-13983] DEBUG (com.platform.server.dataservices.services.execmng.ExecutionServerStatusMonitor:92) - Update servers status
2017-10-30 14:34:46,514 [Finalizer] DEBUG (com.platform.connection.PoolingClientConnectionManager:275) - Connection manager is shutting down
2017-10-30 14:34:48,703 [eventsProcessingHandler[PerJobExecutorsManager_garbageCollector]-1] DEBUG (com..platform.server.dataservices.services.executors.PerJobExecutorsManagerImpl:232) - Shutting down executors for finished jobs and cleaning up resources...
2017-10-30 14:34:48,703 [AgentHttpRequestsHandler-[PerJobExecutorsManager_garbageCollector]-1] DEBUG (com.platform.server.dataservices.services.executors.PerJobExecutorsManagerImpl:232) - Shutting down executors for finished jobs and cleaning up resources...
2017-10-30 14:34:48,713 [org.springframework.jms.listener.DefaultMessageListenerContainer#3-1] INFO (com.platform.server.dataservices.services.execmng.ConnectivityUpdaterImpl:83) - Updating connectivity. current details: Execut
The issue I think is that the parse is failing while handling the major difference in between lines with [.......] and [...[....]] Please advise on how this can be handled.
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.