# Add time taken to serve request in Apache2 module

**URL:** <https://discuss.elastic.co/t/add-time-taken-to-serve-request-in-apache2-module/167511>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 7, 2019, 7:01pm UTC](https://discuss.elastic.co/t/add-time-taken-to-serve-request-in-apache2-module/167511 "2019-02-07T19:01:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiltonms](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wiltonms/32/40694_2.png) [@wiltonms](https://discuss.elastic.co/u/wiltonms)\
**Post date:** [February 7, 2019, 7:01pm UTC](https://discuss.elastic.co/t/add-time-taken-to-serve-request-in-apache2-module/167511/1 "2019-02-07T19:01:48Z")

</div>

Hi guys,

I'm trying to find a way to add a custom log format in the filebeat apache2 module.

My apache logs have the time taken to serve the request, which is important for me to know.

> Def. \> `%D` The time taken to serve the request, in microseconds.

> LogFormat "%h %l %u %t "%r" %\>s %b %D "%{Referer}i" "%{User-Agent}i"" combined

I checked the filebeat templat and has no room to fit this data, I'm wondering how and what's the best way to achieve this task.

Any help is appreciated!

---

<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:** [March 7, 2019, 7:01pm UTC](https://discuss.elastic.co/t/add-time-taken-to-serve-request-in-apache2-module/167511/2 "2019-03-07T19:01:59Z")

</div>

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