Documentation

Enable and configure audit logging

Enable audit logging in Telegraf Controller at startup, change the retention period as needed, and optionally forward events to external destinations for long-term storage or SIEM integration.

Available with Telegraf Enterprise

Audit logging is only available with Telegraf Enterprise. If you are interested in learning more about Telegraf Enterprise, contact us.

Prerequisites

  • A valid Telegraf Enterprise license applied to your Telegraf Controller instance.
  • Permission to modify the Telegraf Controller startup environment (for example, the systemd unit file or startup environment).
  • The Owner or Administrator role to change the retention period from the UI.

Audit-logging state changes only at startup

Per Telegraf Controller’s security policy, settings that change the application’s security boundary, including whether audit logging is enabled and where audit events are forwarded, can only be changed at startup. Retention is the only audit setting that can be modified at runtime.

Enable audit logging

Set AUDIT_LOGGING_ENABLED to true before starting Telegraf Controller.

Add AUDIT_LOGGING_ENABLED=true to your systemd unit file (typically /etc/systemd/system/telegraf-controller.service):

[Service]
Environment=AUDIT_LOGGING_ENABLED=true

Reload systemd and restart the service:

sudo systemctl daemon-reload
sudo systemctl restart telegraf-controller

Set the variable, or pass --audit-enabled on the command line:

export AUDIT_LOGGING_ENABLED=true
telegraf_controller --no-interactive
telegraf_controller --audit-enabled --no-interactive

Set the variable in PowerShell, or pass --audit-enabled on the command line:

$env:AUDIT_LOGGING_ENABLED="true"
./telegraf_controller.exe --no-interactive
./telegraf_controller.exe --audit-enabled --no-interactive

After Telegraf Controller starts:

  • The Settings > Audit Logging section displays as enabled.
  • Audit entries begin appearing in the platform data directory described in Where audit logs are stored.
Telegraf Controller audit log retention dropdown

Configure retention

Telegraf Controller keeps audit entries for 90 days (2160 hours) by default and runs a cleanup job every 12 hours that removes entries older than the retention threshold.

Available retention values:

ValueHours
30 days720
3 months2160
6 months4320
1 year8760
2 years17520
Infinite0

Change audit log retention from the Settings page

  1. Sign in as an Owner or Administrator.
  2. Navigate to the Settings page from the left navigation menu.
  3. In the Audit Logging section, select a value from Audit log retention.
  4. Click Save.

The new retention value takes effect immediately. The next cleanup run removes any entries that fall outside the new window.

Set the initial retention at startup

Use the AUDIT_LOG_RETENTION environment variable to seed the retention period when Telegraf Controller initializes its settings on first startup.

export AUDIT_LOG_RETENTION=8760

AUDIT_LOG_RETENTION only sets the initial value. After first startup, the database is authoritative. To update audit log retention, use the Settings page.

Forward audit events

Telegraf Controller can forward each audit event to one or more external destinations in addition to writing it to local storage. Forwarders are configured at startup only and run independently, which lets you enable any combination of syslog, webhook, and file forwarders.

Forward to syslog

Forward audit events to a syslog server over TCP or UDP.

export AUDIT_SYSLOG_HOST=syslog.example.com
export AUDIT_SYSLOG_PORT=514
export AUDIT_SYSLOG_PROTOCOL=tcp
VariableDescriptionRequired
AUDIT_SYSLOG_HOSTSyslog server hostname or IPYes
AUDIT_SYSLOG_PORTSyslog server portYes
AUDIT_SYSLOG_PROTOCOLTransport protocol: tcp or udpYes

Forward to a webhook

Forward audit events as JSON POST requests to an HTTP webhook.

export AUDIT_WEBHOOK_URL=https://siem.example.com/ingest
export AUDIT_WEBHOOK_AUTH_HEADER="Bearer xxxxxxxxxxxx"
VariableDescriptionRequired
AUDIT_WEBHOOK_URLFull URL the webhook receives POST requests atYes
AUDIT_WEBHOOK_AUTH_HEADEROptional value sent in the Authorization HTTP headerNo

The webhook forwarder retries each event up to three times with backoff and a 10-second request timeout. Events that return 408, 429, or 5xx responses are retried; events that return other 4xx responses are dropped. Telegraf Controller honors a Retry-After response header when present.

Append to a file

Append each event to a file as a single JSON object per line (.jsonl).

