Shipping logs using websocket instead filebeat to logstash

Hi,

I am trying to use websocket instead of filebeat to ship the logs from a log file to logstash.

I can see that the configuration for the logstash config for input is something like below:

input {
  websocket {
    codec => "plain"
    url => "ws://127.0.0.1:9300/"
  }
}

But this is the client side , If I understand it correctly. How am I supposed to create websocket server to which this client request?

And moreover how is that server supposed tot send the logs to this client as was done initially by filebeat.

Appreciate any sort of help in clearing the doubt and guidance.

Thanks.

Hi,

As you correctly stated Logstash does not currently support acting as a websocket server. Why don't you use a simple http input? You can use a simple HTTP request from any programming language to send data.

Best regards
Wolfram

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.