# Logstash java related errors

**URL:** https://discuss.elastic.co/t/logstash-java-related-errors/154523
**Category:** Logstash
**Created:** [October 29, 2018, 9:38pm UTC](https://discuss.elastic.co/t/logstash-java-related-errors/154523 "2018-10-29T21:38:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lcui\_dxc](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lcui\_dxc](https://discuss.elastic.co/u/lcui_dxc)
#### Post date: [October 29, 2018, 9:38pm UTC](https://discuss.elastic.co/t/logstash-java-related-errors/154523/1 "2018-10-29T21:38:53Z")

</div>

Hello there,

All the sudden, our developers reported that logstash started working abnormally.  
I took a look on the all nodes of ELK, kibana and elastisticsearch nodes are working fine.  
I'm able to log on to kibana and see that beats are sending data to Elastic via logstash.  
However, there is not log entries in the logstash.log and in the /var/log/messages, I can see that the logstash keeps starting and stopping, the following items in the /var/log/messages logs keep coming:

....................  
Oct 29 16:20:22 logstashhost systemd: Started logstash.  
Oct 29 16:20:22 logstashhost systemd: Starting logstash...  
Oct 29 16:20:25 logstashhost logstash: [ERROR] 2018-10-29 16:20:25.758 [main] Logstash - java.lang.ExceptionInInitializerError  
Oct 29 16:20:25 logstashhost systemd: logstash.service: main process exited, code=exited, status=1/FAILURE  
Oct 29 16:20:25 logstashhost systemd: Unit logstash.service entered failed state.  
Oct 29 16:20:25 logstashhost systemd: logstash.service failed.  
Oct 29 16:20:26 logstashhost systemd: logstash.service holdoff time over, scheduling restart.  
Oct 29 16:20:26 logstashhost systemd: Started logstash.  
Oct 29 16:20:26 logstashhost systemd: Starting logstash.  
......

Nothing changed on logstash.yml, neither on the pipeline.conf files..  
No entries in the logstash log file. But I do see the filebeat is sending data to kibana in almost real time.  
But the pipelines to fetch data from AWS s3 buckets stopped working, we used logstash s3 input plugins to fetch data from s3 buckets to logstash and then to elasticsearch, the plugins stopped working. Again, nothing changed on the pipeline conf on those s3 plugins...

The only change I can see on this linux is that the system admin upgrade java from 1.8.0\_172 to 1.8.0\_181 on the logstash server... but on the elasticsearch nodes, the java is still at 1.8.0\_172.  
Does this java upgrade cause the problem?

here is the Linus system information:

Linux version 3.10.0-862.14.4.el7.x86\_64 ([mockbuild@x86-040.build.eng.bos.redhat.com](mailto:mockbuild@x86-040.build.eng.bos.redhat.com)) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Sep 21 09:07:21 UTC 2018

Java now on the logstash server is:  
[root@logstashhost logstash]# java -version  
java version "1.8.0\_181"  
Java(TM) SE Runtime Environment (build 1.8.0\_181-b13)  
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Before upgrade, it was:  
Java version "1.8.0\_172"  
Java(TM) SE Runtime Environment (build 1.8.0\_172-b11)  
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

Again, nothing changed on the logstash.yml and all the pipeline.conf file....

Filebeat still sends data from remote servers to logstash then to elasticsearch, I can see the beats data comes in on kibana almost realtime, but the s3 input plugins (the s3 pipelines) stopped working.

Could you please please take a look and let us know how to fix this?

Thank you in advance

Li

---

<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: [October 30, 2018, 9:37pm UTC](https://discuss.elastic.co/t/logstash-java-related-errors/154523/2 "2018-10-30T21:37:40Z")

</div>

What does your Logstash log show?

---

<div class="post-metadata">

### Author: ![lcui\_dxc](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@lcui\_dxc](https://discuss.elastic.co/u/lcui_dxc)
#### Post date: [October 30, 2018, 10:26pm UTC](https://discuss.elastic.co/t/logstash-java-related-errors/154523/3 "2018-10-30T22:26:02Z")

</div>

The Logstash log showed the same... kept start/stop..

I restored the AWS instance back to before java upgrade.... now it works, but we need to upgrade Java...  
Question is: the java version is almost the same, if we upgrade ELK from 6.3.2 to 6.4.1. Will it be able to handle java version "1.8.0\_181"?

Thanks

Li

---

<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: [October 30, 2018, 10:27pm UTC](https://discuss.elastic.co/t/logstash-java-related-errors/154523/4 "2018-10-30T22:27:05Z")

</div>

Yes.

---

<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: [November 28, 2018, 12:27am UTC](https://discuss.elastic.co/t/logstash-java-related-errors/154523/5 "2018-11-28T00:27:09Z")

</div>

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