Hello again all. Thank you so much for your help on my previous question.
Hopefully this is my last (lol almost got that out with a straight face)
When I run the command line on my redhat box
./logstash -f /usr/share/logstash/unique_name.conf
Everything works as planned.
I have copied this file into the /etc/logstash/conf.d directory.
However.. when I run initctl start logstash the process runs but it does not appear that my config file is being processed. I can do a ps-ef|grep logstash and see the output.
did I miss editing a file or do I need to put this conf file somewhere else? Please advise and thank you !
Where to fetch the pipeline configuration for the main pipeline
path.config: /etc/logstash/conf.d
I have the following files (both are the same config located in the /etc/logstash.conf.d folder
-rw-r--r--. 1 root root 197 Apr 25 13:57 default.conf
-rw-r--r--. 1 root root 197 Apr 25 13:38 rsyslog_bwc.conf
how can i do that when issuing the initctl start logstash command?
sorry for such a basic question... do i pass a --v at the end ? im unfamiliar with the syntax
The only messages I see in the /var/log/logstash/logstash-plain.log have occurred when I run with initctl.
[2017-04-26T08:53:53,961][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Path "/usr/share/logstash/data/queue" must be a writable directory. It is not writable.>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:420:in validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:202:invalidate_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:118:in validate_all'", "org/jruby/RubyHash.java:1342:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:117:in validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:210:inexecute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:183:inrun'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/usr/share/logstash/lib/bootstrap/environment.rb:71:in(root)'"]}
[
It looks like a config file validation problem, but with the way you posted the log snippet some of the interesting parts were hidden. What comes after {:error=>#?
[2017-04-26T09:42:07,897][FATAL][logstash.runner ]
An unexpected error occurred! {:error=>#<ArgumentError: Path "/usr/share/logstash/data/queue" must be a writable directory.
It is not writable.>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:420:in validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:202:invalidate_value'",
"/usr/share/logstash/logstash-core/lib/logstash/settings.rb:118:in validate_all'", "org/jruby/RubyHash.java:1342:ineach'",
"/usr/share/logstash/logstash-core/lib/logstash/settings.rb:117:in validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:210:inexecute'",
"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:183:inrun'",
"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/usr/share/logstash/lib/bootstrap/environment.rb:71:in(root)'"]}
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.