# Send logs from log4j2 on cloudhub to logstash on remote redhat linux machine

**URL:** <https://discuss.elastic.co/t/send-logs-from-log4j2-on-cloudhub-to-logstash-on-remote-redhat-linux-machine/140507>\
**Category:** Logstash\
**Created:** [July 18, 2018, 10:05am UTC](https://discuss.elastic.co/t/send-logs-from-log4j2-on-cloudhub-to-logstash-on-remote-redhat-linux-machine/140507 "2018-07-18T10:05:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.vankayala](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kaushik.vankayala](https://discuss.elastic.co/u/kaushik.vankayala)\
**Post date:** [July 18, 2018, 10:05am UTC](https://discuss.elastic.co/t/send-logs-from-log4j2-on-cloudhub-to-logstash-on-remote-redhat-linux-machine/140507/1 "2018-07-18T10:05:52Z")

</div>

Hi There,

I am a newbie to ELK stack. As my topic's title crisply says i need to send the logs of an application running on cloudhub to a remote redhat linux machine where my logstash is running (_the filter configured for the custom log format_) - **is there a working mechanism that anyone can suggest?**

I am trying to setup the logstash pipeline with the input as log4j. But i see that on that respective plugin page it is **deprecated** and asking to migrate to filebeat.

My first question is - Is the log4j2 also not supported!? And if at all supported do we use the same plugin?

I have seen some links which says to use tcp, but i have never got a concrete example.

_Lastly a mere question - Is there a possibility of running logstash on cloud?_

I have an urgent requirement to implement this use-case. Any advise is highly appreciated! Please help as possible! 😅

Regards  
Kaushik Vankayala

---

<div class="post-metadata">

**Author:** ![kaushik.vankayala](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@kaushik.vankayala](https://discuss.elastic.co/u/kaushik.vankayala)\
**Post date:** [July 29, 2018, 7:04am UTC](https://discuss.elastic.co/t/send-logs-from-log4j2-on-cloudhub-to-logstash-on-remote-redhat-linux-machine/140507/2 "2018-07-29T07:04:57Z")

</div>

I have alternatively achieved another way to stream the logs using a tcp input plugin. But i am still unable to implement SSL security over the communication. Will update if i find one best way.

---

<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:** [August 26, 2018, 7:04am UTC](https://discuss.elastic.co/t/send-logs-from-log4j2-on-cloudhub-to-logstash-on-remote-redhat-linux-machine/140507/3 "2018-08-26T07:04:57Z")

</div>

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