# What is this log nginx grok pattern

**URL:** <https://discuss.elastic.co/t/what-is-this-log-nginx-grok-pattern/108560>\
**Category:** Logstash\
**Created:** [November 21, 2017, 12:34pm UTC](https://discuss.elastic.co/t/what-is-this-log-nginx-grok-pattern/108560 "2017-11-21T12:34:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omid/32/33595_2.png) [@omid](https://discuss.elastic.co/u/omid)\
**Post date:** [November 21, 2017, 12:34pm UTC](https://discuss.elastic.co/t/what-is-this-log-nginx-grok-pattern/108560/1 "2017-11-21T12:34:41Z")

</div>

Hi  
what is this log nginx grok pattern !?

100.100.100.100 - - [21/Nov/2017:11:04:13 +0330] "GET /bookmarklet.js?1511247 HTTP/1.0" 200 16077 "[http://mywebsite.ir/video/3911/خانه](http://mywebsite.ir/video/3911/%D8%AE%D8%A7%D9%86%D9%87)" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36" length 1263 rtime 0.059 uri /index.php realip 10.11.12.13

log\_format main '$remote\_addr - $remote\_user [$time\_local] '  
'"$request" $status $body\_bytes\_sent "$http\_referer" '  
'"$http\_user\_agent" length $request\_length rtime $request\_time uri $uri'  
' realip $http\_x\_real\_ip';

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 21, 2017, 2:31pm UTC](https://discuss.elastic.co/t/what-is-this-log-nginx-grok-pattern/108560/2 "2017-11-21T14:31:51Z")

</div>

I recommend not using grok, if you can control that `log_format`. Use pipe delimiters or something else not found in a URL, and then use the [dissect filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-dissect.html) instead.

---

<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:** [December 19, 2017, 2:31pm UTC](https://discuss.elastic.co/t/what-is-this-log-nginx-grok-pattern/108560/3 "2017-12-19T14:31:58Z")

</div>

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