logstash-plugins / logstash-input-websocket

Apache License 2.0
13 stars 18 forks source link

logstash-input-websocket not working in windows #18

Open sreeja2371 opened 6 years ago

sreeja2371 commented 6 years ago

The websocket input which is working fine in Linux is not working in Windows. Getting

[2018-07-27T12:19:49,037][WARN ][logstash.inputs.websocket] websocket input client threw exception, restarting {:exception=>#<Errno::EBADF: Bad file descriptor - No message available>} [2018-07-27T12:20:15,582][WARN ][logstash.inputs.websocket] websocket input client threw exception, restarting {:exception=>#<Errno::EBADF: Bad file descriptor - No message available>}

Config file I am using is

input { websocket { url => "ws://0.0.0.0:8081/" } }

Could output { file { path => "C:\ouput_log\logdata.log" } }

Could anyone please help?

BrianKrohn commented 6 years ago

I am getting this same error under Windows Server. My config: `input { websocket { id => "my_id" codec => "json" url => "wss://external-url.com/inbound/log/data" } }

output { elasticsearch { hosts => ["localhost:9200"] } stdout { codec => rubydebug } }`

My websocket URL is returning data, as I am able to see it with wscat (nodejs cli tool).