{"action":"closed","issue":{"url":"https://api.github.com/repos/logstash-plugins/logstash-output-riemann/issues/3","labels_url":"https://api.github.com/repos/logstash-plugins/logstash-output-riemann/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/logstash-plugins/logstash-output-riemann/issues/3/comments","events_url":"https://api.github.com/repos/logstash-plugins/logstash-output-riemann/issues/3/events","html_url":"https://github.com/logstash-plugins/logstash-output-riemann/issues/3","id":77430598,"number":3,"title":"riemann output crashes logstash","user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-17T23:47:44Z","updated_at":"2015-08-04T20:55:41Z","closed_at":"2015-08-04T20:55:41Z","body":"(This issue was originally filed by @kosfar at https://github.com/elastic/logstash/issues/2303)\n\n---\n\nHello,\r\ni tried to use something like this (LS version 1.4.2):\r\noutput {\r\n...some other config here...\r\n\r\nif [proc_name] == \"kernel\" and [syslog_severity] != \"informational\" {\r\n   riemann {\r\n    map_fields => true\r\n     riemann_event => {\r\n       \"service\"   => \"Kernel traces\"\r\n        \"state\"    => \"%{syslog_severity}\"\r\n     }\r\n   }\r\n }\r\n\r\n...some other config here...\r\n}\r\n\r\nbut when an event that matches reaches the riemann output, logstash crashes with the following error message:\r\nNoMethodError: undefined method `each' for #<LogStash::Event:0x55f721a9>\r\n     map_fields at /opt/logstash/lib/logstash/outputs/riemann.rb:109\r\n        receive at /opt/logstash/lib/logstash/outputs/riemann.rb:143\r\n         handle at /opt/logstash/lib/logstash/outputs/base.rb:86\r\n     initialize at (eval):1698\r\n           call at org/jruby/RubyProc.java:271\r\n         output at /opt/logstash/lib/logstash/pipeline.rb:266\r\n   outputworker at /opt/logstash/lib/logstash/pipeline.rb:225\r\n  start_outputs at /opt/logstash/lib/logstash/pipeline.rb:152\r\n\r\nWe use map_fields => true so that we can further split streams per host in riemann.\r\n\r\nAny hints?"}}