I would like to send json-formatted messages to logstash via filebeat.
i can filter each key value in json by writing the following in filebeat:
json.keys_under_root: true
json.add_error_key: true
json.message_key: message
However, multi-line could not be processed. How can I get a multi-line?
And, Can I get rid of the fields that are added to filebeat by default? I want to remove metadata from filebeat. I want to receive only the information I send from logstash. Just like in a file. Is there no way??
{"1": "val1" ,"2": "val2" ,"3": "val3\nval3\nval3" }