# Standard IIS grok templates can't parse

**URL:** <https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963>\
**Category:** Beats\
**Tags:** beats-module\
**Created:** [July 29, 2021, 10:15am UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963 "2021-07-29T10:15:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmalchikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmalchikov/32/72921_2.png) [@dmalchikov](https://discuss.elastic.co/u/dmalchikov)\
**Post date:** [July 29, 2021, 10:15am UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963/1 "2021-07-29T10:15:44Z")

</div>

Hi! Can't find a reason... ANy idea?  
I have errors Provided Grok expressions do not match field value. But it pass if I copy template and data to [grokconstructor.appspot.com](http://grokconstructor.appspot.com)  
Standard module IIS template in use (7.13.3)  
IIS log and peace of data:  
#Software: Microsoft Internet Information Services 10.0  
#Version: 1.0  
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken  
**2021-07-29 10:05:25 10.0.1.111 GET /api/v5/cryptoprofiles - 80 - 10.0.1.129 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/92.0.4515.107+Safari/537.36 [https://platform.xxxxx.xxx/](https://platform.xxxxx.xxx/) 200 0 0 80**

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [August 2, 2021, 11:21am UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963/2 "2021-08-02T11:21:41Z")

</div>

Could you please format your post, so we can see what is the exact content here you're trying to parse?

---

<div class="post-metadata">

**Author:** ![dmalchikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmalchikov/32/72921_2.png) [@dmalchikov](https://discuss.elastic.co/u/dmalchikov)\
**Post date:** [August 2, 2021, 11:58am UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963/3 "2021-08-02T11:58:51Z")

</div>

> [@dmalchikov](#):
>
> IIS log and peace of data:  
> #Software: Microsoft Internet Information Services 10.0  
> #Version: 1.0  
> #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken  
> **2021-07-29 10:05:25 10.0.1.111 GET /api/v5/cryptoprofiles - 80 - 10.0.1.129 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/92.0.4515.107+Safari/537.36 [https://platform.xxxxx.xxx/](https://platform.xxxxx.xxx/) 200 0 0 80**

Sorry..  
Log data:

```auto
#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2021-07-29 10:05:25 10.0.1.111 GET /api/v5/cryptoprofiles - 80 - 10.0.1.129 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/92.0.4515.107+Safari/537.36 https://platform.xxxxx.xxx/ 200 0 0 80

```

It's pass in ELK Grok Debugger with copied from filebeat-7.13.3-iis-access-pipeline pattern:

```auto
%{TIMESTAMP_ISO8601:iis.access.time} (?:-|%{IPORHOST:destination.address}) (?:-|%{WORD:http.request.method}) (?:-|%{NOTSPACE:url.path}) (?:-|%{NOTSPACE:url.query}) (?:-|%{NUMBER:destination.port:long}) (?:-|%{NOTSPACE:user.name}) (?:-|%{IPORHOST:source.address}) (?:-|%{NOTSPACE:user_agent.original}) (?:-|%{NOTSPACE:http.request.referrer}) (?:-|%{NUMBER:http.response.status_code:long}) (?:-|%{NUMBER:iis.access.sub_status:long}) (?:-|%{NUMBER:iis.access.win32_status:long}) (?:-|%{NUMBER:temp.duration:long})

```

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [August 2, 2021, 12:45pm UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963/4 "2021-08-02T12:45:06Z")

</div>

Can u post the errors you're getting?

---

<div class="post-metadata">

**Author:** ![dmalchikov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmalchikov/32/72921_2.png) [@dmalchikov](https://discuss.elastic.co/u/dmalchikov)\
**Post date:** [August 2, 2021, 1:04pm UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963/5 "2021-08-02T13:04:19Z")

</div>

as example. error.message:

````auto
Provided Grok expressions do not match field value: [2021-08-02 13:01:04 10.0.1.110 GET /api/news/neighbours/00200 - 80 - 10.0.1.129 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/605.1.15+(KHTML,+like+Gecko)+Version/14.1.1+Safari/605.1.15 https://xxxx.xxx/ 200 0 0 38]```
````

---

<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:** [August 30, 2021, 3:04pm UTC](https://discuss.elastic.co/t/standard-iis-grok-templates-cant-parse/279963/6 "2021-08-30T15:04:38Z")

</div>

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