# Troubleshooting Missing Log Files Due to OneAgent Log Monitoring Security Rules

**URL:** <https://community.dynatrace.com/t/troubleshooting-missing-log-files-due-to-oneagent-log-monitoring-security-rules/56530>\
**Category:** Troubleshooting\
**Tags:** troubleshooting, troubleshooting-guide, logs\
**Created:** [July 29, 2026, 12:31pm UTC](https://community.dynatrace.com/t/troubleshooting-missing-log-files-due-to-oneagent-log-monitoring-security-rules/56530 "2026-07-29T12:31:25Z")\
**Posts on this page:** 2\
**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:** [July 29, 2026, 12:31pm UTC](https://community.dynatrace.com/t/troubleshooting-missing-log-files-due-to-oneagent-log-monitoring-security-rules/56530/1 "2026-07-29T12:31:25Z")

</div>

## Summary

This article applies to Dynatrace Log Monitoring with OneAgent and helps troubleshoot situations where a log file is expected to appear in Dynatrace but is not being ingested. It specifically covers cases where OneAgent Log Monitoring security rules prevent a file from being collected and explains how to use the Dynatrace Log Security Rules Checker to validate and resolve the issue.

## Problem

A log file is configured or expected to be monitored by OneAgent, but the log does not appear in Dynatrace.

Common symptoms include:

- The log file is present on the host and actively receiving data.
- No matching log records are visible in Dynatrace.
- No obvious ingestion errors are displayed in the Dynatrace UI.
- The affected file may be located in a directory that is not covered by the default OneAgent security rules or may match an exclusion rule.

OneAgent Log Monitoring uses built-in security rules to ensure that only appropriate log files are ingested. These rules are designed to prevent accidental collection of configuration files, secrets, and other non-log content. When a file path is blocked by these rules, the file will not be ingested.

## Troubleshooting steps

### Validate the file path

Before proceeding, ensure that you have:

- The absolute file path of the log file.
- All symbolic links resolved.
- The installed OneAgent version.
- Python 3 available on your workstation.

Clone the Log Security Rules Checker repository:

```python
git clone https://github.com/Dynatrace/Dynatrace-Log-Security-Rules-Checker.git
cd Dynatrace-Log-Security-Rules-Checker

```

### Check the path against the default OneAgent rules

Run the following command:

```python
python3 LogAgentSecurityRulesChecker.py -a <agent_version> -o linux <absolute_path>

```

Example:

```python
python3 LogAgentSecurityRulesChecker.py -a 1.301 -o linux /usr/sap/BQH/HDB03/cssbq3d01/trace/available.log

```

Review the result:

- **INCLUDED** – The file is allowed by the security rules and should be eligible for ingestion.
- **EXCLUDED** – Continue to the next step.

### Identify the exact matching rule

Run the checker in verbose mode:

```python
python3 LogAgentSecurityRulesChecker.py -a <agent_version> -o linux <absolute_path> -v

```

The output identifies the specific security rule responsible for the exclusion.

Example:

```python
Try to match rule { ^/usr/ **/** { * }{ EXCLUDE } **o { /usr/sap/BQH/HDB03/cssbq** 01/trace/ }{ available.log }
**- directory** art MATCHED, file part MATCHED --**the rule is matched.
'/usr **ap/BQH/HDB03** ssbq3d01/trace/available.log' is **CLUDED.

```

### Check if a newer OneAgent version resolves the issue

Run the checker without specifying a OneAgent version:

```python
python3 LogAgentSecurityRul **Checker.py -o linux <absolute_pat** -v

```

This tests the path against the newest known security rule set.

Review the result:

- **INCLUDED** – Upgrading OneAgent to the corresponding version or later may resolve the issue.
- **EXCLUDED** – Continue to the resolution steps.

## Resolution

### Generate a custom security rules configuration

If the file remains excluded and an upgrade is not possible or does not resolve the issue, generate a custom configuration:

```python
python3 LogAgentSecurityRu **sChecker.py -a <agent_version> -o** inux <absolute_path> -g custom_co**ig.json -v

```

This creates a `custom_config.json` file containing an INCLUDE rule for the target path. The generated configuration also includes support for common log rotation filename variations.

### Validate the generated configuration

Before deployment, verify that the custom configuration allows the file:

```python
python3 LogAgentSecurity **lesChecker.py -a <agent_version>** linux <absolute_path> -c custom_**nfig.json -v

```

Confirm that the output reports:

```python
INCLUDED**

```

### Deploy the custom configuration

1. Copy the validated `custom_config.json` file to the target OneAgent host.
2. Place the configuration in the location specified by the Dynatrace security rules documentation.
3. Restart OneAgent if required by the operating system and deployment method.
4. Verify that the log file is subsequently ingested and visible in Dynatrace.

### Additional checker options

| Option | Description |
| --- | --- |
| `-i paths.txt` | Validate multiple paths from a file |
| `-n` | Skip online version checks |
| `-o windows` | Test Windows security rules |
| `--help` | Display all available options |

### Important notes

- Always test using the **absolute path**.
- Resolve all symbolic links before validation.
- Custom security rules **supplement** the default rules and do not replace them.
- Security rules evolve over time, so testing against newer OneAgent versions may identify a version where the path is already permitted.

## What’s next

If this article didn’t resolve the issue, please open a support ticket and mention that you followed the troubleshooting steps described here.

### Opening a support ticket

Include the following information:

- Full absolute path of the affected log file.

- OneAgent version.

- Operating system and version.

- Output from:

- Generated `custom_config.json` file (if applicable).

- Screenshots showing:

- Confirmation whether testing against the latest known rule set resulted in **INCLUDED** or **EXCLUDED**.

- Any custom OneAgent security rule configurations currently in use.

### Alternatives

- Review the official Dynatrace documentation for OneAgent security rules:  
[OneAgent Log Monitoring Security Rules](https://docs.dynatrace.com/docs/observe-and-explore/logs/lma-log-ingestion/lma-log-ingestion-via-oa/lma-security-rules)
- Use the Dynatrace Log Security Rules Checker repository for offline validation and testing:  
[Dynatrace Log Security Rules Checker](https://github.com/Dynatrace/Dynatrace-Log-Security-Rules-Checker)
- Further troubleshooting- [Logs Troubleshooting Map](https://community.dynatrace.com/topic/302260)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 29, 2026, 12:50pm UTC](https://community.dynatrace.com/t/troubleshooting-missing-log-files-due-to-oneagent-log-monitoring-security-rules/56530/2 "2026-07-29T12:50:45Z")

</div>

Hi,

Thank you! I was not aware of this command line utility&nbsp;:clap:

Best regards
