# FIlebeat XML Parsing in Logstash

**URL:** <https://discuss.elastic.co/t/filebeat-xml-parsing-in-logstash/251165>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 6, 2020, 4:55pm UTC](https://discuss.elastic.co/t/filebeat-xml-parsing-in-logstash/251165 "2020-10-06T16:55:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teej](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@teej](https://discuss.elastic.co/u/teej)\
**Post date:** [October 6, 2020, 4:55pm UTC](https://discuss.elastic.co/t/filebeat-xml-parsing-in-logstash/251165/1 "2020-10-06T16:55:20Z")

</div>

I was running the following code to get xml parsed from a local file into an elastic index and it appears to work fine:

```
input {
  file {
    path => "/tmp/test2.xml"
    sincedb_path => "/dev/null"
    start_position => "beginning"
    codec => multiline {
    pattern => "<?xml"
    auto_flush_interval => 1
    negate => "true"
    what => "previous"
    max_lines => 1000000000
    max_bytes => "500 MiB"
    }
   }
  }

filter {
  xml {
    source => "message"
    target => "parsed"
    force_array => "false"
   }
  }

```

But now I need it to start reading from filebeat and so I tried to integrate it in various ways but am not having much success, e.g.:

```
input {
  beats {
    port => 5044
    sincedb_path => "/dev/null"
    start_position => "beginning"
    codec => multiline {
    pattern => "<?xml"
    auto_flush_interval => 1
    negate => "true"
    what => "previous"
    max_lines => 1000000000
    max_bytes => "500 MiB"
   }
  }
}
filter {
  xml {
    source => "message"
    target => "parsed"
    force_array => "false"
   }
  }

```

I get an error:

`[ERROR] 2020-10-06 12:52:53.149 [Agent thread] agent - An exception happened when converging configuration {:exception=>LogStash::Error, :message=>"Don't know how to handle `Java::JavaLang::IllegalStateException`for`PipelineAction::Create`"}`

Thank you in advance for any hint on how to resolve this issue.

---

<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:** [November 3, 2020, 6:55pm UTC](https://discuss.elastic.co/t/filebeat-xml-parsing-in-logstash/251165/2 "2020-11-03T18:55:21Z")

</div>

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