-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
here is the logstash configuration
input
{
rss
{
interval => 60000
url => "http://internews.org/rss.xml"
type => "tribune"
}
}
filter
{
if [type] == "tribune"
{
ruby
{
code => "require 'digest/md5';
event.set('[@metadata]''[computed_id]', Digest::MD5.hexdigest(event.get('[message]')))"
}
}
}
output
{
stdout { codec => dots }
if [type] == "tribune"
{
elasticsearch
{
hosts => "10.20.1.123"
index => "rss_index_world"
document_type => "tribune"
document_id => "%{[@metadata][computed_id]}"
}
}
}
when i run it give me the "nown error while parsing the feed {:url=>"http://pashtovoa.com/api/zpktve-put", :exception=>#<NoMethodError: undefined method `items' for nil:NilClass>}
Metadata
Metadata
Assignees
Labels
No labels