# Is Logstash 5.5 compatible with Java 1.7?

**URL:** <https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198>\
**Category:** Logstash\
**Created:** [September 2, 2017, 5:59pm UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198 "2017-09-02T17:59:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajesh](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Post date:** [September 2, 2017, 5:59pm UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/1 "2017-09-02T17:59:57Z")

</div>

Hi,

I am trying to install Logstash 5.5 on a Linux machine which has Java 1.7. I have gone through some documentation and it says Logstash 5.5 is compatible with Java 1.7. Some say it's not compatible. Can someone please provide me clear idea on this?

Thank you..

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 2, 2017, 8:11pm UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/2 "2017-09-02T20:11:28Z")

</div>

According to [https://www.elastic.co/support/matrix#matrix\_jvm](https://www.elastic.co/support/matrix#matrix_jvm) and [https://www.elastic.co/guide/en/logstash/5.5/installing-logstash.html](https://www.elastic.co/guide/en/logstash/5.5/installing-logstash.html) you need Java 8.

---

<div class="post-metadata">

**Author:** ![rajesh](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Post date:** [September 2, 2017, 9:44pm UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/3 "2017-09-02T21:44:38Z")

</div>

Thanks Magnus 🙂

---

<div class="post-metadata">

**Author:** ![rajesh](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Post date:** [September 4, 2017, 3:45am UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/4 "2017-09-04T03:45:05Z")

</div>

I will go with Logstash 2.x and Java 7. And Logstash 2.x would need to send data to Logstash 5.x through http plugin. Will there be any issues if I use two different Logstash versions on two different machines?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 4, 2017, 5:24am UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/5 "2017-09-04T05:24:25Z")

</div>

> I will go with Logstash 2.x and Java 7.

Java 7 was deprecated and end-of-lined a long time ago. It's time to upgrade.

> And Logstash 2.x would need to send data to Logstash 5.x through http plugin

You could do that, but I suggest you use the lumberjack plugins instead. They should give better performance and decreased risk of data loss.

> Will there be any issues if I use two different Logstash versions on two different machines?

No, that should be fine.

---

<div class="post-metadata">

**Author:** ![rajesh](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Post date:** [September 4, 2017, 4:07pm UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/6 "2017-09-04T16:07:02Z")

</div>

Hi Magnus,

There are some other applications which run smooth with Java 1.7 and that's the reason I can't upgrade it to Java 1.8.  
In future I will be using Kafka as a messaging queue thus removing HTTP plugin. So it will be an extra effort for me to install and configure Lumberjack. But very often I am getting the following error while using HTTP plugin,

```
ERROR logstash.outputs.http - [HTTP Output Failure] Could not fetch URL {:url=>"http://xxx.xx.xx:xxx"
name=memoryStats.numBytesAllocated origin=p-redis unit=count value=671040 \",\"type\":\"syslog\",\"tags\":[\"_grokparsefailure\"]}", :headers=>{"Content-Type"=>"application/json"}, :message=>"Read timed out", :class=>"Manticore::SocketTimeout", :backtrace=>nil, :will_retry=>true}
14:53:13.875 [pool-684-thread-1] INFO logstash.outputs.http - Retrying http request, will sleep for 0 seconds
```

---

<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:** [October 2, 2017, 4:07pm UTC](https://discuss.elastic.co/t/is-logstash-5-5-compatible-with-java-1-7/99198/7 "2017-10-02T16:07:32Z")

</div>

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