How to collect nginx request duration using filebeat

Goal:
I would like to collect request duration 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 ?

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

GET _ingest/pipeline/*nginx*

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