Standalone broker configuration and operations

Use this reference with Choose a standalone broker installation. The Linux service and container run the same CLI and read the same configuration. Paths below are relative to /opt/trackme-broker unless shown as absolute.

Connection settings

connections is a list with at least one entry. Each connection runs a worker with its own upstream, bootstrap token, identity and pairing. Configure a second entry when the same host must serve another TrackMe installation. Each upstream administrator accepts that connection’s own pairing code.

Key in each connection

Meaning and default

name

Required, unique within the file. Instance, connection and local target names start with a letter or digit, allow letters, digits, dots, underscores and hyphens, and are at most 128 characters. The connection name selects its persistent state directory.

upstream, url

Required. Use splunk and the Splunk management HTTPS origin for TrackMe for Splunk. Use platform and the Platform HTTPS origin for TrackMe Platform, with a broker token issued by Platform. The worker appends the product’s channel path.

token_file, token

Supply the bootstrap credential. A relative file path resolves beside the YAML. A nonempty file setting takes precedence over an inline token. Prefer a protected file. After renewal, the worker uses its saved token under the state directory. Keep the configured bootstrap file readable for configuration checks and startup.

managed_destinations

Defaults to true for a new connection. An existing identity from before the default changed keeps local management if the option is omitted. Set the option explicitly when migrating. TrackMe for Splunk 2.4.26 supports delegated policy. Use local targets with earlier stacks that do not send a policy.

verify_ssl, ca_file

Verify the upstream certificate by default. For a private CA, set an absolute path to a readable PEM trust bundle. In a container the path must exist inside the container. This setting covers the upstream channel only.

proxy_url

Optional HTTP or HTTPS egress proxy for this upstream. The worker calls destinations directly. Configure the proxy here even if the host sets HTTPS_PROXY.

token_renewal.enabled, token_renewal.days

Automatic renewal defaults to true, every 7 days. The interval accepts 1–365 days. The upstream must accept the current token to renew it.

max_in_flight

Maximum concurrent requests on this connection. Default 4, range 1–64.

response_limit_mb

Maximum response size for one request. Default 256 MiB, range 1–1024. The stack can impose a lower limit. Use matching limits across a pool.

Destination policy and TLS

For a managed connection, the worker applies the signed policy from its paired upstream. In Manage TrackMe Brokers, select the group’s Manage targets, add the HTTPS destinations and check Applied for each member. An empty list denies every call. Save the list before switching an existing local connection to managed mode. A policy change takes effect on a subsequent pull. Work already admitted can finish.

For a locally managed connection, set managed_destinations: false on the connection and add a top-level targets list. All locally managed connections in this configuration share that list. This example permits a Splunk management endpoint and a webhook path.

targets:
  - name: collector
    url_prefix: https://collector.example.com:8089
    verify_ssl: true
    ca_file: /opt/trackme-broker/etc/internal-ca.pem
  - name: receiver
    url_prefix: https://notify.example.com/in/trackme
    verify_ssl: true

Each entry requires a unique name and an HTTPS url_prefix. The rule matches the host and port plus the named path or its descendants. A leading *. host wildcard is supported. Use an origin for a Splunk management or Cribl API, and a narrower path where practical for webhooks. Use names reachable from every member. In Docker, localhost refers to the container.

Target verify_ssl defaults to true. Disabling it leaves HTTPS encryption in place but removes authentication of the destination. A private CA on a local target belongs in that target’s ca_file. Managed policy distributes URLs and verification choices. Use local mode when a target needs its own CA file. The standalone client uses its bundled certifi roots by default and ignores host REQUESTS_CA_BUNDLE and SSL_CERT_FILE. A proxy that inspects upstream TLS needs its issuing CA in the connection trust bundle.

Process settings, files and permissions

Top-level YAML key

Meaning and default

instance_name

Stable name of this installation. Defaults to the hostname. Set it explicitly when containers may be replaced.

log.level, log.format

Default INFO and json. Levels are DEBUG, INFO, WARNING and ERROR. Use text for plain text.

log.file

Optional rotating log inside the log directory (25 MiB, five backups). The default writes to stdout. An empty var/log is normal.

paths.state_dir

Default var/lib. Contains per-connection identity, renewed token and status. The top-level state_dir is also accepted when paths.state_dir is absent.

paths.log_dir, paths.run_dir

Default var/log and run. Overrides for all three directories must be absolute. Provision private writable directories and allow the paths in a systemd ReadWritePaths= drop-in or container mount.

