I'm a newone, I don't know how to create multiple index from fields in json.
I have JSON File like this
{ "id": "135569", "name" : "jay", "year":2016 , "companies": ["IBM", "Google"] }
{ "id": "135570", "name" : "dave", "year":2019 , "companies": ["Dell", "HP", "Walmart"] }
...
now I want to create indexes based on "name" and "companies", please help me writing this script.
thank you for any help.
I got below error when try to run above config file:
[2019-10-15T17:42:02,252][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration."
if index => "%{name}" , it works well, it not allow to create multiple indexes, please help
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.