How can we group by the count of logs in relation to the container name?

Yes, we can do that in a few easy ways. It can be very useful to know how many logs different microservices generate, and visualizing it can help you optimize them.

First, the easiest step is to go to the transaction tab under the logs section and then in the Create Widget section select Metrics as “total_log” ,function as “count_by” and attribute as “container_name”.
That’s it now you will be able to see the count of number of logs with respect to different containers.

Another way is you can create a custom dashboard or we can add a new widget in it having our specific filters. While adding the the new widget, select Type as Log , Metric as log.total_logs , function as Count and Group By as container_name.