# Apache web server logs - best practice?

**URL:** <https://discuss.elastic.co/t/apache-web-server-logs-best-practice/175887>\
**Category:** Logstash\
**Created:** [April 8, 2019, 4:28pm UTC](https://discuss.elastic.co/t/apache-web-server-logs-best-practice/175887 "2019-04-08T16:28:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krypto\_1919](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krypto_1919/32/43684_2.png) [@Krypto\_1919](https://discuss.elastic.co/u/Krypto_1919)\
**Post date:** [April 8, 2019, 4:28pm UTC](https://discuss.elastic.co/t/apache-web-server-logs-best-practice/175887/1 "2019-04-08T16:28:05Z")

</div>

Hi,

I'm trying to send my Apache access & error logs to Logstash, and found the various resources a bit confusing as it's all a bit new to me; I'd appreciate some clarifications:

1. Is there a way to use Syslog input plugin directly from Apache (i.e. without a syslog server in between)? If so, how do I configure Apache to send the logs to the TCP/UDP ports opened by Logstash?

2. Is syslog even the best option in this case? I want to use containers, so I was wondering if using file input (or any other input plugin) might be better? We need to use Grok, if it makes a difference.

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:** [May 6, 2019, 4:28pm UTC](https://discuss.elastic.co/t/apache-web-server-logs-best-practice/175887/2 "2019-05-06T16:28:09Z")

</div>

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