Logstash implement error


(Hadii) #1

I want to Implement logstash and follow every steps witch logstash document explain but Logstash gave me this error is any one know what should I do ?

indent preformatted text by 4 spaces

Caused by: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@389fe1ee] unable to create manager for [/home/logserver/logstash/logs/logstash-slowlog-plain.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@2ce3d4bb[pattern=/home/logserver/logstash/logs/logstash-slowlog-plain-%d{yyyy-MM-dd}.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true)]), strategy=DefaultRolloverStrategy(min=1, max=7), advertiseURI=null, layout=org.apache.logging.log4j.core.layout.JsonLayout@2f5a22ae]]
	at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:75)
	at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:81)
	at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:103)
	at org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(RollingFileAppender.java:191)
	... 105 more

2017-08-07 00:09:03,662 main ERROR Null object returned for RollingFile in Appenders.
2017-08-07 00:09:03,663 main ERROR Null object returned for RollingFile in Appenders.
2017-08-07 00:09:03,663 main ERROR Null object returned for RollingFile in Appenders.
2017-08-07 00:09:03,664 main ERROR Null object returned for RollingFile in Appenders.
2017-08-07 00:09:03,664 main ERROR Unable to locate appender "plain_rolling" for logger config "root"
2017-08-07 00:09:03,665 main ERROR Unable to locate appender "plain_rolling_slowlog" for logger config "slowlog"
[2017-08-07T00:09:03,739][FATAL][logstash.runner          ] An unexpected error occurred! {:error=>#<ArgumentError: Path "/home/logserver/logstash/data/queue" must be a writable directory. It is not writable.>, :backtrace=>["/home/logserver/logstash/logstash-core/lib/logstash/settings.rb:439:in `validate'", "/home/logserver/logstash/logstash-core/lib/logstash/settings.rb:222:in `validate_value'", "/home/logserver/logstash/logstash-core/lib/logstash/settings.rb:138:in `validate_all'", "org/jruby/RubyHash.java:1342:in `each'", "/home/logserver/logstash/logstash-core/lib/logstash/settings.rb:137:in `validate_all'", "/home/logserver/logstash/logstash-core/lib/logstash/runner.rb:244:in `execute'", "/home/logserver/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/home/logserver/logstash/logstash-core/lib/logstash/runner.rb:209:in `run'", "/home/logserver/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/home/logserver/logstash/lib/bootstrap/environment.rb:71:in `(root)'"]}

(Magnus Bäck) #2

Here's the problem:

Path "/home/logserver/logstash/data/queue" must be a writable directory. It is not writable.


(Hadii) #3

could you please tell me how should I change this Path “/home/logserver/logstash/data/queue” writable because I read this article witch explain about change permission in filebeat and I follow steps like this chmod 777 /queue but it said that there is no such file or directory .


(system) #4

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