We are using logstash 2.1.1 version and running 5 different logstash process on RHEL, my concern is that whenever the servers goes down these process are getting stopped and these process are require to start manually when they started.
Kindly suggest me that ' how to add logstash process to the RHEL startup or suggest me the best approach'.
As you suggested, i am trying to work on OS level, but when i run the logstash service, it is getting stopped in the middle and throwing below error msg
{:timestamp=>"2017-05-02T03:17:57.535000-0400", :message=>"You are using a deprecated config setting \"message_format\" set in file. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. You can achieve the same behavior with the 'line' codec If you have any questions about this, please visit the #logstash channel on freenode irc.", :name=>"message_format", :plugin=><LogStash::Outputs::File path=>"/opt/logstash/bruteforce.yml", message_format=>"%{src_ip}: login_failed">, :level=>:warn}
{:timestamp=>"2017-05-02T03:17:58.598000-0400", :message=>"Pipeline main started"}
{:timestamp=>"2017-05-02T03:17:58.703000-0400", :message=>"Pipeline main has been shutdown"}
{:timestamp=>"2017-05-02T03:18:01.604000-0400", :message=>"stopping pipeline", :id=>"main"}
For rpm package it should be enough with setting LS systemctl service entry to enabled (it is disabled by default).
If you ahve already done son (as it looks based on your logs), I would suggest checking out /var/log/logstash/* logs to look for the cause why it is not being able to start (have you made sure to have Java 8 installed?) I've recently found that jre is not set up as a dependency
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.