# Log Analytics pattern matching rules containing '='

**URL:** <https://community.dynatrace.com/t/log-analytics-pattern-matching-rules-containing/10972>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [February 22, 2018, 8:54am UTC](https://community.dynatrace.com/t/log-analytics-pattern-matching-rules-containing/10972 "2018-02-22T08:54:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [February 22, 2018, 8:54am UTC](https://community.dynatrace.com/t/log-analytics-pattern-matching-rules-containing/10972/1 "2018-02-22T08:54:24Z")

</div>

The ‘advanced query language’ or Dynatrace Query Language is very weak it seems:

[https://www.dynatrace.com/support/help/infrastruct…](https://www.dynatrace.com/support/help/infrastructure/log-analytics/dynatrace-search-query-language/)

When trying to define a log event pattern detection a simple expression like “EXIT\_CODE=6” is not possible. This pattern would match anything that contains EXIT\_CODE the ‘=’ is ignored.

How would one search for exactly this string?

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [February 23, 2018, 8:20am UTC](https://community.dynatrace.com/t/log-analytics-pattern-matching-rules-containing/10972/2 "2018-02-23T08:20:21Z")

</div>

Hi Reinhard,

both “EXIT\_CODE=6” and EXIT\_CODE=6

will match EXIT\_CODE=6 but will not match EXIT\_CODE

However EXIT\_CODE = 6

will match lines that contain EXIT\_CODE and = and 6 on any position in the log line (entry).

We just doublechecked the above behavior, if you observe different results - please open a support call.
