# Apply grok pattern based on the log file path

**URL:** <https://discuss.elastic.co/t/apply-grok-pattern-based-on-the-log-file-path/334395>\
**Category:** Logstash\
**Created:** [May 26, 2023, 6:10am UTC](https://discuss.elastic.co/t/apply-grok-pattern-based-on-the-log-file-path/334395 "2023-05-26T06:10:46Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Anton\_H](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anton_h/32/10200_2.png) [@Anton\_H](https://discuss.elastic.co/u/Anton_H)\
**Post date:** [May 31, 2023, 7:59am UTC](https://discuss.elastic.co/t/apply-grok-pattern-based-on-the-log-file-path/334395/14 "2023-05-31T07:59:48Z")

</div>

@Neelam_Zanvar I think this is the same issue we are discussing in your [Kibana visualisation-](https://discuss.elastic.co/t/kibana-visualisation/333176) question.  
I will try to answer your questions but am lacking time at the moment. Could you please answer the question in regards to the version of Elastic you are using?

---

_[View the full topic](https://discuss.elastic.co/t/apply-grok-pattern-based-on-the-log-file-path/334395)._
