# Log Monitoring - DQL

**URL:** <https://community.dynatrace.com/t/log-monitoring-dql/44002>\
**Category:** DQL\
**Tags:** dql\
**Created:** [February 6, 2024, 1:46pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002 "2024-02-06T13:46:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![munawarhossain1](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munawarhossain1](https://community.dynatrace.com/u/munawarhossain1)\
**Post date:** [February 6, 2024, 1:46pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/1 "2024-02-06T13:46:51Z")

</div>

Hello,

I’m using this query and I want to exclude a particular text from logs -

“fetch logs //, scanLimitGBytes: 500, samplingRatio: 1000  
| filter matchesValue(dt.entity.process\_group, “abcd”) and matchesValue(status, “ERROR”)”

Please let me know, how?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![gbaudart](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Post date:** [February 6, 2024, 6:59pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/2 "2024-02-06T18:59:01Z")

</div>

HI&nbsp;[@munawarhossain1](https://community.dynatrace.com/user/54127),  
What text would you like to remove?  
To make things clearer, can you show us the results of your query pls?

---

<div class="post-metadata">

**Author:** ![munawarhossain1](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munawarhossain1](https://community.dynatrace.com/u/munawarhossain1)\
**Post date:** [February 7, 2024, 5:20am UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/3 "2024-02-07T05:20:48Z")

</div>

Sure&nbsp;[@gbaudart](https://community.dynatrace.com/user/64996)

“ContentFeb 7 05:13:42 abcd python: 2024/02/07 05:13:42.738654 INFO ExtHandler cached endpoint not found"I want to remove “ **ExtHandler cached endpoint not found** ” from the all the logs available for a particular host/HG”.I know that’s doable via ingestion rule, but I’m focused to see if this can be done via my above query.Thanks

 ![munawarhossain1_0-1707283233135.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/7/0799206a80f48d06aee518c1b32424672b964057.png)

---

<div class="post-metadata">

**Author:** ![bsnurka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bsnurka/32/26730_2.png) [@bsnurka](https://community.dynatrace.com/u/bsnurka)\
**Post date:** [February 7, 2024, 6:07pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/4 "2024-02-07T18:07:50Z")

</div>

Hey&nbsp;[@munawarhossain1](https://community.dynatrace.com/user/54127)&nbsp;, would using the [filterOut](https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/commands/filtering-commands#filterOut) cmd be viable? I am assuming you want the DQL query to return all logs that matches the first two conditions combined via AND, but specifically exclude all instances of “ExtHandler cached endpoint not found”

```markup
fetch logs
| filter matchesValue(dt.entity.process_group, "abcd") and matchesValue(status, "ERROR")
| filterOut contains(content, "ExtHandler cached endpoint not found")

```

---

<div class="post-metadata">

**Author:** ![munawarhossain1](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munawarhossain1](https://community.dynatrace.com/u/munawarhossain1)\
**Post date:** [February 8, 2024, 8:23am UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/5 "2024-02-08T08:23:14Z")

</div>

That’s work mate, thanks!

But as ingesting rule is defined to not capture content “bulk” but it is popping now it seems into logs

 ![munawarhossain1_0-1707380484771.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/4/c4628edd88f6a5e6d45cb680d584bf2866c42e70.png)

 ![munawarhossain1_1-1707380564912.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e0a8c7042465edc6323d4ea2595857865a9925d6.png)

Could you please help me to rectify the condition?

Thanks

---

<div class="post-metadata">

**Author:** ![bsnurka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bsnurka/32/26730_2.png) [@bsnurka](https://community.dynatrace.com/u/bsnurka)\
**Post date:** [February 8, 2024, 4:07pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/6 "2024-02-08T16:07:54Z")

</div>

Is it as simple as the rule being defined as “Bulk” in the second Log content parameter but our actual log content is “bulk”?

---

<div class="post-metadata">

**Author:** ![munawarhossain1](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munawarhossain1](https://community.dynatrace.com/u/munawarhossain1)\
**Post date:** [February 8, 2024, 4:14pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/7 "2024-02-08T16:14:00Z")

</div>

I’ve tweaked that now -

 ![munawarhossain1_1-1707408712976.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/e/9e4e59fc02f5ad0ef4ec9cc99b3016eb9fdb32d4.png)

But still appearing -

 ![munawarhossain1_2-1707408817577.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8166b4c4ebac2c7bef6276fb2be9c54ebfac9158.png)

---

<div class="post-metadata">

**Author:** ![bsnurka](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bsnurka/32/26730_2.png) [@bsnurka](https://community.dynatrace.com/u/bsnurka)\
**Post date:** [February 8, 2024, 4:21pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/8 "2024-02-08T16:21:53Z")

</div>

I am under the assumption your goal is to exclude the ingestation of any logs that have “This bulk request has failures failure in bulk execution:” in its log content. Assuming so, you will need to look into the [Log Ingest Rules](https://docs.dynatrace.com/docs/observe-and-explore/log-monitoring/acquire-log-data/log-storage). There are some specifics around the wildcards accepted by Dynatrace, which I think the example from the documentation illustrates well:

> If no wildcard is used in the value, then the matcher looks for an exact fit to the value. If a wildcard is used, the matcher looks for the exact match. For example, the value&nbsp;INFO&nbsp;results in sending only the log data having the exact&nbsp;INFO&nbsp;string, but the value&nbsp;\*INFO\*&nbsp;(using the wildcards) matches log data that contain the&nbsp;INFO&nbsp;string in its content.

Right now based off the screenshots, I suspect your log ingest rule is looking for log content that simply says “bulk” or “Bulk” as we aren’t configured with a wildcard.

---

<div class="post-metadata">

**Author:** ![munawarhossain1](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@munawarhossain1](https://community.dynatrace.com/u/munawarhossain1)\
**Post date:** [February 8, 2024, 4:27pm UTC](https://community.dynatrace.com/t/log-monitoring-dql/44002/9 "2024-02-08T16:27:22Z")

</div>

Alright thanks, changes are made now -

 ![munawarhossain1_0-1707409587803.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/b/ebfd56f133933bb67c68a6523b17b0f2715eb92e.png)

I’ll wait for a result now
