Hi,
I have json format strings into the .log files. And I need that filebeat insert that json strings as individual logs into a custom elastic search index. That index needs to have the same structure that the json format string. For example in my .log file I have
-----example.log
'''''''''''''''''''''''''''''''''''
{"example":"test1"}
{"example":"test2"}
'''''''''''''''''''''''''''''''''''
And In ElasticSearch i have an index filebeat-example-logs that has the following structure
''''''''''''''''''''
{
example:""
}
'''''''''''''''''''
So filebeat detects a new entry into example.log file and inserted exactly the same into the filebeat-example-logs index.
Thanks!