# Remove HTML tag from rss input logstash plugin

**URL:** <https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072>\
**Category:** Logstash\
**Created:** [January 10, 2017, 11:39am UTC](https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072 "2017-01-10T11:39:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamal](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jamal](https://discuss.elastic.co/u/jamal)\
**Post date:** [January 10, 2017, 11:39am UTC](https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072/1 "2017-01-10T11:39:21Z")

</div>

I am using logstash rss input plugin to index rss feeds in elasticsearch, but I get text and html tag whic i just want to get text not html tag.  
any one can say me which filter plugin should I use and how to filter it ?

---

<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:** [January 12, 2017, 6:10pm UTC](https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072/2 "2017-01-12T18:10:40Z")

</div>

I don't think anyone has written a filter for this.

---

<div class="post-metadata">

**Author:** ![jamal](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jamal](https://discuss.elastic.co/u/jamal)\
**Post date:** [January 15, 2017, 4:29am UTC](https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072/3 "2017-01-15T04:29:57Z")

</div>

what about grok ? i am not sure will it work or no ?

---

<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:** [January 15, 2017, 10:23am UTC](https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072/4 "2017-01-15T10:23:19Z")

</div>

I wouldn't recommend grok for this task. The xml filter will let you extract the article text but it'll still contain HTML markup. Perhaps you can use a token filter in Elasticsearch to remove unwanted tokens that stem from HTML?

---

<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:** [February 12, 2017, 10:23am UTC](https://discuss.elastic.co/t/remove-html-tag-from-rss-input-logstash-plugin/71072/5 "2017-02-12T10:23:22Z")

</div>

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