Hi Community!
I've been having the following problem. I'm receiving, through http input filter, a JSON that has bracket square in the keys so Logstash isn't able to parse it, as result it returns a _jsonparsefailure
.
An example of the JSON that I receive is the following:
{
"alertData": {
"name": "foo - bar",
"url": "manage",
"changes": {
"ssid[bar]": {
"label": "Splash page",
"newText": "None",
"oldText": "Click-through",
"changedBy": "foo",
"ssidId": null
}
},
"userId": 123
}
}
my pipeline is the following:
input {
http {
host => "0.0.0.0"
port => "8080"
codec => "json"
}
}
filter {
mutate {
remove_field => [ "event", "http", "url", "@version"]
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
user => "foo"
password => "bar"
index => "example"
codec => json_lines
}
}
I've found some discussions about it, like this or this other one, but they don't seem to work.
Thank you in advance!