The installation root and program files are administrator-owned. Keep etc/ owned by root and the broker group with mode 0750, and etc/broker.yaml with mode 0640. Choose one of these ownership and mode combinations for the bootstrap token.

  • Broker-owned regular file with mode 0400 or 0600.

  • Root-owned regular file with the broker’s primary group and mode 0440 or 0640. Reserve that group for the broker.

These checks also apply to mounted secrets. A read-only mount presenting mode 0444 fails validation. Check the owner and mode as seen by UID/GID 10001 inside the container. The service user owns the state tree, with mode 0700 on directories and 0600 on files. Each connection’s private keys live under connections/<name>/identity.json in that tree. Protect the whole tree and its backups as credentials, including saved tokens, pairing status and migration backups.

Environment overrides

All variable names below start with TRACKME_BROKER_. For example, TOKEN_FILE means TRACKME_BROKER_TOKEN_FILE. Nonempty environment settings override YAML.

Variable suffix

Effect

HOME, CONFIG

Select the installation root or YAML file. By default the launcher resolves its installation root and loads etc/broker.yaml. An explicit CLI --home before the command or --config on a configuration-aware subcommand overrides the corresponding variable.

INSTANCE_NAME, NAME

Set the instance name or select the connection to override. Set NAME explicitly with multiple connections. For environment-only setup, an unnamed connection is called default.

UPSTREAM, URL, TOKEN, TOKEN_FILE

Set the upstream type, base URL and bootstrap credential. TOKEN_FILE contains the token and wins over TOKEN. Either replaces the YAML token settings.

VERIFY_SSL, MANAGED_DESTINATIONS

Override the corresponding connection booleans. Use true or false.

CA_FILE, CA_FILE_FILE, PROXY_URL, PROXY_URL_FILE

CA_FILE is the path of the PEM bundle. CA_FILE_FILE points to a file containing that path. PROXY_URL_FILE contains the proxy URL. Each file variant takes precedence over its direct value.

STATE_DIR, LOG_DIR, RUN_DIR

Override the three writable directories.

LOG_LEVEL, LOG_FORMAT, LOG_FILE

Override the matching log settings.

Use YAML for the renewal interval, concurrency and response limits, and local target list. After editing, validate the effective configuration as the service user. Apply configuration changes with sudo systemctl restart trackme-broker or docker compose restart broker. If you changed the Compose environment or mounts, use docker compose up -d --force-recreate. Reuse the original state mount.

Operate the standalone broker

Run the commands below via sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker for systemd, or docker compose exec broker trackme-broker for Compose. Use --connection NAME on pairing, target listing and connection-specific operations when there are several connections.

Command

When to use it

version, paths, config check

Show standalone and embedded core versions, locate the effective directories, or validate the configuration and token permissions.

init, run

Initialize keys offline or run the workers in the foreground. A pairing code appears only after registration. Let the service manager own the running process.

pair

Show the current pairing banner. --wait --timeout 120 waits up to 120 seconds for acceptance. Protect pairing codes.

status

Show the last reported state. --json gives machine-readable output. With --check, 0 means every selected connection is paired, connected and has pulled recently, 1 means live but unready, and 2 indicates a missing or stale report or stopped connection. Freshness is three minutes. Add --live to check liveness while waiting for pairing.

targets list, targets test URL

List the last reported managed policy for the selected connection or the configured local rules. Test opens a TCP/TLS connection without sending an HTTP request. It uses a matching local rule’s TLS settings, otherwise normal verified TLS. Use the account test in TrackMe to verify managed-policy routing and destination credentials.

rotate, renew-token

Ask the running worker to rotate its keys or renew the current token on its next processing cycle.

forget --connection NAME

Remove that connection’s local pairing and state. Stop the worker first. --yes skips confirmation. Re-enrollment requires a valid bootstrap token and fresh acceptance. When retiring an instance, also remove its row in TrackMe.

A new instance has no pairing code. Run config check as the service account. A token permission error names the offending file. If validation passes, check the journal or container logs for the registration result. An upstream HTTP 401 points to the bootstrap account or token. A TLS error points to the management URL, trust bundle or an inspecting proxy. An expired code is replaced automatically while the worker is running. Read the latest one with pair.

Online but requests fail. Check the account’s Connectivity, the target URL including port, each member’s applied policy, and the destination certificate. Online describes the upstream channel. Use Activity and the expanded broker’s recent failures to distinguish a refused target, TLS failure, timeout or rejected destination credentials. See Failure codes. Read stdout through the journal or container logs.

For Docker and Linux upgrades, rollback and post-upgrade checks, see Upgrade the standalone TrackMe Broker.

For a permanent tarball removal, install.sh --uninstall preserves configuration and persistent data. Adding --purge also deletes them.