29 Jul 2026 01:31 PM - edited 29 Jul 2026 01:42 PM
A log file is configured or expected to be monitored by OneAgent, but the log does not appear in Dynatrace.
Common symptoms include:
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.
Before proceeding, ensure that you have:
Clone the Log Security Rules Checker repository:
git clone https://github.com/Dynatrace/Dynatrace-Log-Security-Rules-Checker.git
cd Dynatrace-Log-Security-Rules-Checker
Run the following command:
python3 LogAgentSecurityRulesChecker.py -a <agent_version> -o linux <absolute_path>
Example:
python3 LogAgentSecurityRulesChecker.py -a 1.301 -o linux /usr/sap/BQH/HDB03/cssbq3d01/trace/available.log
Review the result:
Run the checker in verbose mode:
python3 LogAgentSecurityRulesChecker.py -a <agent_version> -o linux <absolute_path> -v
The output identifies the specific security rule responsible for the exclusion.
Example:
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.
Run the checker without specifying a OneAgent version:
python3 LogAgentSecurityRul**Checker.py -o linux <absolute_pat** -v
This tests the path against the newest known security rule set.
Review the result:
If the file remains excluded and an upgrade is not possible or does not resolve the issue, generate a custom configuration:
python3 LogAgentSecurityRu**sChecker.py -a <agent_version> -o**inux <absolute_path> -g custom_co**ig.json -v
custom_config.json file containing an INCLUDE rule for the target path. The generated configuration also includes support for common log rotation filename variations.Before deployment, verify that the custom configuration allows the file:
python3 LogAgentSecurity**lesChecker.py -a <agent_version> ** linux <absolute_path> -c custom_**nfig.json -vINCLUDED**
custom_config.json file to the target OneAgent host.| 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 |
If this article didn't resolve the issue, please open a support ticket and mention that you followed the troubleshooting steps described here.
Include the following information:
python3 LogAgentSecurity**lesChecker.py -a <agent_version> ** <os> <path> -vcustom_config.json file (if applicable).Review the official Dynatrace documentation for OneAgent security rules:
OneAgent Log Monitoring Security Rules
Use the Dynatrace Log Security Rules Checker repository for offline validation and testing:
Dynatrace Log Security Rules Checker