# Unable to get filename pattern from log.file.path value

**URL:** https://discuss.elastic.co/t/unable-to-get-filename-pattern-from-log-file-path-value/204541
**Category:** Logstash
**Created:** [October 21, 2019, 7:19pm UTC](https://discuss.elastic.co/t/unable-to-get-filename-pattern-from-log-file-path-value/204541 "2019-10-21T19:19:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![durgaram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/durgaram/32/56392_2.png) [@durgaram](https://discuss.elastic.co/u/durgaram)
#### Post date: [October 21, 2019, 7:19pm UTC](https://discuss.elastic.co/t/unable-to-get-filename-pattern-from-log-file-path-value/204541/1 "2019-10-21T19:19:50Z")

</div>

Hi  
The following pattern in logstash conf not extracting the logappname value.

grok {  
match =\> { "log.file.path" =\> "%{GREEDYDATA:logappname}"}  
}

filebeat value is "log.file.path: C:\Data\Logs\Test\_1.log"

---

<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 21, 2019, 7:45pm UTC](https://discuss.elastic.co/t/unable-to-get-filename-pattern-from-log-file-path-value/204541/2 "2019-10-21T19:45:31Z")

</div>

Most likely that should be [log][file][path] rather than log.file.path (logstash does not use the same syntax for nested fields that kibana uses).

---

<div class="post-metadata">

### Author: ![durgaram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/durgaram/32/56392_2.png) [@durgaram](https://discuss.elastic.co/u/durgaram)
#### Post date: [October 22, 2019, 9:42am UTC](https://discuss.elastic.co/t/unable-to-get-filename-pattern-from-log-file-path-value/204541/3 "2019-10-22T09:42:40Z")

</div>

Thanks Lot. It's working fine!

---

<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 19, 2019, 9:42am UTC](https://discuss.elastic.co/t/unable-to-get-filename-pattern-from-log-file-path-value/204541/4 "2019-11-19T09:42:40Z")

</div>

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