# Customizing user agent ingestion

**URL:** <https://discuss.elastic.co/t/customizing-user-agent-ingestion/85860>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 16, 2017, 6:13am UTC](https://discuss.elastic.co/t/customizing-user-agent-ingestion/85860 "2017-05-16T06:13:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cubicme](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@cubicme](https://discuss.elastic.co/u/cubicme)\
**Post date:** [May 16, 2017, 6:13am UTC](https://discuss.elastic.co/t/customizing-user-agent-ingestion/85860/1 "2017-05-16T06:13:27Z")

</div>

Hi,  
is there a way to use a custom regex for nginx user-agent plugin? I tried this with a different pipeline and it works, but when i do this in filebeat json file:  
{  
"user\_agent": {  
"field": "nginx.access.agent",  
"target\_field": "nginx.access.user\_agent",  
"regex\_file": "regexes-custom.yaml"  
}  
it has no effect.

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [May 16, 2017, 11:08am UTC](https://discuss.elastic.co/t/customizing-user-agent-ingestion/85860/2 "2017-05-16T11:08:32Z")

</div>

Just to make sure, you are using the Filebeat nginx module, right? Did you edit the `module/nginx/access/ingest/default.json` from the Filebeat distribution?

Note that you might have to delete the old pipeline. In the Kibana Console you can do something like: `DELETE _ingest/pipeline/filebeat-*-nginx*`

---

<div class="post-metadata">

**Author:** ![cubicme](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@cubicme](https://discuss.elastic.co/u/cubicme)\
**Post date:** [May 16, 2017, 1:29pm UTC](https://discuss.elastic.co/t/customizing-user-agent-ingestion/85860/3 "2017-05-16T13:29:56Z")

</div>

well it's a modified one, i copied nginx module from the repository and  
changed it.  
yeah i tried clearing pipelines, and my config is there. Elastic will even  
complain if my regex file isn't there but it's still not using the new  
patterns from the file

---

<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:** [June 13, 2017, 1:30pm UTC](https://discuss.elastic.co/t/customizing-user-agent-ingestion/85860/4 "2017-06-13T13:30:55Z")

</div>

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