export AUDIT_FILE_PATH=/var/log/telegraf-controller/audit.jsonl

The path must be writable by the Telegraf Controller process. Telegraf Controller does not rotate or trim this file. Pair it with a system log rotator (such as logrotate) if you keep the forwarder on long term.

Disable audit logging

To turn audit logging off, remove AUDIT_LOGGING_ENABLED (or set it to a value other than true) and restart Telegraf Controller. The startup-only policy applies in both directions: audit logging cannot be disabled from the UI.

Existing audit files remain on disk and continue to be readable through GET /api/audit-logger until they age out of retention.


Was this page helpful?

Thank you for your feedback!


InfluxDB OSS 2.9.0: API tokens are hashed by default

Stronger token security in InfluxDB OSS 2.9.0 — tokens are hashed on disk by default. Existing tokens are hashed on first startup and can’t be recovered afterward. Capture any plaintext tokens you still need before you upgrade.

View InfluxDB OSS 2.9.0 release notes

Hashed tokens authenticate exactly like unhashed tokens — clients and integrations keep working.

Also new in 2.9.0:

  • Configurable backup compression
  • Restore support for backups containing hashed tokens
  • Tighter Edge Data Replication queue validation
  • Flux upgrade
  • Compaction reliability improvements

Key enhancements in Explorer 1.9

Explorer 1.9 is now available with InfluxQL support, an AI-assisted Flux to SQL converter (beta), and new live sample data simulators.

View Explorer 1.9 release notes

Explorer 1.9 includes new features and improvements that make it easier to query, visualize, and manage data.

Highlights:

  • Flux to SQL converter (beta): Convert Flux queries to SQL with an AI-assisted converter.
  • InfluxQL support: Query data with InfluxQL in the Data Explorer and dashboards, and save and load InfluxQL queries.
  • InfluxQL visualizations: Render line and bar charts from InfluxQL results with per-tag series grouping.
  • Query error history: Review a history of query errors in the query tool.
  • Live sample data simulators: Generate continuous live sample data with new bird data and signal generator simulators.

For more details, see Explorer 1.9 release notes

InfluxDB 3.10 is now available

InfluxDB 3 Core 3.10 adds an automatic catalog format upgrade, a configurable query-concurrency limit, and processing engine improvements.

Key updates in InfluxDB 3 Core 3.10:

  • Catalog format upgrade: the on-disk catalog automatically upgrades from format v2 to v3 on first 3.10 startup. Migration is one-way—back up your catalog before upgrading.
  • --max-concurrent-queries: limit concurrent queries (adjustable at runtime).
  • GET /ready endpoint for readiness probes.
  • Processing engine: cross-database queries and trigger lockdown flags.

For more information, see the InfluxDB 3 Core release notes.

InfluxDB 3.10 is now available

InfluxDB 3 Enterprise 3.10 adds automated backup and restore, row-level deletions, and user management, with an automatic catalog format upgrade and performance preview improvements.

Key updates in InfluxDB 3 Enterprise 3.10:

  • Catalog format upgrade: the on-disk catalog automatically upgrades from format v2 to v3 on first 3.10 startup. Migration is one-way—back up your catalog before upgrading.
  • Automated backup and restore (beta)
  • Row-level deletions
  • User management (authentication and RBAC) — preview
  • Performance preview improvements

Backup and restore, row-level deletions, and the performance preview require the Enterprise storage engine upgrade (opt-in beta). Beta and preview features are subject to breaking changes and aren’t recommended for production use.

For more information, see the InfluxDB 3 Enterprise release notes

Telegraf Enterprise is now generally available

Telegraf Enterprise is now generally available, along with Telegraf Controller v1.0.

Telegraf Enterprise combines Telegraf Controller, a centralized management console for Telegraf, with official support from InfluxData. Manage configurations, monitor fleet health, and operate tens of thousands of Telegraf agents from a single system.

InfluxDB Docker latest tag changing to InfluxDB 3 Core

On September 15, 2026, the latest tag for InfluxDB Docker images will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your Docker deployments.

If using Docker to install and run InfluxDB, the latest tag will point to InfluxDB 3 Core. To avoid unexpected upgrades, use specific version tags in your Docker deployments. For example, if using Docker to run InfluxDB v2, replace the latest version tag with a specific version tag in your Docker pull command–for example:

docker pull influxdb:2