# Logstash stopping unexpectedly

**URL:** <https://discuss.elastic.co/t/logstash-stopping-unexpectedly/27026>\
**Category:** Logstash\
**Created:** [August 7, 2015, 6:51am UTC](https://discuss.elastic.co/t/logstash-stopping-unexpectedly/27026 "2015-08-07T06:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksvagarwal](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@ksvagarwal](https://discuss.elastic.co/u/ksvagarwal)\
**Post date:** [August 7, 2015, 6:51am UTC](https://discuss.elastic.co/t/logstash-stopping-unexpectedly/27026/1 "2015-08-07T06:51:08Z")

</div>

I have set up a logstash with redis architecture to handle my logs. The way I have organized it is:

```
logstash ---> redis ---> logstash ---> elasticsearch

```

but the problem that occurred is that after parsing nearly 1.25 million logs a java exception is thrown.  
In my `logstash.err` log file, the exception appears as

```
Exception in thread "<file" java.lang.UnsupportedOperationException
    at java.lang.Thread.stop(Thread.java:869)
    at org.jruby.RubyThread.exceptionRaised(RubyThread.java:1221)
    at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:112)
    at java.lang.Thread.run(Thread.java:745)

```

I think that this exception might be thrown because of logstash unable to open/close a file. So what can I do to rectify this error? The way that my input configuration is set for my first logstash server to send the logs is:

```
input {
    file {
        start_position => "beginning"
        path => [
            "/var/logstash_logs/child1/nginx/*log*",
            "/var/logstash_logs/child2/nginx/*log*",
            "/var/logstash_logs/child3/nginx/*log*"
        ]
    }
}

```

And the way output is sent is like this:

```
output {
    redis {
        host => "X.X.X.X"
        key => "logstash"
        data_type => "list"
    }
}

```

There are no errors in the logs of logstash server with redis installed. Thanks in advance for your help! 🙂

---

<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:** [August 8, 2015, 12:19am UTC](https://discuss.elastic.co/t/logstash-stopping-unexpectedly/27026/2 "2015-08-08T00:19:49Z")

</div>

What version are you on?

---

<div class="post-metadata">

**Author:** ![ksvagarwal](https://avatars.discourse-cdn.com/v4/letter/k/8baadc/32.png) [@ksvagarwal](https://discuss.elastic.co/u/ksvagarwal)\
**Post date:** [August 8, 2015, 5:55am UTC](https://discuss.elastic.co/t/logstash-stopping-unexpectedly/27026/3 "2015-08-08T05:55:53Z")

</div>

I am using logstash 1.5.3 along with elasticsearch 1.5 and kibana 4.1

---

<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:** [July 6, 2017, 5:32am UTC](https://discuss.elastic.co/t/logstash-stopping-unexpectedly/27026/4 "2017-07-06T05:32:31Z")

</div>


