# How to collect nginx request duration using filebeat

**URL:** https://discuss.elastic.co/t/how-to-collect-nginx-request-duration-using-filebeat/201684
**Category:** Beats
**Tags:** filebeat
**Created:** [September 30, 2019, 5:05pm UTC](https://discuss.elastic.co/t/how-to-collect-nginx-request-duration-using-filebeat/201684 "2019-09-30T17:05:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![p.anas](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@p.anas](https://discuss.elastic.co/u/p.anas)
#### Post date: [September 30, 2019, 5:05pm UTC](https://discuss.elastic.co/t/how-to-collect-nginx-request-duration-using-filebeat/201684/1 "2019-09-30T17:05:31Z")

</div>

Goal:  
I would like to collect [request duration](https://lincolnloop.com/blog/tracking-application-response-time-nginx/) using filebeat (with version 6.8.1). The existing **nginx** module does not support it.

I have seen that existing **nginx** module is using **ingest pipeline** to parse the essential information. I am not sure how can I extend/modify existing pipeline such that it will work out of the box. Is there any efficient way of doing it ?

---

<div class="post-metadata">

### Author: ![juka](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@juka](https://discuss.elastic.co/u/juka)
#### Post date: [October 11, 2019, 9:39am UTC](https://discuss.elastic.co/t/how-to-collect-nginx-request-duration-using-filebeat/201684/2 "2019-10-11T09:39:07Z")

</div>

Hey,

you might be able to adjust the ingest pipeline patterns which can be found here:  
/usr/share/filebeat/module/nginx/access/ingest/default.json  
/usr/share/filebeat/module/nginx/error/ingest/pipeline.json

Reload the filebeat service.

You could set up or modify the existing pipelines in Elasticsearch.  
[https://www.elastic.co/guide/en/beats/filebeat/7.3/configuring-ingest-node.html](https://www.elastic.co/guide/en/beats/filebeat/7.3/configuring-ingest-node.html)

`GET _ingest/pipeline/*nginx*`

Edit them as necessary and referr to these pipelines in your filebeat config

---

<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 8, 2019, 9:39am UTC](https://discuss.elastic.co/t/how-to-collect-nginx-request-duration-using-filebeat/201684/3 "2019-11-08T09:39:07Z")

</div>

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