# Rsyslog and syslog-ng direct logging to Elasticsearch, viable replacement for elastic-agent?

**URL:** <https://discuss.elastic.co/t/rsyslog-and-syslog-ng-direct-logging-to-elasticsearch-viable-replacement-for-elastic-agent/341390>\
**Category:** Logs\
**Created:** [August 22, 2023, 3:10pm UTC](https://discuss.elastic.co/t/rsyslog-and-syslog-ng-direct-logging-to-elasticsearch-viable-replacement-for-elastic-agent/341390 "2023-08-22T15:10:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 22, 2023, 3:55pm UTC](https://discuss.elastic.co/t/rsyslog-and-syslog-ng-direct-logging-to-elasticsearch-viable-replacement-for-elastic-agent/341390/2 "2023-08-22T15:55:27Z")

</div>

> [@Craig\_Rodrigues](#):
>
> How viable are rsyslog and syslog-ng for sending directly to Elasticsearch?

It depends on your use case and what you want to do with your logs.

> [@Craig\_Rodrigues](#):
>
> Is these solutions viable replacements for elastic-agent?

No, they are not, Elastic Agent is not just a log collector, please read this [answer](https://discuss.elastic.co/t/using-datadogs-vector-to-ship-logs-to-elasticsearch-instead-of-elastic-agent/341388/2) on your other topic for more information.

You can use rsyslog/syslog-ng to send data to Elasticsearch, but you will need to create some ingest pipeline to parse your message, than you will need to create dashboards and alerts for your data.

Elastic Agent integrations already do that for you.

---

_[View the full topic](https://discuss.elastic.co/t/rsyslog-and-syslog-ng-direct-logging-to-elasticsearch-viable-replacement-for-elastic-agent/341390)._
