# Apache Log with Tail Plugin and Grok Format

**URL:** <https://community.influxdata.com/t/apache-log-with-tail-plugin-and-grok-format/22528>\
**Category:** Telegraf\
**Tags:** telegraf, grok\
**Created:** [November 15, 2021, 10:15am UTC](https://community.influxdata.com/t/apache-log-with-tail-plugin-and-grok-format/22528 "2021-11-15T10:15:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Black\_file](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@Black\_file](https://community.influxdata.com/u/Black_file)\
**Post date:** [November 15, 2021, 10:15am UTC](https://community.influxdata.com/t/apache-log-with-tail-plugin-and-grok-format/22528/1 "2021-11-15T10:15:40Z")

</div>

Hello,  
I have a project where I would like to get the latency per page, the number of exceptions and the web traffic. I’ve been stuck on this for 2 weeks already, I installed telegraf on the Apache machine with the Tail plugin and I also modified my apache.conf to add %D to the LogFormat but I’m at the point where I have absolutely no idea how to get this value, the documentation on Grok is horrible and incomprehensible.

Thanks

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [November 15, 2021, 10:50am UTC](https://community.influxdata.com/t/apache-log-with-tail-plugin-and-grok-format/22528/2 "2021-11-15T10:50:43Z")

</div>

There is already a plugin for Apache Server, maybe that already meets your requirements:

> **[Plugin directory | Telegraf 1.24 Documentation](https://docs.influxdata.com/telegraf/v1.20/plugins/#apache)**
>
> Telegraf is a plugin-driven agent that collects, processes, aggregates, and writes metrics. It supports four categories of plugins including input, output, aggregator, and processor. View and search all available Telegraf plugins.

* * *

If not, we need some sample lines from your Apache log and the section from telegraf.conf with the Tail plugin, which you already tried.

---

<div class="post-metadata">

**Author:** ![Black\_file](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@Black\_file](https://community.influxdata.com/u/Black_file)\
**Post date:** [November 16, 2021, 11:22am UTC](https://community.influxdata.com/t/apache-log-with-tail-plugin-and-grok-format/22528/3 "2021-11-16T11:22:45Z")

</div>

Hi,  
I solved the problem for the logs and latency yesterday but I would like to be able to retrieve the application errors in the error.log file and is it possible with the Tail plugin to count the number of errors?

Thanks
