# How to effectively use multiline codec with a crazy long xml file?

**URL:** <https://discuss.elastic.co/t/how-to-effectively-use-multiline-codec-with-a-crazy-long-xml-file/112592>\
**Category:** Logstash\
**Created:** [December 20, 2017, 8:59am UTC](https://discuss.elastic.co/t/how-to-effectively-use-multiline-codec-with-a-crazy-long-xml-file/112592 "2017-12-20T08:59:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iam\_thadiyan](https://avatars.discourse-cdn.com/v4/letter/i/5f9b8f/32.png) [@iam\_thadiyan](https://discuss.elastic.co/u/iam_thadiyan)\
**Post date:** [December 20, 2017, 8:59am UTC](https://discuss.elastic.co/t/how-to-effectively-use-multiline-codec-with-a-crazy-long-xml-file/112592/1 "2017-12-20T08:59:54Z")

</div>

I have an XML file from a production machine which has more than 600MBs worth of xml data (15000000 lines)

This file is very important from analytics point of view. But I find it difficult to get the entire file to push through multiline line codec in input because of jvm limitations. I don't know if I will get a file which is bigger than this.

Has anyone handled this much of data in one file before? I yes, what's the strategy?

Attaching my input config.

> ```
> input {
> stdin { }
> file {
> path => 'input_file'
> start_position => 'beginning'
> sincedb_path => 'NUL'
> codec => multiline {
> pattern => '^<log'
> what => 'previous'
> negate => 'true'
> auto_flush_interval => 1
> max_lines => 10000000
> max_bytes => '600 MiB'
> }
> }
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![iam\_thadiyan](https://avatars.discourse-cdn.com/v4/letter/i/5f9b8f/32.png) [@iam\_thadiyan](https://discuss.elastic.co/u/iam_thadiyan)\
**Post date:** [December 20, 2017, 1:43pm UTC](https://discuss.elastic.co/t/how-to-effectively-use-multiline-codec-with-a-crazy-long-xml-file/112592/2 "2017-12-20T13:43:19Z")

</div>

Any leads for me to pursue? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![iam\_thadiyan](https://avatars.discourse-cdn.com/v4/letter/i/5f9b8f/32.png) [@iam\_thadiyan](https://discuss.elastic.co/u/iam_thadiyan)\
**Post date:** [January 1, 2018, 1:18pm UTC](https://discuss.elastic.co/t/how-to-effectively-use-multiline-codec-with-a-crazy-long-xml-file/112592/3 "2018-01-01T13:18:08Z")

</div>

Hi . Any ideas?

---

<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:** [January 29, 2018, 1:18pm UTC](https://discuss.elastic.co/t/how-to-effectively-use-multiline-codec-with-a-crazy-long-xml-file/112592/4 "2018-01-29T13:18:12Z")

</div>

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