14 Feb 2024 07:17 AM
Hi,
I have setup application observability with pod runtime injection. Metrics are exported to Dynatrace and we can view under Infrastructure Observability > Host but logs and events are not visible
Are there any missing setup to perform?
Thanks
Davide
14 Feb 2024 08:20 AM
Take a look at this
https://docs.dynatrace.com/docs/shortlink/log-monitoring-docker
14 Feb 2024 08:41 AM
Hi,
in the documentation refer to autodiscovery
OneAgent autodiscovers log messages written to the containerized application's stdout/stderr streams. The Docker logging driver saves these log streams in a file located in the /var/lib/docker/containers directory on the host running the containers. OneAgent autodiscovers log files from that path.
OneAgent autodiscovers log messages written to the containerized application's stdout/stderr streams and with OneAgent inject in the pod seem this autodiscovery not work.
14 Feb 2024 08:44 AM
Check the requirements.
If a log is not auto-discovered, please check how to add custom logs
https://docs.dynatrace.com/docs/shortlink/log-monitoring-custom-source#mainclscuipage
14 Feb 2024 09:02 AM - edited 14 Feb 2024 09:08 AM
Pod deployments change frequently so I think it's not possibile configure every time custom logs, I think it's important the autodiscovery
14 Feb 2024 04:22 PM
Hey @doccorso , if you have your Dynakube resource deployed in Application Monitoring mode, I do not believe you should expect to see Host-level logs. Only for Kubernetes or Full Kubernetes Observability modes do we expect to ingest log analytics for the K8s platform itself. In AppMon mode, we only ingest Application level logs.
Can you try deploying to Dynakube in CloudNativeFullStack or Kubernetes Monitoring modes and see if the issue persists?
14 Feb 2024 04:36 PM - edited 14 Feb 2024 04:38 PM
Hi, we use application observability with pod runtime injection, is not equal to AppMon mode? We need to monitoring application logs inside pod containers, we cannot setup Dynakube in CloudNativeFullStack or Kubernetes Monitoring modes and we chose the solution with pod runtime injection.
With pod runtime injection is it possible monitoring application logs?