# Inserting huge xml into elasticsearch

**URL:** <https://discuss.elastic.co/t/inserting-huge-xml-into-elasticsearch/57383>\
**Category:** Logstash\
**Created:** [August 5, 2016, 6:11pm UTC](https://discuss.elastic.co/t/inserting-huge-xml-into-elasticsearch/57383 "2016-08-05T18:11:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thanos](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Thanos](https://discuss.elastic.co/u/Thanos)\
**Post date:** [August 5, 2016, 6:11pm UTC](https://discuss.elastic.co/t/inserting-huge-xml-into-elasticsearch/57383/1 "2016-08-05T18:11:23Z")

</div>

Hello,  
i'm trying to process the .xml file provided by the MSR conference 2015 ([http://2015.msrconf.org/challenge\_data/](http://2015.msrconf.org/challenge_data/)). Being new to elasticsearch/logstash i really could use some advice about setting up the .conf file. The xml has 1 post/line and looks like :

\<row Id="4" PostTypeId="1" AcceptedAnswerId="7" CreationDate="2008-07-31T21:42:52.667" Score="305" ViewCount="20324" Body="\<p\>I want to use a track-bar to change a form's opacity....

(some of it is in html format so i cant paste it)

How could i manage the filter file so that i can for example index the "Body" and the "code" of each post into ES?  
Based on some examples i used some basic configurations, but when executing the cmd is getting stack at  
"Settings: Default pipeline workers: 4  
Pipeline main started"

input {  
file {  
path =\> "C:/Users/thanos/Desktop/proxeiroXML.xml"  
start\_position =\> "beginning"  
}  
}

filter {  
xml {  
store\_xml =\> "false"  
source =\> "row id"  
}  
}  
output { elasticsearch { action =\> "index"  
hosts =\> "localhost"  
index =\> "post"  
}  
stdout {}  
}

---

<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:** [July 6, 2017, 4:44am UTC](https://discuss.elastic.co/t/inserting-huge-xml-into-elasticsearch/57383/2 "2017-07-06T04:44:29Z")

</div>


