Sidecar troubleshooting
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 sidecars.
- 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.
Sidecar issues can also arise from network problems, such as firewall, proxy, or DNS settings, which may lead to connection or data ingestion errors.
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.
| Log file name | Description |
|---|---|
| supervisor.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. |
| sup-pkg-agent-manager-stdout.log | System logs for the Agent Management sidecar. |
Log rotation and retention
To reduce the disk space used by logs, Splunk Enterprise v. 9.4.18 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.