Sidecar troubleshooting

To track the status of sidecars, use the splunkd health report. To learn more about this tool, see About proactive Splunk component monitoring.

If an issue with a sidecar occurs, try one or more of the following steps:

  • Check the sidecar configuration and modify settings, if necessary.
  • Restart all sidecars.

    Even if the issue applies to an individual sidecar, you need to restart all sidecars. You cannot restart sidecars individually.

  • If the issue still occurs, generate a diagnostic (diag) file and send it to Splunk support for further assistance in troubleshooting the issue. To learn more about a diagnostic file, see Generate a diagnostic file.

Troubleshoot with log files

The logs that the supervisor and sidecars generate are saved in the $SPLUNK_HOME/var/log/splunk directory. The following list presents the logs and data that they capture.

Note: By generating a diagnostic (diag) file, you can retrieve data from stdout log files.
Log file name Description

supervisor.log

supervisor-start.log

Logs from the supervisor about the supervisor itself, sidecar lifecycle and health, and endpoint registration.
sup-pkg-identity-stdout.log System logs for the SCIM sidecar.
postgres-*.log Hourly logs from the PostgreSQL database that is managed by the Storage sidecar. The log file retains up to 24 logs, or 1 per hour.

sup-pkg-postgres.log

sup-pkg-postgres-stdout.log

System logs for the Storage sidecar.
spl2-orchestrator.log Logs of requests for the SPL2 language server that is managed by the Data Orchestration sidecar.

sup-pkg-cmp-orchestrator.log

sup-pkg-cmp-orchestrator-stdout.log

System logs for the Data Orchestration sidecar.

sup-pkg-edge-processor-config-stdout.log

sup-pkg-opamp-svc-stdout.log

Service logs for the Edge Processor Control Plane sidecar.
sup-pkg-agent-manager-stdout.log System logs for the Agent Management sidecar.
sup-pkg-ipc_broker-stdout.log System logs for the IPC Broker sidecar.

sup-pkg-spotlight-collector.log

sup-pkg-spotlight-collector-stdout.log

System logs for the Spotlight sidecar.

sup-pkg-nascent.log

sup-pkg-nascent-stdout.log

System logs for the Nascent sidecar.

etcd.log

The log for etcd. Useful when troubleshooting the Nascent sidecar.

splunkd.log

The primary log file for Splunk Enterprise. It contains system logs for the Nascent sidecar running on an etcd proxy node.

Log rotation and retention

To reduce the disk space used by logs, Splunk Enterprise v. 10.2.10 introduces the following default log rotation settings for supervisor, sidecar, and subprocess log files:

  • Maximum file size: 50 MB, down from 500 MB.

  • Rotated backups: up to 15 per log file, up from 3.

  • Maximum retention age: 28 days, unchanged.

With one active file and up to 15 rotated backups, each log stream can use about 800 MB of disk space, down from about 2 GB. The smaller files rotate more often.

You don't need any configuration changes to use these defaults.

Note: Before upgrading, check whether your monitoring or log collection tools assume a 500 MB maximum file size or a limit of 3 rotated backups. Confirm that they can collect files that rotate at 50 MB and up to 15 backups per log file. Update their settings if necessary.

The following files use their own rotation and retention behavior and are not affected by these defaults:

  • postgres-*.log
  • spl2-orchestrator.log
  • etcd.log

Sidecars - troubleshooting tips

Issues with sidecars may result from the following:

Errors in ingesting, processing and routing data

Follow these tips to troubleshoot issues:
  • Ensure that an Edge Processor instance is healthy.
  • Ensure that users can connect to the Edge Processor instance.

  • Ensure that your firewall is not causing a connection or data ingestion error.

Errors in Edge Processors, pipelines, data destinations, and source types

Follow these tips to troubleshoot issues:
  • If the Storage sidecar is not starting up, ensure that you run Splunk Enterprise as a non-root user. See Run Splunk Enterprise as a different or non-root user.

    Issues with starting up the Storage process can cause issues with other sidecars.

  • Check that sidecar issues are not caused by network issues related to a firewall, proxy, or DNS.
  • If an Edge Processor instance is disconnected for more than 3 hours, it might no longer be trusted. Provision it again to reestablish the instance as trusted.