Error received from logstash-rss-input [`Error: tag <link> is too much in tag <channel>`]


(Bryan K) #1

Receiving an error [Error: tag <link> is too much in tag <channel>] when adding my simple rss input configuration:

/etc/logstash/conf.d/02-rss-input.conf

input {
  rss {
    url => "http://status.aws.amazon.com/rss/all.rss"
    interval => 6000
  }
}

Error received:

Error: tag <link> is too much in tag <channel>

Full Error Dump:

{:timestamp=>"2015-09-02T20:41:30.595000+0000", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Rss url=>\"http://status.aws.amazon.com/rss/all.rss\", interval=>6000, debug=>false, codec=><LogStash::Codecs::Plain charset=>\"UTF-8\">>\n Error: tag <link> is too much in tag <channel>", :level=>:error}

Not sure what's wrong but hopefully someone here can help! Thanks in advance!


(Bryan K) #2
<channel>
.....
<link>http://status.aws.amazon.com/</link>
<link rel="alternate" href="http://status.aws.amazon.com/rss/all.rss" type="application/rss+xml" title="Amazon Web Services Status Feed"/> 
.....
</channel>

Looking at the RSS feed itself, I am beginning to understand this error... it sounds like it's complaining because there are too many <link> elements within the <channel> element it's raising the error.

RSS::TooMuchTagError
Raised if there are more occurrences of the tag than expected.
http://ruby-doc.org/stdlib-2.0.0/libdoc/rss/rdoc/RSS/TooMuchTagError.html

Any suggestions on how to overcome this ? Perhaps with a filter? Thanks in advance, any help is appreciated!


(Mark Walkom) #3

The feed needs to pass through the input to filter it though, so I don't think you have many options.
This might be something worth putting in a GH issue for the plugin.


(system) #4