cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Container Logs Not Found (Containers App)

ASE
Advisor

We recently added the Containers app to our Dynatrace SaaS environment.

So far, we can see all of our ECS containers as entities in the app, as expected. I like it.

However, when we attempt to "Go to logs", the query it uses (shown below with IDs redacted) does not return any log records.

In order to return any logs, I have to use our custom log attribute of ecs_cluster or container_name.

When reviewing the container log records, all of the dt.entity.container_group and dt.entity.container_group_instance values are null.

Any thoughts as to why?

Thank you.

ASE_0-1727898252193.png

 

fetch logs
| filter (in(dt.entity.container_group, classicEntitySelector("type(CONTAINER_GROUP),entityId(CONTAINER_GROUP-REDACTED)")) or in(dt.entity.container_group_instance, classicEntitySelector("type(CONTAINER_GROUP_INSTANCE),fromRelationships.isInstanceOf(type(CONTAINER_GROUP),entityId(CONTAINER_GROUP-REDACTED))")) or in(dt.entity.process_group_instance, classicEntitySelector("type(PROCESS_GROUP_INSTANCE),fromRelationships.isPgiOfCgi(type(CONTAINER_GROUP_INSTANCE),fromRelationships.isInstanceOf(type(CONTAINER_GROUP),entityId(CONTAINER_GROUP-REDACTED)))")))
| sort timestamp desc

 

 

 

5 REPLIES 5

Peter_Youssef
Leader

Hi @ASE 

It's good to check if the log sources are configured or not 

2024-10-03_00h38_17.png

If you need to add custom log sources 

2024-10-03_00h41_39.png

On the environment level you can enable the below options as per monitoring requirements

2024-10-03_00h47_19.png

KR, 

Peter.

Peter_Youssef
Leader

Hi @ASE 

You have additional option to configure the below per each monitored entity 

2024-10-03_00h58_21.png

2024-10-03_01h02_07.png

BR,

Peter.

ASE
Advisor

Thank you for your informative and detailed replies, @Peter_Youssef.

I noticed some of these examples are related to Kubernetes.

What if we are using ECS/Fargate containers? Do the same verification steps apply?

As for the individual container logs themselves, they are visible in Dynatrace.

Regarding our logs, we are using CloudWatch Log Groups that are being forwarded into Dynatrace.

Could this be what's causing our issue?

We're not letting OneAgent auto-detect log sources, therefore, some of the dimensions like dt.entity.container_group and dt.entity.container_group_instance are not being populated.

I also just noticed that our logs are missing some of the Docker Metadata:

https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-log-ingestion/lma-log-ingestion-via-oa/...

ASE_0-1728081250843.png

I'm trying to determine why none of these fields are visible and/or populated when I click on one of our container's log records.
ASE_0-1727912146774.png

How are these entity.container fields usually populated?

IzabelaRokita
Community Team
Community Team

Hey @ASE, did you manage to find the solution to your problem? If so, it would be amazing if you've shared it with the rest of the Community! If not, let me know, and I'll look for some further assistance 😊

Hello, @IzabelaRokita.

No, we are still experiencing the same issue.

We did not enable any of Kubernetes features mentioned in the screenshots below, as we are not using Kubernetes.

The entityId names generated by Dynatrace (which I redacted above) are not helpful either, as it doesn't tell me which cluster/container group it's referring to. A "friendly name" (as it's displayed on the main Containers app page) would serve more helpful.

Note: We are using both OneAgent and OpenTelemetry, which could be why some of the features don't just work "automagically". Perhaps there is some instrumentation still missing on our end.

Are you experiencing the same thing?

Featured Posts