# Logstash rpm service on unix

**URL:** <https://discuss.elastic.co/t/logstash-rpm-service-on-unix/165746>\
**Category:** Logstash\
**Created:** [January 25, 2019, 10:17am UTC](https://discuss.elastic.co/t/logstash-rpm-service-on-unix/165746 "2019-01-25T10:17:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)\
**Post date:** [January 25, 2019, 10:17am UTC](https://discuss.elastic.co/t/logstash-rpm-service-on-unix/165746/1 "2019-01-25T10:17:02Z")

</div>

okay i was running logstash on unix using the /bin logstash comman but it gives the warning that it cant find the logstash.yml when it already exists so i found out that i should run it as a service so i did that and the service is keeping on restarting and giving these errors even running on root

019-01-25 12:09:09,067 main 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

java.io.FileNotFoundException: /var/log/logstash/logstash-slowlog-plain.log (Permission denied) java.io.FileNotFoundException: /var/log/logstash/logstash-slowlog-plain.log (Permission denied)

also please I want to know all the permissions I need to enable on unix bc I have limited time access on root

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [January 29, 2019, 12:39pm UTC](https://discuss.elastic.co/t/logstash-rpm-service-on-unix/165746/2 "2019-01-29T12:39:19Z")

</div>

Does this help?

> [@What permissions does logstash need to run as a service?](https://discuss.elastic.co/t/what-permissions-does-logstash-need-to-run-as-a-service/52753):
>
> I am running Logstash as a service, but it doesn't collect the logs. But when I run the bynary (bin/logstash -f test.conf) I collect the logs. And in the two cases I am using the same .conf file. In other posts it is said I need to give Logstash permissions, but I've been unable to identify what files/folders have to be granted permission. Could someone point that? Thanks in advance!

---

<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:** [February 26, 2019, 12:39pm UTC](https://discuss.elastic.co/t/logstash-rpm-service-on-unix/165746/3 "2019-02-26T12:39:54Z")

</div>

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