I am new to the Elastic stack and tried using the json filter plugin to parse kibana's logs. But adding the filter started throwing this error -
Failed to execute action logstash message=>"Expected one of [ \\t\\r\\n], \"#\", \"{\" at line 9, column 8 (byte 62) after filter {\n json "
Here is my logstash.conf -
input {
beats {
port => "5044"
}
}
filter {
json => {
source => "message"
target => "kibanaLog"
skip_on_invalid_json => true
}
# my other filters..
}
output {
elasticsearch {
hosts => "http://elasticsearch.elk:9200"
index => "new-index"
action => "create"
doc_as_upsert => true
}
}
Not sure why Logstash is unable to recognize the json filter plugin.