# Apache logs

**URL:** <https://discuss.elastic.co/t/apache-logs/155830>\
**Category:** Elastic Community and Ecosystem\
**Created:** [November 8, 2018, 7:35am UTC](https://discuss.elastic.co/t/apache-logs/155830 "2018-11-08T07:35:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed.samir](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mohamed.samir](https://discuss.elastic.co/u/mohamed.samir)\
**Post date:** [November 8, 2018, 7:35am UTC](https://discuss.elastic.co/t/apache-logs/155830/1 "2018-11-08T07:35:34Z")

</div>

dears, is there any useful help link, to send apache logs to kibana server (automatically in real-time)  
or how to configure the apache server?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 8, 2018, 7:42am UTC](https://discuss.elastic.co/t/apache-logs/155830/2 "2018-11-08T07:42:21Z")

</div>

Easiest way is to [install Filebeat](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html) on your web servers and enable the [Apache Module](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-apache2.html) and then let its send data directly to Elasticsearch so you can view it through Kibana.

---

<div class="post-metadata">

**Author:** ![mohamed.samir](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mohamed.samir](https://discuss.elastic.co/u/mohamed.samir)\
**Post date:** [November 8, 2018, 8:56am UTC](https://discuss.elastic.co/t/apache-logs/155830/3 "2018-11-08T08:56:12Z")

</div>

thanks chris,  
please, is there any direct configuration on the apache without the need to install any other tools.  
and if i used filbeat, will it send the logs to kibana server and leave a copy on server, or will it be deleted from server

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 8, 2018, 9:07am UTC](https://discuss.elastic.co/t/apache-logs/155830/4 "2018-11-08T09:07:50Z")

</div>

There is no direct configuration option on Apache, so installing Filebeat is the way to go. It will tail logs, but not delete them from the host.

---

<div class="post-metadata">

**Author:** ![mohamed.samir](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mohamed.samir](https://discuss.elastic.co/u/mohamed.samir)\
**Post date:** [December 4, 2018, 12:21pm UTC](https://discuss.elastic.co/t/apache-logs/155830/5 "2018-12-04T12:21:48Z")

</div>

hello chris,  
i have installed filebeat on the web server  
and adjusted filebeat.yml to external kibana server as follow;

output.logstash:  
hosts: ["192.168.10.10:5044"]

and adjusted apache2.yml as follow;

access:  
enabled: true  
var.paths: ["/var/log/apache2/access.log"]  
error:  
enabled: true  
var.paths: ["/var/log/apache2/error.log"]

however, it is not working, i didn't receive any logs to my kibana 192.168.10.10  
kindly advise;

---

<div class="post-metadata">

**Author:** ![mohamed.samir](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mohamed.samir](https://discuss.elastic.co/u/mohamed.samir)\
**Post date:** [December 6, 2018, 8:26am UTC](https://discuss.elastic.co/t/apache-logs/155830/6 "2018-12-06T08:26:37Z")

</div>

hello chris,  
it works fine, sorry there was a problem with my elastic configuration.  
please, is there any way to do same task with IIS server?

---

<div class="post-metadata">

**Author:** ![abrx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrx/32/43881_2.png) [@abrx](https://discuss.elastic.co/u/abrx)\
**Post date:** [December 6, 2018, 9:15am UTC](https://discuss.elastic.co/t/apache-logs/155830/7 "2018-12-06T09:15:39Z")

</div>

Hello,  
You should give a look to [Filebeat available modules](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-modules.html) described in the docs, which includes IIS.

---

<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:** [November 4, 2022, 6:42am UTC](https://discuss.elastic.co/t/apache-logs/155830/8 "2022-11-04T06:42:44Z")

</div>


