Simpe input/output plugin

Hi Guys,

I am new to Logstash. I want to make simple input and output plugin which will not change format of the message. I have done the config, but output plugin is not working:/

For the input plugin I have a separate file: input.conf

input {
tcp {
port => 5555
type => "master"
}
}

For the output plugin I have separate file: output.conf

output {
if [type] == "master" {
tcp {
host => "1.1.1.1"
port => 514
}
}
}

I am not seeing that logstash is sent the messages to 1.1.1.1. Can you help and provide the best troubleshooting. My idea is just to forward the same message to upstream device.

Thanks a lot

What happens if you remove the conditional? Have you looked in the Logstash log for clues? How are you starting Logstash and where are your configuration files located?

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