I get these errors when trying to start Logstash. I tried changing permissions. What do your permission settings look like on Ubuntu?
logstash --path.settings /etc/logstash
`ERROR Unable to create file /var/log/logstash/logstash-plain.log java.io.IOException: Permission denied
ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory
ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender
ERROR Unable to create file /var/log/logstash/logstash-plain.log java.io.IOException: Permission denied
main ERROR Null object returned for RollingFile in Appenders.
main ERROR Null object returned for RollingFile in Appenders.
main ERROR Unable to locate appender "plain_rolling" for logger config "root"
`
These are my permission settings:
drwxrwxr-x 10 logstash logstash 4096 Mar 9 17:33 /usr/share/logstash
drwxrwxr-x 3 root root 4096 Mar 9 17:38 /etc/logstash
drwxrwxr-x 2 logstash logstash 4096 Feb 16 15:54 logstash