# Logstash : ERROR RollingFileManager

**URL:** <https://discuss.elastic.co/t/logstash-error-rollingfilemanager/209660>\
**Category:** Logstash\
**Created:** [November 27, 2019, 10:45am UTC](https://discuss.elastic.co/t/logstash-error-rollingfilemanager/209660 "2019-11-27T10:45:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabil777](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@Nabil777](https://discuss.elastic.co/u/Nabil777)\
**Post date:** [November 27, 2019, 10:45am UTC](https://discuss.elastic.co/t/logstash-error-rollingfilemanager/209660/1 "2019-11-27T10:45:52Z")

</div>

Hello,  
Logstash worked normally until this morning I don't understand why it doesn't work anymore here's the error parts of the logs, it seems that it's related to the log4j2.properties (wich i never modified) and some permissions for the log files.  
`logstash[31806]: 2019-11-27 05:36:42,840 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@2e8828b5] unable to create manager for [/var/log/logstash/logstash-slowlog-plain.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@5910aa2e[pattern=/var/log/logstash/logstash-slowlog-plain-%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true), SizeBasedTriggeringPolicy(size=104857600)]), strategy=DefaultRolloverStrategy(min=1, max=30, useMax=true), advertiseURI=null, layout=[%d{ISO8601}][%-5p][%-25c] %m%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@2e8828b5] unable to create manager for [/var/log/logstash/logstash-slowlog-plain.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@5910aa2e[pattern=/var/log/logstash/logstash-slowlog-plain-%d{yyyy-MM-dd}-%i.log.gz, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[TimeBasedTriggeringPolicy(nextRolloverMillis=0, interval=1, modulate=true), SizeBasedTriggeringPolicy(size=104857600)]), strategy=DefaultRolloverStrategy(min=1, max=30, useMax=true), advertiseURI=null, layout=[%d{ISO8601}][%-5p][%-25c] %m%n, filePermissions=null, fileOwner=null]]",`

```
       ` main ERROR RollingFileManager (/var/log/logstash/logstash-slowlog-plain.log) java.io.FileNotFoundException: /var/log/logstash/logstash-slowlog-plain.log (Permission non accordée) java.io.FileNotFoundException: /var/log/logstash/logstash-slowlog-plain.log (Permission non accordée)",`

```

is there something that i need to change in the log4j2.properties file ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 27, 2019, 4:42pm UTC](https://discuss.elastic.co/t/logstash-error-rollingfilemanager/209660/2 "2019-11-27T16:42:32Z")

</div>

Check the permissions on /var/log/logstash and make sure that you have permissions to write to it.

I believe that some logstash version updates revert the group ownership of /var/log/logstash from logstash back to root. Logging then fails until I change it back.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 25, 2019, 4:53pm UTC](https://discuss.elastic.co/t/logstash-error-rollingfilemanager/209660/3 "2019-12-25T16:53:33Z")

</div>

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