Hi there,
if i have data like this [{...},{...},{...}] how can i split them into different documents like
document 1 => {...} document 2 => {...} document 3 => {...}
so in that way, I can use the json filter to spread out the data inside { } like this:
json { source => "message" }
Thanks
Hello @yuswanul,
You can use the split filter plugin. The field being split can either be a string or an array.
In your Logstash pipeline, it would be something like:
filter { split { field => "message" } }
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.