# Unable to dissect logs based on a string pattern

**URL:** <https://discuss.elastic.co/t/unable-to-dissect-logs-based-on-a-string-pattern/96120>\
**Category:** Logstash\
**Created:** [August 7, 2017, 2:01pm UTC](https://discuss.elastic.co/t/unable-to-dissect-logs-based-on-a-string-pattern/96120 "2017-08-07T14:01:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prydeep](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@prydeep](https://discuss.elastic.co/u/prydeep)\
**Post date:** [August 7, 2017, 2:01pm UTC](https://discuss.elastic.co/t/unable-to-dissect-logs-based-on-a-string-pattern/96120/1 "2017-08-07T14:01:41Z")

</div>

Hello,

this is the filter I am using

filter {  
if (([message] =~ /Interface/)) {  
dissect {  
mapping =\> { "message" =\> "%{syslog\_timestamp} %{+syslog\_timestamp},%{} %{} %{device\_type} %{hostname}-%{h1}/%{} %{kernel\_logs}" }  
}  
}  
}

---

<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:** [September 4, 2017, 2:01pm UTC](https://discuss.elastic.co/t/unable-to-dissect-logs-based-on-a-string-pattern/96120/2 "2017-09-04T14:01:44Z")

</div>

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