Hi guys! I am trying to index log in json format:
{"interests": "dota", "car": null, "surname": "Zhussipnazar", "name": "Daulet", "age": 20}
But it gives me error, _jsonparsefailure
, because logstash cant handle value 'null'
How can I handle null value in json?
my config
file {
path => "/var/log/test.log"
sincedb_path => "/dev/null"
codec => "json"
}
filter {
json {
source => "message"
}
}
output {
stdout {
codec => rubydebug
}
}