Datadog Flare
You run a datadog flare to pack up local agent logs and settings. The tool zips these files and sends them straight to the support team. Most teams log in to a host with full root access to run it. Broad host roles let engineers fix agent bugs fast during an outage. Still, wide permissions also expose local keys and app data on that machine. How a datadog flare works on your host The agent runs as a background service on your Linux or Windows server. It reads system stats, app traces, and log
Datadog Security Monitoring: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
You run a datadog flare to pack up local agent logs and settings. The tool zips these files and sends them straight to the support team. Most teams log in to a host with full root access to run it. Broad host roles let engineers fix agent bugs fast during an outage. Still, wide permissions also expose local keys and app data on that machine.
How a datadog flare works on your host
The agent runs as a background service on your Linux or Windows server. It reads system stats, app traces, and log files from local folders. Sometimes the agent stops sending data or uses too much memory. When this happens, support engineers need to see what is going wrong inside.
Running the flare command tells the agent to gather its own health data. It copies log files, system settings, and runtime status into a temporary folder. Before zipping the files, the agent runs a built-in scrubber on the text. This pass looks for API keys, passwords, and tokens in the local files. It replaces those secret strings with blank placeholders so they stay private.
Next, the tool asks you to enter a support ticket number and email. Once you confirm, it uploads the zip archive to the vendor support portal. It also saves a copy of the archive in a local temporary directory. You can open this local zip file to check what the tool collected.
What the native workflow solves and what stays exposed
This built-in tool saves hours of manual work during a live incident. Engineers do not need to hunt through ten folders to find agent logs. The automatic scrubber also stops common keys from leaking into support tickets. It gives the vendor a clean snapshot of the agent state right away.
Still, the workflow requires an engineer to log in to the host directly. In most setups, you need root or admin rights to run the command. Once logged in with admin rights, a user can run any shell command. Native host roles only check who can log in to the server. They do not check or restrict which individual commands a user runs next.
Also, the built-in scrubber only looks for standard secret formats in agent files. Custom app logs or local variables might hold emails, phone numbers, or card numbers. If an engineer pulls raw system logs during the same session, sensitive data shows. Native OS permissions cannot rewrite matched fields in command output while you work.
Datadog Security Monitoring: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Managing host access when collecting support bundles
To keep production hosts safe, teams must tighten how engineers run support tools. Giving every on-call developer full admin access creates a large security risk. One wrong command during a late-night fix can take down a live service. A shared admin key also makes it hard to track who ran what.
Start by separating day-to-day log checks from full host shell sessions. Engineers should read standard app logs through a central dashboard whenever possible. Only allow direct host sessions when the agent itself is broken or offline. When an engineer must log in, scope their role to the agent user. Avoid using the root account unless a file permission error forces your hand.
Teams should also audit every command run during a support session. Knowing that someone logged in to a server is not enough for security. You need a clear record of the exact commands they typed in flight. Adding approval rules for admin commands helps catch mistakes before they cause harm. You can also apply masking rules that rewrite sensitive fields in terminal results.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
What files go inside a datadog flare archive?
The archive holds agent log files, active setting files, and system status checks. It also collects runtime metrics and process lists from the local host machine.
Does the flare tool remove passwords before sending logs?
Yes, the agent runs a filter before it zips the local files up. This pass strips out API keys, proxy passwords, and known token strings.
Can I check the zip file before uploading it to support?
Yes, the tool saves a local copy of the zip file on disk. You can pause the upload, read the files inside, and then confirm sending.
Related guides
In this post