# How to Ingest MultiLine Json file into ElasticSearch using Logstash Pipeline

**URL:** <https://discuss.elastic.co/t/how-to-ingest-multiline-json-file-into-elasticsearch-using-logstash-pipeline/326580>\
**Category:** Logstash\
**Created:** [February 27, 2023, 12:15pm UTC](https://discuss.elastic.co/t/how-to-ingest-multiline-json-file-into-elasticsearch-using-logstash-pipeline/326580 "2023-02-27T12:15:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhakar\_kamath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabhakar_kamath/32/117799_2.png) [@prabhakar\_kamath](https://discuss.elastic.co/u/prabhakar_kamath)\
**Post date:** [February 27, 2023, 12:15pm UTC](https://discuss.elastic.co/t/how-to-ingest-multiline-json-file-into-elasticsearch-using-logstash-pipeline/326580/1 "2023-02-27T12:15:29Z")

</div>

I have a json file similar to following:  
{  
"Key1": "value1",  
"Key2": "value2"  
.......  
}

I want to ingest it as it is into logstash, The Keys should be fields and values should be values to the field, value can be array,string,boolean etc. Can anyone help in creating a pipeline\_configuration for the same. Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2023, 12:15pm UTC](https://discuss.elastic.co/t/how-to-ingest-multiline-json-file-into-elasticsearch-using-logstash-pipeline/326580/2 "2023-03-27T12:15:33Z")

</div>

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