# Sending Log4j logs(in XML format) to Elasticsearch using Filebeat

**URL:** <https://discuss.elastic.co/t/sending-log4j-logs-in-xml-format-to-elasticsearch-using-filebeat/214199>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 8, 2020, 9:38am UTC](https://discuss.elastic.co/t/sending-log4j-logs-in-xml-format-to-elasticsearch-using-filebeat/214199 "2020-01-08T09:38:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JY\_DT](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@JY\_DT](https://discuss.elastic.co/u/JY_DT)\
**Post date:** [January 8, 2020, 9:38am UTC](https://discuss.elastic.co/t/sending-log4j-logs-in-xml-format-to-elasticsearch-using-filebeat/214199/1 "2020-01-08T09:38:33Z")

</div>

Hello,

I need to send log files generated using Log4j on client machines to Elasticsearch installed on a server. I'm using Filebeat, but not Logstash.

Is there any other plugin, etc required, or can it just be done using Filebeat itself?

Thanks,  
Jy

---

<div class="post-metadata">

**Author:** ![JY\_DT](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@JY\_DT](https://discuss.elastic.co/u/JY_DT)\
**Post date:** [January 8, 2020, 11:15am UTC](https://discuss.elastic.co/t/sending-log4j-logs-in-xml-format-to-elasticsearch-using-filebeat/214199/2 "2020-01-08T11:15:29Z")

</div>

As mentioned here:

[https://www.elastic.co/guide/en/logstash/current/plugins-inputs-log4j.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-log4j.html)

"This plugin is deprecated. It is recommended that you use filebeat to collect logs from log4j."

So, how do we collect logs from log4j using Filebeat?

Thanks.

---

<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:** [February 5, 2020, 11:15am UTC](https://discuss.elastic.co/t/sending-log4j-logs-in-xml-format-to-elasticsearch-using-filebeat/214199/3 "2020-02-05T11:15:31Z")

</div>

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