# Grok parse not work

**URL:** <https://discuss.elastic.co/t/grok-parse-not-work/205029>\
**Category:** Logstash\
**Created:** [October 24, 2019, 9:22am UTC](https://discuss.elastic.co/t/grok-parse-not-work/205029 "2019-10-24T09:22:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)\
**Post date:** [October 24, 2019, 9:22am UTC](https://discuss.elastic.co/t/grok-parse-not-work/205029/1 "2019-10-24T09:22:40Z")

</div>

Hello to everyone, I have a problem with grok parsing.  
trying to parse fiend log.file.path, I want to put out domain name for example:  
I Have path /var/www/httpd-logs/mydomain.net.access.log  
I'm using %{GREEDYDATA}/%{GREEDYDATA:domain}.access.log,  
In Grok debbug it is work but when starting logstash and look on elasticsearch, it is not working.  
please help resolve this problem.

 ![2019-10-24_c6ca38](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6bdd8b7a5fb941aa30921f5000469e7f253a1a7d.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 24, 2019, 1:02pm UTC](https://discuss.elastic.co/t/grok-parse-not-work/205029/2 "2019-10-24T13:02:05Z")

</div>

In logstash you refer to a path field inside a file object inside a log object using [log][file][path], not log.file.path.

---

<div class="post-metadata">

**Author:** ![111228](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111228/32/56505_2.png) [@111228](https://discuss.elastic.co/u/111228)\
**Post date:** [October 24, 2019, 1:16pm UTC](https://discuss.elastic.co/t/grok-parse-not-work/205029/3 "2019-10-24T13:16:55Z")

</div>

> [@Badger](#):
>
> [log][file][path]

thank you it's work

---

<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:** [November 21, 2019, 1:16pm UTC](https://discuss.elastic.co/t/grok-parse-not-work/205029/4 "2019-11-21T13:16:58Z")

</div>

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