# Troubles running Logstash on RHEL

**URL:** <https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472>\
**Category:** Logstash\
**Created:** [February 25, 2021, 11:30am UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472 "2021-02-25T11:30:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PawelKosiorek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pawelkosiorek/32/84534_2.png) [@PawelKosiorek](https://discuss.elastic.co/u/PawelKosiorek)\
**Post date:** [February 25, 2021, 11:30am UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/1 "2021-02-25T11:30:21Z")

</div>

![Zrzut ekranu 2021-02-25 o 12.28.21](https://us1.discourse-cdn.com/elastic/original/3X/e/c/ece36a0f480663cecd6bba430d9e89c94afdefb1.png)

It used to work fine, but recently it has been giving me this. Please help. Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 25, 2021, 11:04pm UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/2 "2021-02-25T23:04:36Z")

</div>

Welcome to our community! 😃

Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![rijinmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rijinmp/32/24634_2.png) [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Post date:** [February 26, 2021, 6:09am UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/3 "2021-02-26T06:09:44Z")

</div>

In Your command specify the filter/conf file . You ae just specified the directory name

Like this  
`/opt/logstash/bin/logstash -f /etc/logstash/conf.d/your_sample_filterfile.conf`

Run this command with root privilege's

---

<div class="post-metadata">

**Author:** ![rijinmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rijinmp/32/24634_2.png) [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Post date:** [February 26, 2021, 6:11am UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/4 "2021-02-26T06:11:57Z")

</div>

And Also try to setup -\> `LS_HOME and LS_SETTINGS_DIR`

From terminal try this command to set LS\_HOME and LS\_SETTINGS\_DIR

````auto
export LS_SETTINGS_DIR=/etc/logstash/
export PATH=$PATH:$LS_HOME/bin
export PATH```
````

---

<div class="post-metadata">

**Author:** ![PawelKosiorek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pawelkosiorek/32/84534_2.png) [@PawelKosiorek](https://discuss.elastic.co/u/PawelKosiorek)\
**Post date:** [February 26, 2021, 7:12am UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/5 "2021-02-26T07:12:31Z")

</div>

Continuing the discussion from [Troubles running Logstash on RHEL](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/3):  
Ok, I will. Thank you.

---

<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:** [March 26, 2021, 7:13am UTC](https://discuss.elastic.co/t/troubles-running-logstash-on-rhel/265472/6 "2021-03-26T07:13:33Z")

</div>

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