Sample Logs
[{
"Name":"abc",
"Phone_no":"9877231",
"Gender":"M"
}
]
I am getting data from filebeat
- paths:
- /root/test.log
fields: {log_type: json-multiline}
multiline.type: pattern
multiline.pattern: '^\[{'
multiline.negate: true
multiline.match: after
And sending to logstash
filter {
json {
source => "message"
}
}
we want to extract field from json but it not working,