Hi,
I am new to Logstash world. Can some one help me how to write conf for below scenario.
I have data collected from tcp and I output to http. Like below
input {
tcp {
port =>8777
codec => multiline {
pattern =>"([1])"
negate =>"false"
what =>"previous"
}
}
}
output {
http {
url=>"http://xyz.com/service1"
proxy=>"host:port"
http_method=>"post"
format => "json"
}
}
How do I modify this config to collect 5secs data from tcp port and output to http.