Ingesting Json for Elasticsearch using Logstash

I'm very new to Logstash and am trying to figure out how to properly ingest json into an elasticsearch index. I have a .json file that is perfectly formatted for my elasticsearch index however I can't figure out the best way to pass it to Elasticsearch. I can easily pass .json data in this format to elastic with CURL however I really would like to use logstash. I have tried using a json codec as well at made attempts with json filtering. I just can't figure out the right combination to get data from a .json file 'in the below format' into elasticsearch.

If someone could just point me in the right direction it would be very much appreciated!

Thank you

{"index": {"_index":"master","_type":"_doc","_id":"tsa/005910305881"}}

{"item_number":"tsa/005910305881","context":["IRMN"],"rotation":"1","description":"bearing - taper cup ","powersearch": ["005910305881", "005910305881", "005910305881", "bearing", "-", "taper", "cup", "005910305881", "005910305881"],"imageurl":"cl713024.gif","catalog": [{"key":"TotalSource", "value":"tsa/sy42211|20817"}]}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.