{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/4861","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/4861/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/4861/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/4861/events","html_url":"https://github.com/elastic/logstash/issues/4861","id":142479350,"number":4861,"title":"bin/logstash -version errors with wrong message ","user":{"login":"suyograo","id":1595958,"avatar_url":"https://avatars.githubusercontent.com/u/1595958?v=3","gravatar_id":"","url":"https://api.github.com/users/suyograo","html_url":"https://github.com/suyograo","followers_url":"https://api.github.com/users/suyograo/followers","following_url":"https://api.github.com/users/suyograo/following{/other_user}","gists_url":"https://api.github.com/users/suyograo/gists{/gist_id}","starred_url":"https://api.github.com/users/suyograo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suyograo/subscriptions","organizations_url":"https://api.github.com/users/suyograo/orgs","repos_url":"https://api.github.com/users/suyograo/repos","events_url":"https://api.github.com/users/suyograo/events{/privacy}","received_events_url":"https://api.github.com/users/suyograo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/logstash/labels/v2.3.2","name":"v2.3.2","color":"ededed"},{"url":"https://api.github.com/repos/elastic/logstash/labels/v5.0.0-alpha2","name":"v5.0.0-alpha2","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"jsvd","id":31809,"avatar_url":"https://avatars.githubusercontent.com/u/31809?v=3","gravatar_id":"","url":"https://api.github.com/users/jsvd","html_url":"https://github.com/jsvd","followers_url":"https://api.github.com/users/jsvd/followers","following_url":"https://api.github.com/users/jsvd/following{/other_user}","gists_url":"https://api.github.com/users/jsvd/gists{/gist_id}","starred_url":"https://api.github.com/users/jsvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsvd/subscriptions","organizations_url":"https://api.github.com/users/jsvd/orgs","repos_url":"https://api.github.com/users/jsvd/repos","events_url":"https://api.github.com/users/jsvd/events{/privacy}","received_events_url":"https://api.github.com/users/jsvd/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-21T21:40:04Z","updated_at":"2016-04-18T10:58:10Z","closed_at":null,"body":"```\r\nsuyog@machine:/tmp/logstash-2.3.0.snapshot3$ bin/logstash -version\r\nfetched an invalid config {:config=>\"rsioninput { stdin { type => stdin } }output { stdout { codec => rubydebug } }\", :reason=>\"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after \", :level=>:error}\r\nstarting agent {:level=>:info}\r\nsuyog@machine:/tmp/logstash-2.3.0.snapshot3$ bin/logstash -abc\r\nClamp::UsageError: Unrecognised option '-a'\r\n```\r\n\r\nnot sure `-version` is getting parsed as `-v` and `-e rsion`. New behavior in 2.3.0"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/211328208","html_url":"https://github.com/elastic/logstash/issues/4861#issuecomment-211328208","issue_url":"https://api.github.com/repos/elastic/logstash/issues/4861","id":211328208,"user":{"login":"jsvd","id":31809,"avatar_url":"https://avatars.githubusercontent.com/u/31809?v=3","gravatar_id":"","url":"https://api.github.com/users/jsvd","html_url":"https://github.com/jsvd","followers_url":"https://api.github.com/users/jsvd/followers","following_url":"https://api.github.com/users/jsvd/following{/other_user}","gists_url":"https://api.github.com/users/jsvd/gists{/gist_id}","starred_url":"https://api.github.com/users/jsvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsvd/subscriptions","organizations_url":"https://api.github.com/users/jsvd/orgs","repos_url":"https://api.github.com/users/jsvd/repos","events_url":"https://api.github.com/users/jsvd/events{/privacy}","received_events_url":"https://api.github.com/users/jsvd/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T10:58:10Z","updated_at":"2016-04-18T10:58:10Z","body":"this has happened before:\r\n\r\n```\r\n/tmp/logstash-2.1.2 % bin/logstash -version\r\nError: Expected one of #, input, filter, output at line 1, column 1 (byte 1) after \r\nYou may be interested in the '--configtest' flag which you can\r\nuse to validate logstash's configuration before you choose\r\nto restart a running system.\r\n/tmp/logstash-1.5.4 % bin/logstash -version\r\nError: Expected one of #, input, filter, output at line 1, column 1 (byte 1) after \r\nYou may be interested in the '--configtest' flag which you can\r\nuse to validate logstash's configuration before you choose\r\nto restart a running system.\r\n```\r\n\r\nThe only extra detail is that now we output more information about the failed configuration, which didn't happen pre 2.3"}}