[2019-02-21T18:44:36,180][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.6.1"}
[2019-02-21T18:44:37,623][ERROR][logstash.config.sourceloader] Could not fetch all the sources {:exception=>Errno::EACCES, :message=>"Permission denied - /etc/logstash/conf.d/logstash.conf", :backtrace=>["org/jruby/RubyIO.java:3600:in read'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:71:in
block in read'", "org/jruby/RubyArray.java:1734:in each'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:61:in
read'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:94:in read'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/local.rb:190:in
local_pipeline_configs'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/multi_local.rb:26:in block in pipeline_configs'", "org/jruby/RubyArray.java:2486:in
map'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/multi_local.rb:21:in pipeline_configs'", "/usr/share/logstash/logstash-core/lib/logstash/config/source_loader.rb:61:in
block in fetch'", "org/jruby/RubyArray.java:2481:in collect'", "/usr/share/logstash/logstash-core/lib/logstash/config/source_loader.rb:60:in
fetch'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:155:in converge_state_and_update'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:103:in
execute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:362:in block in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in
block in initialize'"]}
[2019-02-21T18:44:37,643][ERROR][logstash.agent ] An exception happened when converging configuration {:exception=>RuntimeError, :message=>"Could not fetch the configuration, message: Permission denied - /etc/logstash/conf.d/logstash.conf", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/agent.rb:162:in converge_state_and_update'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:103:in
execute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:362:in block in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in
block in initialize'"]}
[2019-02-21T18:44:38,029][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
edit /etc/systemd/system/logstash.service
change logstash start user : root
[Unit]
Description=logstash
[Service]
Type=simple
User=root
Group=root
Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
Prefixing the path with '-' makes it try to load, but if the file doesn't
exist, it continues onward.
EnvironmentFile=-/etc/default/logstash
EnvironmentFile=-/etc/sysconfig/logstash
ExecStart=/usr/share/logstash/bin/logstash "--path.settings" "/etc/logstash"
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384
[Install]
WantedBy=multi-user.target
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.