{"action":"closed","issue":{"url":"https://api.github.com/repos/driskell/log-courier/issues/118","labels_url":"https://api.github.com/repos/driskell/log-courier/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/driskell/log-courier/issues/118/comments","events_url":"https://api.github.com/repos/driskell/log-courier/issues/118/events","html_url":"https://github.com/driskell/log-courier/issues/118","id":58284067,"number":118,"title":"log-courier/logstash plugin crashes when log-courier.conf on the log-shipper is configured with \"fields\": { ..., \"tags\": \"custom_tag\" ","user":{"login":"rogerthat","id":1444833,"avatar_url":"https://avatars.githubusercontent.com/u/1444833?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerthat","html_url":"https://github.com/rogerthat","followers_url":"https://api.github.com/users/rogerthat/followers","following_url":"https://api.github.com/users/rogerthat/following{/other_user}","gists_url":"https://api.github.com/users/rogerthat/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerthat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerthat/subscriptions","organizations_url":"https://api.github.com/users/rogerthat/orgs","repos_url":"https://api.github.com/users/rogerthat/repos","events_url":"https://api.github.com/users/rogerthat/events{/privacy}","received_events_url":"https://api.github.com/users/rogerthat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driskell/log-courier/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"driskell","id":939815,"avatar_url":"https://avatars.githubusercontent.com/u/939815?v=3","gravatar_id":"","url":"https://api.github.com/users/driskell","html_url":"https://github.com/driskell","followers_url":"https://api.github.com/users/driskell/followers","following_url":"https://api.github.com/users/driskell/following{/other_user}","gists_url":"https://api.github.com/users/driskell/gists{/gist_id}","starred_url":"https://api.github.com/users/driskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskell/subscriptions","organizations_url":"https://api.github.com/users/driskell/orgs","repos_url":"https://api.github.com/users/driskell/repos","events_url":"https://api.github.com/users/driskell/events{/privacy}","received_events_url":"https://api.github.com/users/driskell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/driskell/log-courier/milestones/9","html_url":"https://github.com/driskell/log-courier/milestones/1.5","labels_url":"https://api.github.com/repos/driskell/log-courier/milestones/9/labels","id":929830,"number":9,"title":"1.5","description":"","creator":{"login":"driskell","id":939815,"avatar_url":"https://avatars.githubusercontent.com/u/939815?v=3","gravatar_id":"","url":"https://api.github.com/users/driskell","html_url":"https://github.com/driskell","followers_url":"https://api.github.com/users/driskell/followers","following_url":"https://api.github.com/users/driskell/following{/other_user}","gists_url":"https://api.github.com/users/driskell/gists{/gist_id}","starred_url":"https://api.github.com/users/driskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driskell/subscriptions","organizations_url":"https://api.github.com/users/driskell/orgs","repos_url":"https://api.github.com/users/driskell/repos","events_url":"https://api.github.com/users/driskell/events{/privacy}","received_events_url":"https://api.github.com/users/driskell/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":12,"state":"open","created_at":"2015-01-10T16:07:22Z","updated_at":"2015-02-28T12:15:05Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-19T22:58:40Z","updated_at":"2015-02-28T12:15:05Z","closed_at":"2015-02-28T12:15:05Z","body":"\r\ni have the logshipper configure as follows:\r\n\r\n```\r\n...\r\n  \"files\": [\r\n    {\r\n      \"paths\": [\r\n        \"/var/log/messages\",\r\n        \"/var/log/syslog\",\r\n        \"/var/log/daemon.log\"\r\n      ],\r\n\r\n      \"fields\": { \"type\": \"syslog\", \"tags\": \"my_tag\" }\r\n    }, {\r\n      \"paths\": [\r\n        \"/var/log/apache/*access.log\"\r\n      ],\r\n      \"fields\": { \"type\": \"apache_access\", \"tags\": \"my_tag\"  }\r\n    }, {\r\n      \"paths\": [\r\n        \"/var/log/auth.log\"\r\n      ],\r\n      \"fields\": { \"type\": \"auth_log\", \"tags\": \"my_tag\"  }\r\n    }, {\r\n...\r\n```\r\n\r\nlogstash/log-courier - input - plugin crashes with the following message:\r\n\r\n```\r\n{:timestamp=>\"2015-02-19T20:59:10.425000+0100\", :message=>\"A plugin had an unrecoverable error. Will restart this plugin.\\n  Plugin: <LogStash::Inputs::Courier ssl_certificate=>\\\"/etc/logstash/ssl/logstash-forwarder.crt\\\", ssl_key=>\\\"/etc/logstash/ssl/logstash-forwarder.key\\\", tags=>[\\\"logstash_fw\\\"], host=>\\\"0.0.0.0\\\", transport=>\\\"tls\\\">\\n  Error: can't convert Array into String\", :level=>:error, \"plugin\"=>\"input/courier\", \"port\"=>1514}\r\n{:timestamp=>\"2015-02-19T20:59:11.428000+0100\", :hint=>\"Unknown error, shutting down\", :level=>:warn, :message=>\"undefined method `nil' for #<Cabin::Channel:0x43838e5e>\", :exception=>NoMethodError, :backtrace=>[\"elk/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/log-courier-1.3.1.g1d79349/lib/log-courier/server_tcp.rb:137:in `run'\", \"org/jruby/RubyKernel.java:1521:in `loop'\", \"/elk/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/log-courier-1.3.1.g1d79349/lib/log-courier/server_tcp.rb:128:in `run'\", \"/elk/logstash-1.4.2/vendor/bundle/jruby/1.9/gems/log-courier-1.3.1.g1d79349/lib/log-courier/server.rb:73:in `run'\"], \"plugin\"=>\"input/courier\", \"port\"=>1514}\r\n```\r\n\r\nwhen i'm configuring it the following way everything works fine:\r\n\r\n```\r\n  \"files\": [\r\n    {\r\n      \"paths\": [\r\n        \"/var/log/messages\",\r\n        \"/var/log/syslog\",\r\n        \"/var/log/daemon.log\"\r\n      ],\r\n\r\n      \"fields\": { \"type\": \"syslog\", \"my_tag\": \"yes }\r\n    }, {\r\n      \"paths\": [\r\n        \"/var/log/apache/*access.log\"\r\n      ],\r\n      \"fields\": { \"type\": \"apache_access\", \"my_tag\": \"yes  }\r\n    }, {\r\n      \"paths\": [\r\n        \"/var/log/auth.log\"\r\n      ],\r\n      \"fields\": { \"type\": \"auth_log\", \"my_tag\": \"yes  }\r\n    }, {\r\n...\r\n```\r\n\r\nit seems, i cannot use \"tags\" as field - designator?\r\n\r\n"}}