# Error with logstash-input-rss

**URL:** <https://discuss.elastic.co/t/error-with-logstash-input-rss/238997>\
**Category:** Logstash\
**Created:** [June 28, 2020, 9:56am UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997 "2020-06-28T09:56:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terizian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terizian/32/71259_2.png) [@Terizian](https://discuss.elastic.co/u/Terizian)\
**Post date:** [June 28, 2020, 9:56am UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/1 "2020-06-28T09:56:48Z")

</div>

I was trying the RSS plugin with Logstash, and I'm facing an error as detailed below:

**Version** :  
Logstash 7.7.1  
**Operating System:**  
CentOS 7.8.2003  
**Config File:**

```auto
    input {

      rss {
        url => "https://www.alittihad.ae/arabi.rss"
        interval => 7200
            tags => ["ar", "rss", "alittihad"]
      }
    }

    filter {
       fingerprint{
         source => "title"
         target => "[@metadata][fingerprint]"
         method => "MURMUR3"
       }
    }

    output {
     elasticsearch {
      action => "index"
      hosts => "localhost"
      workers => 1
      document_id => "%{[@metadata][fingerprint]}"
     }
     stdout {}
    }

```

**Error:**  
`[ERROR][logstash.inputs.rss][main][28d92d7fa1e60631ff0741642cbb39e90c8c542b6251b01324014030be140f75] Uknown error while parsing the feed {:url=>"https://www.alittihad.ae/arabi.rss", :exception=>#<RSS::MissingAttributeError: attribute <url> is missing in tag <source>>}`

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2020, 3:56pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/2 "2020-06-28T15:56:49Z")

</div>

> [@Terizian](#):
>
> `https://www.alittihad.ae/arabi.rss`

If you hit that in a browser then you see source elements such as

```auto
<source>
<![CDATA[]]>
</source>

```

The RSS [spec](https://validator.w3.org/feed/docs/rss2.html) requires that a source element have a url attribute, so this is not valid RSS.

---

<div class="post-metadata">

**Author:** ![Terizian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terizian/32/71259_2.png) [@Terizian](https://discuss.elastic.co/u/Terizian)\
**Post date:** [June 28, 2020, 4:53pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/3 "2020-06-28T16:53:26Z")

</div>

Thank you for your response! I am aware that the RSS is faulty. However, I tried with another RSS document ([https://www.emaratalyoum.com/1.533091?ot=ot.AjaxPageLayout](https://www.emaratalyoum.com/1.533091?ot=ot.AjaxPageLayout)) which didn't have a tag and it worked fine.

Any chance errors can be bypassed in the plugin?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2020, 5:08pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/4 "2020-06-28T17:08:06Z")

</div>

> [@Terizian](#):
>
> Any chance errors can be bypassed in the plugin?

The [input](https://github.com/logstash-plugins/logstash-input-rss/blob/81250f69fc78089bf44da64841cc98b6f7bc8f29/lib/logstash/inputs/rss.rb#L62) does not have a a way to suppress the error.

---

<div class="post-metadata">

**Author:** ![Terizian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terizian/32/71259_2.png) [@Terizian](https://discuss.elastic.co/u/Terizian)\
**Post date:** [June 28, 2020, 5:20pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/5 "2020-06-28T17:20:22Z")

</div>

What do you think could be a better way of dealing with this? I'd really like to use Logstash in my pipeline.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2020, 5:30pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/6 "2020-06-28T17:30:19Z")

</div>

You might be able to use mutate+gsub to remove the empty source elements.

---

<div class="post-metadata">

**Author:** ![Terizian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terizian/32/71259_2.png) [@Terizian](https://discuss.elastic.co/u/Terizian)\
**Post date:** [June 28, 2020, 6:02pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/7 "2020-06-28T18:02:37Z")

</div>

Thanks for the advice. I'll see what I can do about it

---

<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 26, 2020, 6:02pm UTC](https://discuss.elastic.co/t/error-with-logstash-input-rss/238997/8 "2020-07-26T18:02:47Z")

</div>

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