How dynatrace/dynatrace-log-security-rules-checker works
This repository is a standalone Python CLI for checking whether log paths pass Dynatrace Log Agent security rules. The user supplies paths directly or via an input file, selects OS and agent version, and may load custom rules; the checker evaluates rules and reports inclusion or exclusion, optionally generating a configuration for excluded paths. The README also documents automatic script-version checking and verbose match explanations. The excerpt shows the core matching and configuration behavior, but not all CLI setup and version-check implementation; relationships below are limited to documented behavior or shown source.
Main entry points: LogAgentSecurityRulesChecker.py Path checker
Components 10
Checker CLI
- Path checker
LogAgentSecurityRulesChecker.py - Path inputs
LogAgentSecurityRulesChecker.py - Version check
LogAgentSecurityRulesChecker.py
Security Rules
- Rule matching
LogAgentSecurityRulesChecker.py - Default rules
LogAgentSecurityRulesChecker.py
Configuration I/O
- Custom rules
LogAgentSecurityRulesChecker.py - Config generator
LogAgentSecurityRulesChecker.py - Rule config files
Other components
- CLI user
- Current script release
Connections 12
- CLI user → Path checker: runs
README.md - CLI user → Path inputs: provides paths
README.md - Path inputs → Path checker: checks paths
LogAgentSecurityRulesChecker.py - Path checker → Version check: checks version
README.md - Version check → Current script release: compares version
README.md - Path checker → Default rules: loads rules
LogAgentSecurityRulesChecker.py - Path checker → Custom rules: loads rules
LogAgentSecurityRulesChecker.py - Custom rules → Rule config files: reads
LogAgentSecurityRulesChecker.py - Path checker → Rule matching: evaluates paths
LogAgentSecurityRulesChecker.py - Rule matching → CLI user: reports result
README.md - Path checker → Config generator: generates config
LogAgentSecurityRulesChecker.py - Config generator → Rule config files: writes
LogAgentSecurityRulesChecker.py