# Java.lang.illegalstateexception

**URL:** <https://discuss.elastic.co/t/java-lang-illegalstateexception/209467>\
**Category:** Logstash\
**Created:** [November 26, 2019, 10:16am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception/209467 "2019-11-26T10:16:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Mandal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_mandal/32/57073_2.png) [@Sagar\_Mandal](https://discuss.elastic.co/u/Sagar_Mandal)\
**Post date:** [November 26, 2019, 10:16am UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception/209467/1 "2019-11-26T10:16:10Z")

</div>

Hi i'm new to ELK Stack,  
I'm currently trying to ingest data from filebeat to logstash and using grok filter in it.  
i accidentally deleted the whole log folder of logstash /var/log/logstash,  
so i created the folder by mkdir, but logs didn't show up.  
and i removed logstash and reinstalled it. but now i'm getting this error  
if i go to /var/log/logstash  
and use this command  
cat logstash-plain.log |grep ERROR

this is the error i'm getting

_**java.lang.illegalstateexception: logstash stopped processing because of an error: (systemexit) exit**_

 ![20%20PM](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2fae27cb20454ea0ea429ad28840dfce27377fd2.png)

I'm using RHEL 7 and also  
I've set my java path too, Everything is up but logstash is showing me this error.

I've used bin/logstash -f /etc/logstash/conf.d/\*conf --config.test\_and\_exit too check my config file is okay or not and it's result is OK

Any solution would do great,  
Thanks

---

<div class="post-metadata">

**Author:** ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)\
**Post date:** [November 26, 2019, 4:15pm UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception/209467/2 "2019-11-26T16:15:19Z")

</div>

This is probably something to ask the [logstash](https://discuss.elastic.co/c/logstash) team. Best of luck!

---

<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 24, 2019, 4:15pm UTC](https://discuss.elastic.co/t/java-lang-illegalstateexception/209467/3 "2019-12-24T16:15:26Z")

</div>

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