# Enable Log Visibility in Dynatrace

**URL:** <https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152>\
**Category:** Troubleshooting\
**Tags:** grail, log-configuration, log-monitoring-class, logs\
**Created:** [April 16, 2024, 9:49am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152 "2024-04-16T09:49:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [April 16, 2024, 9:49am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/1 "2024-04-16T09:49:43Z")

</div>

If your Dynatrace OneAgent logs are not visible, the issue often relates to a missing configuration or insufficient permissions. To resolve this, allow log ingestion, define log sources correctly, and ensure access rights are properly set. These steps improve log monitoring and visibility across your environment.

## Summary

[Log ingestion](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-ingestion) is the process of collecting log data from various sources within an infrastructure.&nbsp;These logs can then be analyzed for many purposes within Dynatrace.

This article provides troubleshooting steps for when logs are not ingested/ visible in Dynatrace.

**Important:** Log Monitoring is **enabled by default** but only controls the OneAgent log module capability. To actually ingest and view logs, you must also configure log ingest rules. If you experience issues with log collection, verify that this setting hasn’t been disabled.

## Troubleshooting

### For logs ingested via OneAgent

- **Check if the OneAgent version** running on the host is the supported [version/latest version](https://docs.dynatrace.com/docs/whats-new/oneagent).
- **Check if the Log agent is running on the host**. You can do this by going to the host page → Process analysis section—Filter by technology Dynatrace, and confirm that OneAgent log analytics is running.
- **Check if Log Monitoring is enabled**
  - From the Dynatrace WebUI
    - To check if Dynatrace Log Monitoring is enabled globally:
      - Go to&nbsp;“Settings&nbsp;\>&nbsp;Monitoring&nbsp;\>&nbsp;Monitored technologies”.
      - Find&nbsp;“Log Monitoring”&nbsp;in the list of supported technologies, and select&nbsp;“Edit”&nbsp;(pencil icon).
      - Check if the “Monitor Log Monitoring” option is enabled.

    - To check if Dynatrace Log Monitoring is enabled at the host level:
      - Go to&nbsp;"Settings&nbsp;\>&nbsp;General ".
      - Find&nbsp;“Log Monitoring”&nbsp;in the list of monitored technologies, and select&nbsp;“Edit”&nbsp;(pencil icon).
      - Check if&nbsp;“Monitor Log Monitoring” on every host&nbsp;option is enabled

  - **Using the OneAgent** [CLI tool](https://docs.dynatrace.com/docs/shortlink/oneagentctl)
    - Use the&nbsp;`--get-app-log-content-access`&nbsp;parameter to check whether Log Monitoring is enabled:  
**Linux** :

⚠ **Common issue:** The `app log content access` flag may be `false` on the target host even if the UI shows log monitoring as enabled — this can happen if `oneagentctl` was run on a different host than intended, or if a migrated configuration file (`_migratedloganalytics.conf.json`) retains `"AppLogContentAccess": false` from a previous state. Always verify the flag is `true` on the **correct** host.

- **Confirm ingest rules are set up correctly.** Log Ingest rules are documented&nbsp;[here](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-log-ingestion/lma-log-ingestion-via-oa/lma-log-storage-configuration)

- Check if any [Security rules](https://docs.dynatrace.com/docs/shortlink/lma-security-rules) are violated.  
You can verify this by checking the [OneAgent logs.](https://docs.dynatrace.com/docs/shortlink/oneagent-aging-mechanism#aging-mechanism-for-oneagent-in-application-only-monitoring-mode)&nbsp;Check this [article](https://community.dynatrace.com/topic/302252)&nbsp;  
Sample log with security warning, which can be verified inside the OneAgent logs.

- **Check if OneAgent has access to the file.**  
It might especially happen when a file is on an NFS drive on Linux. Then you need to ensure that the user account OneAgent is running on has access to the file, and also enable NFS drive log detection,&nbsp;Settings \> Log Monitoring \> Advanced log settings.

- **Confirm the format is supported.**  
Supported encodings include UTF-8 and UTF-16.

- **Confirm the content was not added after the file was ingested.**  
No new content is added after the file has been configured to be sent—OneAgent does not send historical data.

- Confirm that **auto-detection** [limits](https://docs.dynatrace.com/docs/shortlink/lma-autodiscovery#limits-for-your-log-autodiscovery-when-using-oneagent)&nbsp;have not been reached

- Confirm that the L **og Monitoring default** [limits](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/log-monitoring-limits)&nbsp;have not been reached.

- For managed environments, check the **cluster events** to see if there are any warnings, as mentioned [here](https://docs.dynatrace.com/docs/analyze-explore-automate/log-monitoring/lmc-troubleshooting)

- Check if you have **access to the [buckets](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-bucket-assignment) where** the logs are stored. You can run the below query to check the buckets you have access to.

- **Use Log Module Self-Monitoring (SFM) Events** _(OneAgent 1.333+ / GA in 1.339+)_

### For logs ingested via K8s LogAgent module

- Verify that the&nbsp; logmonitoring pod is up and running, using the following command

- Check that you have the [prerequisites](https://docs.dynatrace.com/docs/shortlink/lma-logs-from-kubernetes#prerequisites) enabled.

- Check that you have a [matching rule](https://docs.dynatrace.com/docs/shortlink/lma-logs-from-kubernetes#control-log-ingest-with-kubernetes-metadata) created at the K8 cluster level / Global level.

- The requirements for autodiscovery and ingestion of Kubernetes logs are the following:

The&nbsp; **containerd** ,&nbsp; **CRI-O** , or&nbsp; **cri-dockerd** &nbsp;container runtime is used.

Logs are written to the container’s&nbsp; **stdout** / **stderr** &nbsp;stream.

- **Kubernetes app-only mode:** If running in app-only (not full-stack) mode, ensure the `.spec.templates.logMonitoring` and `.spec.logMonitoring` sections are present in the DynaKube custom resource YAML. These are added automatically when the Kubernetes ingestion setup wizard is followed. The Dynatrace Operator is a mandatory prerequisite.

See [this article](https://community.dynatrace.com/topic/285827) for more detailed steps.

### For SysLog ingestion via ActiveGate&nbsp;

See&nbsp;[Syslog Ingestion via ActiveGate Troubleshooting Guide](https://community.dynatrace.com/topic/282718)

### For logs ingested via Fluent Bit

See&nbsp;[Troubleshooting logs ingested via Fluent Bit](https://community.dynatrace.com/topic/283718)

### For logs ingested via API- Post ingest logs

See&nbsp;[Troubleshooting log Ingestion via API - POST ingest logs](https://community.dynatrace.com/topic/286608)

## What’s next

If this article didn’t help, please open a support ticket, mention that this article was used, and provide the following:

- Link to the tenant
- Link to the process that is creating the log
- link to log ingest rule and custom log source rule (if needed)
- Copy of the actual log
- Dynatrace Operator&nbsp;[logs](https://docs.dynatrace.com/docs/shortlink/installation-k8s-troubleshooting#support-archive) if it’s a Kubernetes deployment
- [OneAgent](https://docs.dynatrace.com/docs/shortlink/oneagentctl#create-support-archive) logs from the host

**What to read next:**

[**Dynatrace does not ingest logs (HTTP 429)**](https://community.dynatrace.com/topic/230512)

**[How can I get logs from an Azure subscription in another Azure tenant?](https://community.dynatrace.com/topic/229424)**

**[Why my logs are not visible in Dynatrace?](https://community.dynatrace.com/topic/242716)**

**[Logs Troubleshooting Map](https://community.dynatrace.com/topic/302260)**

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [April 16, 2024, 10:04am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/2 "2024-04-16T10:04:57Z")

</div>

Hello&nbsp;[@noel\_david](https://community.dynatrace.com/user/17456)

Thank you for summarizing the troubleshooting points.

What could be the potential issue of no Auto-discovery of Kubernetes/OpenShift logs?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [April 16, 2024, 10:13am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/3 "2024-04-16T10:13:13Z")

</div>

Hi&nbsp;[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;,

In general,

- OneAgent autodiscovers log streams written by pods to stdout/stderror,&nbsp; files written inside containers are not discovered automatically. but still for those we the log ingest and rule and custom log source rule are applicable.
- If the logs are created by a Cron jobs or short running processes or unimportant process, you can try the declarative process&nbsp;grouping configuration&nbsp;([Process group detection — Dynatrace Docs](https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/process-groups/configuration/pg-detection#declare))

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [April 16, 2024, 11:28am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/4 "2024-04-16T11:28:19Z")

</div>

Hello&nbsp;[@noel\_david](https://community.dynatrace.com/user/17456)

The log ingested rule is applied on the namespaces level, and also these are important processes.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [April 16, 2024, 1:03pm UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/5 "2024-04-16T13:03:01Z")

</div>

Hi&nbsp;[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;,

Please create a ticket, with all details.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [April 17, 2024, 9:52am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/6 "2024-04-17T09:52:37Z")

</div>

Hello&nbsp;[@noel\_david](https://community.dynatrace.com/user/17456)

I just wanted to update you that log monitoring was not enabled on the global level.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 25, 2024, 1:28pm UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/7 "2024-09-25T13:28:51Z")

</div>

Hi&nbsp;[@noel\_david](https://community.dynatrace.com/user/17456)&nbsp;,

Thanks a lot for your great post.

I think we can add another use case in “Improper ingest rules” point:

- The log meets with the [autodiscovery requirements](https://docs.dynatrace.com/docs/shortlink/lma-autodiscovery#autodiscoveryrequirements) but the rule has it a condition a process group without services deployed

In this case the&nbsp;log will not visible in Dynatrace either.

Thanks,

Elena.

---

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [September 26, 2024, 6:22am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/8 "2024-09-26T06:22:00Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;, Thank you .&nbsp;  
Can you please share an example here, if possible,

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 27, 2024, 10:57am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/9 "2024-09-27T10:57:56Z")

</div>

Hi&nbsp;[@noel\_david](https://community.dynatrace.com/user/17456)&nbsp;,

Here an example: for this kind of rules

 ![erh_inetum_0-1727433817283.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/6/a64c3978ef94d4a965a435251e7cbdc8da0b5a5d.png)

we have seen that if the process group doesn´t have deployed services

 ![erh_inetum_1-1727434310565.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/ab50189f8df031a7108449572960f59ea288e9b1.png)

the log isn´t captured. But it is in case the process group has deployed services.

Please, let me know in case my explanation is not clear and it try to explain it better again.

Thanks you so much.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [October 2, 2024, 1:13pm UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/10 "2024-10-02T13:13:36Z")

</div>

Hi&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;,

I tried to reproduce the issue but was unsuccessful; if you can share a sample, it will be unique. Can you share me if you have one? A support ticket will be perfect.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [October 2, 2024, 4:10pm UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/11 "2024-10-02T16:10:06Z")

</div>

Hi [@noel\_david](https://community.dynatrace.com/user/17456)&nbsp;,

The screenshots that I put in my comment below are the issue we had and how to reproduce it.

We haven’t opened a ticket because we configures the rule for an specific host and we got the log.

Let me know if this information os enough.

Thanks so much.

Regards,

Elena

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [October 2, 2024, 5:43pm UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/12 "2024-10-02T17:43:48Z")

</div>

For this point:

- If the logs are not detected then a custom rule is needed ([Custom log source — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/lma-custom-log-source)). For a custom rule to work properly and a log ingestion rule is also needed.

There is now a built-in log ingest rule that you can enable that will ingest all logs from custom log sources. Just enable that rule and you don’t have to worry about making multiple rules.

---

<div class="post-metadata">

**Author:** ![noel\_david](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@noel\_david](https://community.dynatrace.com/u/noel_david)\
**Post date:** [October 3, 2024, 5:51am UTC](https://community.dynatrace.com/t/enable-log-visibility-in-dynatrace/45152/13 "2024-10-03T05:51:37Z")

</div>

Hi&nbsp;[@StrangerThing](https://community.dynatrace.com/user/53298)&nbsp;,&nbsp;Thank you.

[@erh\_inetum](https://community.dynatrace.com/user/40722)&nbsp;, Thank i’ll have a&nbsp; look
