{"action":"created","issue":{"url":"https://api.github.com/repos/dwbutler/logstash-logger/issues/34","labels_url":"https://api.github.com/repos/dwbutler/logstash-logger/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/dwbutler/logstash-logger/issues/34/comments","events_url":"https://api.github.com/repos/dwbutler/logstash-logger/issues/34/events","html_url":"https://github.com/dwbutler/logstash-logger/issues/34","id":57955986,"number":34,"title":"LogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe","user":{"login":"kikicarbonell","id":584806,"avatar_url":"https://avatars.githubusercontent.com/u/584806?v=3","gravatar_id":"","url":"https://api.github.com/users/kikicarbonell","html_url":"https://github.com/kikicarbonell","followers_url":"https://api.github.com/users/kikicarbonell/followers","following_url":"https://api.github.com/users/kikicarbonell/following{/other_user}","gists_url":"https://api.github.com/users/kikicarbonell/gists{/gist_id}","starred_url":"https://api.github.com/users/kikicarbonell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikicarbonell/subscriptions","organizations_url":"https://api.github.com/users/kikicarbonell/orgs","repos_url":"https://api.github.com/users/kikicarbonell/repos","events_url":"https://api.github.com/users/kikicarbonell/events{/privacy}","received_events_url":"https://api.github.com/users/kikicarbonell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T17:39:11Z","updated_at":"2015-02-17T19:18:44Z","closed_at":"2015-02-17T19:18:44Z","body":"I'm using gem logstash-logger version 0.8.0 in my Rails 4.1 app. My config:\r\n```\r\n    ...\r\n    config.log_level = :info\r\n    config.assets.debug = false\r\n\r\n    config.lograge.enabled = true\r\n    config.lograge.formatter = Lograge::Formatters::Logstash.new\r\n\r\n    # add time to lograge\r\n    config.lograge.custom_options = lambda do |event|\r\n      {:deploy_name => 'my-app'}\r\n    end\r\n\r\n    # Optional, Rails 4 defaults to true in development and false in production\r\n    config.autoflush_log = true\r\n\r\n    config.logstash = [\r\n        {\r\n            type: :file,\r\n            path: 'log/staging.log'\r\n        },\r\n        {\r\n            type: :tcp,\r\n            port: ENV['LS_PORT'],\r\n            host: ENV['LS_HOST']\r\n        }\r\n    ]\r\n   ...\r\n```\r\n\r\n When I deploy it all look fine but sometime the error console log shows this messages:\r\n```\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\n```\r\nI supouse that problem is about TCP lost connection or overhead TCP port...I don't know...Anybody have some idea about it?"},"comment":{"url":"https://api.github.com/repos/dwbutler/logstash-logger/issues/comments/74732739","html_url":"https://github.com/dwbutler/logstash-logger/issues/34#issuecomment-74732739","issue_url":"https://api.github.com/repos/dwbutler/logstash-logger/issues/34","id":74732739,"user":{"login":"kikicarbonell","id":584806,"avatar_url":"https://avatars.githubusercontent.com/u/584806?v=3","gravatar_id":"","url":"https://api.github.com/users/kikicarbonell","html_url":"https://github.com/kikicarbonell","followers_url":"https://api.github.com/users/kikicarbonell/followers","following_url":"https://api.github.com/users/kikicarbonell/following{/other_user}","gists_url":"https://api.github.com/users/kikicarbonell/gists{/gist_id}","starred_url":"https://api.github.com/users/kikicarbonell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikicarbonell/subscriptions","organizations_url":"https://api.github.com/users/kikicarbonell/orgs","repos_url":"https://api.github.com/users/kikicarbonell/repos","events_url":"https://api.github.com/users/kikicarbonell/events{/privacy}","received_events_url":"https://api.github.com/users/kikicarbonell/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T19:18:44Z","updated_at":"2015-02-17T19:18:44Z","body":"@dwbutler thks for your time, but as I say, at the begining of startup app all log was sended to my logstash server, but sometimes the rails app log show:\r\n```\r\nLogStashLogger::Device::TCP - Errno::EPIPE - Broken pipe\r\n```\r\nI haven't a firewall, or any connection restrictions...If I have a connection problem this error should be showed from startup rails app."}}