{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/3036","labels_url":"https://api.github.com/repos/elastic/logstash/issues/3036/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/3036/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/3036/events","html_url":"https://github.com/elastic/logstash/issues/3036","id":69098812,"number":3036,"title":"uninitialized constant LogStash::Outputs::Tcp::TCPSocket","user":{"login":"Gingonic","id":2501585,"avatar_url":"https://avatars.githubusercontent.com/u/2501585?v=3","gravatar_id":"","url":"https://api.github.com/users/Gingonic","html_url":"https://github.com/Gingonic","followers_url":"https://api.github.com/users/Gingonic/followers","following_url":"https://api.github.com/users/Gingonic/following{/other_user}","gists_url":"https://api.github.com/users/Gingonic/gists{/gist_id}","starred_url":"https://api.github.com/users/Gingonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gingonic/subscriptions","organizations_url":"https://api.github.com/users/Gingonic/orgs","repos_url":"https://api.github.com/users/Gingonic/repos","events_url":"https://api.github.com/users/Gingonic/events{/privacy}","received_events_url":"https://api.github.com/users/Gingonic/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/needs%20details","name":"needs details","color":"f7c6c7"},{"url":"https://api.github.com/repos/elastic/logstash/labels/needs%20tests","name":"needs tests","color":"f7c6c7"},{"url":"https://api.github.com/repos/elastic/logstash/labels/unconfirmed","name":"unconfirmed","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"purbon","id":68540,"avatar_url":"https://avatars.githubusercontent.com/u/68540?v=3","gravatar_id":"","url":"https://api.github.com/users/purbon","html_url":"https://github.com/purbon","followers_url":"https://api.github.com/users/purbon/followers","following_url":"https://api.github.com/users/purbon/following{/other_user}","gists_url":"https://api.github.com/users/purbon/gists{/gist_id}","starred_url":"https://api.github.com/users/purbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purbon/subscriptions","organizations_url":"https://api.github.com/users/purbon/orgs","repos_url":"https://api.github.com/users/purbon/repos","events_url":"https://api.github.com/users/purbon/events{/privacy}","received_events_url":"https://api.github.com/users/purbon/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-04-17T09:01:31Z","updated_at":"2015-04-20T07:15:30Z","closed_at":"2015-04-20T07:15:30Z","body":"Hi\r\n\r\nwhile trying to output to a TCP socket, Logstash throws following error\r\n\r\n```\r\ntcp output exception {:host=>\"XXXXXXXX\", :port=>31051, :exception=>#<NameError: uninitialized constant LogStash::Outputs::Tcp::TCPSocket>, :backtrace=>[\"org/jruby/RubyModule.java:2690:in `const_missing'\", \r\n\"/opt/logstash/lib/logstash/outputs/tcp.rb:124:in `connect'\", \"org/jruby/RubyProc.java:271:in `call'\",\r\n\"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/try.rb:75:in `try'\", \r\n\"org/jruby/RubyProc.java:271:in `call'\", \r\n\"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/try.rb:91:in `try'\", \r\n\"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/try.rb:20:in `each'\", \r\n\"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/try.rb:87:in `try'\", \r\n\"/opt/logstash/vendor/bundle/jruby/1.9/gems/stud-0.0.17/lib/stud/try.rb:119:in `try'\", \r\n\"/opt/logstash/lib/logstash/outputs/tcp.rb:123:in `connect'\", \r\n\"/opt/logstash/lib/logstash/outputs/tcp.rb:100:in `register'\", \"org/jruby/RubyProc.java:271:in `call'\", \r\n\"/opt/logstash/lib/logstash/codecs/json.rb:45:in `encode'\", \r\n\"/opt/logstash/lib/logstash/outputs/tcp.rb:143:in `receive'\", \r\n\"/opt/logstash/lib/logstash/outputs/base.rb:86:in `handle'\", \"(eval):17:in `initialize'\", \r\n\"org/jruby/RubyProc.java:271:in `call'\", \"/opt/logstash/lib/logstash/pipeline.rb:266:in `output'\", \r\n\"/opt/logstash/lib/logstash/pipeline.rb:225:in `outputworker'\", \r\n\"/opt/logstash/lib/logstash/pipeline.rb:152:in `start_outputs'\"], :level=>:warn}\r\n```\r\nI tested the socket, messages can pass through\r\n\r\n``` \r\nnc XXXXXXXX 31051\r\n```  \r\nI'have installed logstash 1.4.2 over ubuntu 14.04 package \r\n\r\n\r\nThe input consumer works and I don't think the input can have an impact but still : \r\n\r\n```\r\ninput {\r\n  rabbitmq {\r\n    queue => \"log-messages\"\r\n    host => \"YYYYYYY\"\r\n    password => \"somepass\"\r\n    port => 31075\r\n    user => \"someuser\"\r\n    exchange => \"log-messages\"\r\n    key => \"log-key\"\r\n  }\r\n}\r\noutput {\r\n  tcp {\r\n    host => \"XXXXXXXX\"\r\n    port => \"31051\"\r\n  }\r\n}\r\n```\r\n\r\nAny idea ? I could only find one similar issue back in february 2014 on the logstash 1.3, but no answer."}}