Running ELK Stack 7.3.2 on Linux
I am trying to parse JSON via FIilebeat then output to Elasticsearch and show individual objects of the structured JSON in Kibana.
Here is test.json
[
{
"employee": {
"firstName": "Lokesh",
"lastName": "Gupta",
"website": "howtodoinjava.com"
}
},
{
"employee": {
"firstName": "Brian",
"lastName": "Schultz",
"website": "example.com"
}
}
]
Here is my filebeat.yml
filebeat.inputs:
-
type: log
enabled: true
paths:- /opt/filebeat-7.3.2-linux-x86_64/logs/test.json
multiline.pattern: '^{'
multiline.negate: true
multiline.match: afterprocessors:
- decode_json_fields:
fields: ["employee"]
max_depth: 3
output.elasticsearch:
hosts: ["http://myhost:9200"]
I am not able to parse structured JSON