I'm tryin' to use logstash with multiple pipelines. Running version 6.2.3.
When I run the logstash using "-f test.conf" it works as expected, but when multiple pipelines are configured and logstash runs with "bin/logstash", it process the first message (pipeline test) and then stops. I configured the log to DEBUG but couldn't find any information about the problem, even though no error is emitted, nothing works.
Here's an example of my pipeline:
input {
mqtt {
topic => "/mqtt/persistence/test"
host => "localhost"
username => "user"
password => "pwd"
client_id => "test"
clean_session => false
qos => 1
}
}
When pasting code in, please use the preformatted text button, makes reading configs a ton easier, the button looks like </>. Regarding your issue, MQTT doesn't have much in the way of documentation, it's possible it is working properly and just stopping because it's not being told to sleep. To assist in troubleshooting, what OS are you running Logstash on and can you drop your debug log onto pastebin or someplace like it so we can view the logs ourselves?
If by chance you are running Logstash on a Windows OS, your pipelines.yml file should not include the drive letter in the path.config settings. For example, C:\Logstash\config\test3.conf should look like path.config: /Logstash/config/test3.conf
I've tried to format it but only part of it got formatted, sorry.
I'm using MacOSX (Sierra). Regarding MQTT, I've tried a lot of things and I can say it works 100% OK when running using only one pipeline (-f parameter). I don't see a problem at all with the input plugin.
I've figured it out why isn't working as expected.
It seems that pipelines doesn't work with the follow properties:
queue.type: persisted
queue.max_bytes: 1024
I just removed these lines and everything worked! Weird though but that fixed the problem. Too bad that my queues are working in MEMORY only but at least its working.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.