Troubleshoot TrackMe Broker

Start where the broker runs. If it is offline, its local log can tell you why even when the stack has stopped hearing from it. If it is Online and a request fails, go straight to The broker is online but an account test fails.

Docker container

On the Docker host, open a terminal in the folder containing compose.yaml. Check whether the container is running or restarting, then read its last 100 log lines.

docker compose ps -a
docker compose logs --tail 100 broker

To watch new messages while you retry a connection, run docker compose logs -f broker. Press Ctrl+C to stop watching. The same commands work for the image loaded from a tarball and the image pulled from Docker Hub.

  • The container exits or keeps restarting. Look for the first startup error. Run docker compose run --rm --no-deps broker config check. It checks the mounted YAML and bootstrap token and prints the configured URL. The container runs as UID/GID 10001. If it reports a file permission error, check the file named in the message against the configuration and permission reference.

  • The container is running. Run docker compose exec broker trackme-broker status --check. A healthy Docker container can still be waiting for pairing. To see the current pairing code, run docker compose exec broker trackme-broker pair.

Standalone Linux service

On the broker host, check the systemd service, then read the last 100 messages from its journal.

sudo systemctl status trackme-broker --no-pager
sudo journalctl -u trackme-broker -n 100 --no-pager

To watch messages as they arrive, run sudo journalctl -u trackme-broker -f. An empty ``/opt/trackme-broker/var/log/`` is normal. The default is to write to the journal through standard output. If you set log.file, you also get a rotating file under the configured log directory.

Run these checks as the same account that runs the service. The examples use the default installation path.

sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker config check
sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker status --check

If the service fails at startup, use the first journal error to identify the file or interpreter involved. For a token permission error, check its owner and mode. For a Python version or import error, check the interpreter recorded in /opt/trackme-broker/etc/python against the Linux installation requirements.

Reading standalone status. For either installation, status --check returns exit code 0 when all configured connections are paired, connected and pulling work. Code 1 means the process is live but a connection is unready. Code 2 means a connection stopped, or its status is missing or stale. On Linux, use sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker pair to read the latest pairing code. Remove the pairing banner, including its code, before sharing journal or container output.

Splunk Heavy Forwarder add-on

On the Heavy Forwarder, open Apps → TrackMe Broker and expand the affected connection. Check that it is enabled and read its channel state. The add-on writes its own log to $SPLUNK_HOME/var/log/splunk/trackme_broker.log. On a default Linux installation, this displays its last 100 lines.

tail -n 100 /opt/splunk/var/log/splunk/trackme_broker.log

Use tail -f on the same file while repeating the test. If the add-on has never written a log, check that the connection input is enabled. Look in $SPLUNK_HOME/var/log/splunk/splunkd.log for input startup errors that mention trackme_broker.

If the forwarder’s internal logs reach your search tier, run this search in Splunk. Add a host filter to select a particular forwarder in a pool.

index=_internal sourcetype=trackme:broker earliest=-30m

A channel entry such as disconnected:http_401 means the stack refused the connection’s token. Check the stack URL and token for that connection. A request entry includes the exchange ID, destination, status and elapsed time. If the local file has entries but the search is empty, check the search time range, access to _internal and whether the forwarder sends its internal logs to this search tier.

The broker stays offline or has no pairing code

A new instance receives a pairing code after the stack accepts its registration. If the code never appears, check the local log for the first connection error. Check the Splunk management URL, DNS and outbound HTTPS from the broker host. On Splunk Cloud, confirm the broker’s outbound IP is on the stack’s search-api allow list. For an upstream certificate error, check the CA bundle configured on the connection. For an HTTP 401 during registration, check the bootstrap token and its Splunk account.

If the code expired, read the current one from the add-on page or the standalone pair command. If a previously paired standalone instance asks for a new code after an upgrade, check the connection name and the original state directory or Docker volume before pairing again.

The broker is online but an account test fails

  1. On the stack, open Configuration → Manage TrackMe Brokers. Expand the broker named in the account’s Connectivity setting. Re-run the account test and look under Exchanges in flight and recent failures. Use the Activity tab to review the request outcome and time.

  2. Check the error below. In a pool, check each member’s status and target policy. An online member with a different allow list can make failures intermittent.

  3. After correcting the cause, repeat the same account test. A successful response from the intended destination verifies the route and the account credentials together.

What you see

What to check

target_not_allowed

Compare the request’s scheme, host, port and path with the allowed destination. For managed targets, check Manage targets → Last reported target policy for Applied on each member. For local targets, check the add-on page or run trackme-broker targets list on each standalone instance.

target_unreachable or target_timeout

Check DNS, routing, the destination port and firewall rules from the broker’s network. A target must be reachable from each host that can receive the request.

tls_verification_failed

Check the destination certificate’s hostname, expiry and issuing CA. A private CA must be trusted by the broker for that target. See Standalone broker configuration and operations for standalone trust settings.

The destination responds with HTTP 401 or 403

Check the credentials and privileges of the account used for that destination. The broker’s pairing token authenticates a different connection, from the broker to the stack.

Stack-side log. For token-renewal events or warnings during broker removal, search the TrackMe handler log on the stack.

index=_internal sourcetype=trackme:rest_api source=*trackme_rest_api_broker* earliest=-30m

For other errors, see Failure codes. When reporting a failure, include the installation type, running version, time and time zone, and exchange ID or failure code if available. Keep tokens and private keys out of log excerpts.