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.
Try with the 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.
“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).
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.