Logstah tcp input plugin

Hello,

When I use the tcp input plugin in mode server, it works. But it does not work in mode client.It can connect to the server,but does not receive data.It's about a webserver : I try to extract data from a database which is on that server.
Here a very simple code :slight_smile:

  1. input {

  2. tcp {

  3. mode => "client"

  4. host => "194.167.200.22"

  5. port => 80

  6. }

  7. output {

  8. stdout { codec => rubydebug }
    
  9. }

Could you explain how it works in mode client.

Thank you very much for your help

If you are connecting to a web server then it will not send you data until you send it a request. A tcp input will not work. Try using an http_poller input.

ok I will try.

I gave you another information : the webserver does not have a rest architecture: it is an old server. It is why I use this input-tcp.

Yes I send request with curl to the server while i connect the input-tcp on the server.The connection works.

It works with http_poller.Thank you so much.

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