# How to wirte pipiline.yaml file for filebeat nginx module for access log?

**URL:** <https://discuss.elastic.co/t/how-to-wirte-pipiline-yaml-file-for-filebeat-nginx-module-for-access-log/231326>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 6, 2020, 11:00am UTC](https://discuss.elastic.co/t/how-to-wirte-pipiline-yaml-file-for-filebeat-nginx-module-for-access-log/231326 "2020-05-06T11:00:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shreeram\_Silwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreeram_silwal/32/49309_2.png) [@Shreeram\_Silwal](https://discuss.elastic.co/u/Shreeram_Silwal)\
**Post date:** [May 6, 2020, 11:00am UTC](https://discuss.elastic.co/t/how-to-wirte-pipiline-yaml-file-for-filebeat-nginx-module-for-access-log/231326/1 "2020-05-06T11:00:48Z")

</div>

i have a custom log format and generated a grok pattern for that which looks like:

`120.89.102.147 - - [05/May/2020:06:35:58 +0000] "GET /api/licensing/info HTTP/1.1" 200 343 "https://kibana-qa.unation.com/app/kibana" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" "-" 0.016 172.19.9.224:5601 200 0.016 0.000 0.016 f4453f8fc024aacb17351d6a2b74c7e7`

`%{IPORHOST:remote_addr} - %{DATA:ident} \[%{HTTPDATE:time_local}\] \"%{WORD:http_method} %{DATA:url} HTTP/%{NUMBER:http_version}\" %{NUMBER:response_code} %{NUMBER:body_sent_bytes} \"%{DATA:referrer}\" \"%{DATA:agent}\" %{DATA:xforwardedfor} %{NUMBER:request_time} %{IP:upstream_addr}:%{POSINT:port} %{NUMBER:upstream_status} %{NUMBER:upstream_response_time} %{NUMBER:upstream_connect_time} %{NUMBER:upstream_header_time} %{BASE16NUM:request_id}`

`{ "remote_addr": [[ "120.89.102.147"] ], "ident": [[ "-"] ], "time_local": [[ "05/May/2020:06:35:58 +0000"] ], "http_method": [[ "GET"] ], "url": [[ "/api/licensing/info"] ], "http_version": [[ "1.1"] ], "response_code": [[ "200"] ], "body_sent_bytes": [[ "343"] ], "referrer": [[ "https://kibana-qa.unation.com/app/kibana"] ], "agent": [[ "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0"] ], "xforwardedfor": [[ " "-""] ], "request_time": [[ "0.016"] ], "upstream_addr": [[ "172.19.9.224"] ], "port": [[ "5601"] ], "upstream_status": [[ "200"] ], "upstream_response_time": [[ "0.016"] ], "upstream_connect_time": [[ "0.000"] ], "upstream_header_time": [[ "0.016"] ], "request_id": [[ "f4453f8fc024aacb17351d6a2b74c7e7"] ] }`

how to write the default.json file for nginx access which will be ingested to elasticsearch?

---

<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 3, 2020, 11:00am UTC](https://discuss.elastic.co/t/how-to-wirte-pipiline-yaml-file-for-filebeat-nginx-module-for-access-log/231326/2 "2020-06-03T11:00:49Z")

</div>

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