# Filter Logs in Dynatrace Managed which comes from OpenTelemetry

**URL:** <https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, opentelemetry, log-monitoring-class\
**Created:** [August 28, 2025, 7:56am UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143 "2025-08-28T07:56:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [August 28, 2025, 7:56am UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/1 "2025-08-28T07:56:38Z")

</div>

Hi,

I need to filter logs in the **Classic log viewer** in **Dynatrace Managed** (so I don’t have DQL).  
My goal is to see **only the logs that come from OpenTelemetry**.

I tried filtering like this:

_ **telemetry.sdk.name=“opentelemetry”** _

because I saw that this field exists in the metadata, but it returns empty results.

I also tried with another field:

_ **otel.scope.name != null** _

but the result is the same — nothing.

I saw these field on the left menu, others when I’m in advanced mode. When I’m on simple mode - they disappear.

This is one of these messages:

```markup
{
  "event.type": "LOG",
  "content": "⚠️ A warning log from VB.NET via OpenTelemetry.",
  "status": "WARN",
  "timestamp": "1755598171325",
  "loglevel": "WARN",
  "service.name": "unknown_service:dotnet",
  "trace_id": "000000000000000091486389365d72b5",
  "span_id": "c2d90c8a4b402a94",
  "telemetry.sdk.language": "dotnet",
  "otel.scope.name": "SSB.Platform.Internal.Objects_Holder.MyService",
  "telemetry.sdk.version": "1.12.0",
  "dt.auth.origin": "dt0c01.34YVNTMSQYIHYZIXSPVJ2OVK",
  "telemetry.sdk.name": "opentelemetry"
}

```

Can you suggest how I can achieve this?

Regards, Deni

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [August 28, 2025, 12:55pm UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/2 "2025-08-28T12:55:18Z")

</div>

Try with the&nbsp;dt.auth.origin, which should be the Token id you have created for the OTEL integration… assuming the token is used only for OTEL ingestion.

if this still not works, try to add the field as custom attribute in the log settings.&nbsp;[Log custom attributes (Logs Classic) — Dynatrace Managed Docs](https://docs.dynatrace.com/managed/analyze-explore-automate/log-monitoring/analyze-log-data/log-custom-attributes)

---

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [August 28, 2025, 1:09pm UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/3 "2025-08-28T13:09:24Z")

</div>

Thanks for the suggestion. Unfortunately in Dynatrace Managed “dt.auth.origin” is also part of metadata which can’t be filtered (How I miss DQL&nbsp; …). I read the documentation:&nbsp;[https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/analyze-log-data/log-custom-attributes?utm\_source=chatgpt.com](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/analyze-log-data/log-custom-attributes?utm_source=chatgpt.com)

“These custom attributes must match log attributes in ingested log data or they will be ignored.”

So if I understand this correct these attributes, which I can use in filter are the same which are visible on the left menu “Available attributes” in the Logs screen, but only in Simple mode (in Advanced mode not filterable attributes are also shown). I looked at them one by one, but couldn’t find anything useful.

May be my solution is only for future logs (can’t filter current logs) - process rule to set log.source to opentelemetry or add in the collector additional attribute (log.source - I can’t find something more meaningful in available attributes for my case).

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [August 28, 2025, 1:31pm UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/4 "2025-08-28T13:31:44Z")

</div>

I would suggest you to set the field ‘otel.scope.name’ as custom arribute and give it a try.

---

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [August 28, 2025, 1:40pm UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/5 "2025-08-28T13:40:42Z")

</div>

Where to set it is there any other place? It is already inside the record together with telemetry.sdk.name, but if I try to filter the result is empty. The json I pasted is generated as follow: Open the record and press “Create process rule” - this json comes as a value in the field on the bottom of rule where I can test it.

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [August 28, 2025, 2:00pm UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/6 "2025-08-28T14:00:05Z")

</div>

Settings \> Log Monitoring \> Custom attributes

add the attribute there and check the Show values in side bar.

---

<div class="post-metadata">

**Author:** ![deni](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/deni/32/163_2.png) [@deni](https://community.dynatrace.com/u/deni)\
**Post date:** [August 28, 2025, 3:08pm UTC](https://community.dynatrace.com/t/filter-logs-in-dynatrace-managed-which-comes-from-opentelemetry/53143/7 "2025-08-28T15:08:44Z")

</div>

Thanks, this looks like the **simplest solution and should work**. I’ll test it once we have new logs.

According to the description, it only applies to newly ingested logs:

**Log Monitoring Classic** → The change applies only to newly ingested log events. Existing events (before toggling the option) won’t be searchable.
