diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index f760e8c7..f139932e 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -52,9 +52,9 @@ $ docker logs -f If your container is still running but in a bad state, you can try to debug by putting yourself within the context of that process. -To gain interactive shell access to the container's runtime, you can run: +To gain interactive shell access to the container's runtime as the splunk user, you can run: ``` -$ docker exec -it /bin/bash +$ docker exec -it -u splunk /bin/bash ``` #### Debug variables @@ -142,17 +142,17 @@ Generating a diag is only an option if: To create this diag, run the following command: ``` -$ docker exec -it ${SPLUNK_HOME}/bin/splunk diag +$ docker exec -it -u splunk "${SPLUNK_HOME}/bin/splunk diag" ``` Additionally, if your Docker container/hosts have access to https://www.splunk.com you can now send the file directly to Splunk Support by using the following command: ``` -$ docker exec -it ${SPLUNK_HOME}/bin/splunk diag --upload --case-number= --upload-user= --upload-password= --upload-description="Monday diag, as requested" +$ docker exec -it -u splunk "${SPLUNK_HOME}/bin/splunk diag --upload --case-number= --upload-user= --upload-password= --upload-description='Monday diag, as requested'" ``` However, if you don't have direct access, you can manually copy the diag back to your host via `docker cp`: ``` -$ docker cp :/opt/splunk/var/run/diags/ +$ docker cp :/opt/splunk/ ``` ## Contact