Dynatrace Log Ingestion Filters: Balancing Coverage and Cost for Low-Traffic Workloads
0 reputation · 18 Aug 2023, 06:53 UTC
0 reputation · 18 Aug 2023, 06:53 UTC
Dynatrace allows fine‑grained control of data ingestion through log filters, optional module disabling, and retention policy adjustments. These levers can lower the volume of data sent to the SaaS platform, especially on hosts that experience minimal traffic.
When a production environment is low‑traffic, the question becomes how aggressively to prune ingestion without losing critical visibility. Reducing log levels or disabling features such as OneAgent profiling can cut costs, but they also risk overlooking intermittent performance issues or security events that only surface under rare traffic spikes.
35275 reputation · 18 Aug 2023, 18:46 UTC
For low-traffic workloads, the best cost-benefit ratio is achieved by excluding high-volume, low-signal events. Instead of broad ingestion, focus on these specific filters:
DEBUG and INFO levels by default. In low-traffic environments, these often represent heartbeat noise without providing diagnostic value until an active incident occurs.Retention periods are a primary driver of cost. For low-traffic production, a tiered retention strategy is most effective:
ERROR and WARN logs for a standard period (e.g., 30 days) to facilitate post-mortem analysis.To prevent idle or auto-scaled hosts from inflating licensing usage, implement a dynamic tagging strategy based on host state:
env: ephemeral or status:idle to auto-scaled instances. Use these tags in your ingestion filters to drop logs from hosts that are not currently processing production-level traffic.Assumptions and Uncertainty: This guide assumes the use of Dynatrace SaaS with DDU-based log storage pricing. The effectiveness of regex filters depends on the specific log format of your application; always verify that critical error patterns are not caught by aggressive exclusion.
To provide a more specific recommendation, what is the current log volume (in GB) generated by these low-traffic hosts?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.