# Target required xml-filter option

**URL:** <https://discuss.elastic.co/t/target-required-xml-filter-option/54700>\
**Category:** Logstash\
**Created:** [July 5, 2016, 8:45am UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700 "2016-07-05T08:45:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tollef](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@tollef](https://discuss.elastic.co/u/tollef)\
**Post date:** [July 5, 2016, 8:45am UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700/1 "2016-07-05T08:45:53Z")

</div>

I'm using a quite simple xml-filter

> filter {  
> xml {  
> source =\> "recordedmessage"  
> }  
> }

But when I run logstash I get "ConfigurationError: translation missing" and logstash stops.

So I changed the filter to

> filter {  
> xml {  
> source =\> "recordedmessage"  
> target =\> "parsed"  
> }  
> }

And now it works fine.

* * *

Therefore I ask if anyone have had any similar experiences.  
As the [documentation for 5.0.0-alpha4 xml-filter](https://www.elastic.co/guide/en/logstash/5.0/plugins-filters-xml.html#plugins-filters-xml-xpath) says:

> Required configuration options:
> 
> > xml {  
> > source =\> ...  
> > }

It might be a typo in the documentation?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 5, 2016, 8:51am UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700/2 "2016-07-05T08:51:56Z")

</div>

Quoting the documentation of the `target` option:

> Required if store\_xml is true (which is the default).

In other words, `target` can't be listed as required since it's only required if `store_xml` is enabled.

---

<div class="post-metadata">

**Author:** ![tollef](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@tollef](https://discuss.elastic.co/u/tollef)\
**Post date:** [July 5, 2016, 8:58am UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700/3 "2016-07-05T08:58:43Z")

</div>

Ops, my bad.

But then I suggest that this is included somewhere around the "Required configuration options:" area also.  
When I am looking at the documentation for å filter/input/something that I want to try out I dont want to have to read every configuration option.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 5, 2016, 11:21am UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700/4 "2016-07-05T11:21:00Z")

</div>

Yeah. Getting that to work with autogenerated documentation might take some work. One would probably have to update the documentation generator to support additional meta markup of configuration options. Feel free to file a GitHub issue.

---

<div class="post-metadata">

**Author:** ![tollef](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@tollef](https://discuss.elastic.co/u/tollef)\
**Post date:** [July 5, 2016, 12:21pm UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700/5 "2016-07-05T12:21:37Z")

</div>

Issue created: [https://github.com/elastic/logstash/issues/5586](https://github.com/elastic/logstash/issues/5586)

---

<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:49am UTC](https://discuss.elastic.co/t/target-required-xml-filter-option/54700/6 "2017-07-06T04:49:28Z")

</div>

Closed on July 6, 2017, 4:49am UTC


