I’m currently trying to set up a web hook integration for slack via my company’s private repo. I’m having some issues understanding the documentation in regards to where the log data is stored.
I’m receiving a generic Something went wrong on our end message, which redirected me to look into the production.log documentation. Where I hit a lack of understanding is in reference to where /home/git/gitlab/log/production.log is located. Obviously this wouldn’t be stored locally on my machine. I’m having trouble discerning where to find these logs in relation to an unsuccessful webhook integration.
I understand I probably possess a complete misunderstanding of what’s going on here, but I’d really appreciate anyone’s assistance in helping me figure it out.
Hi @TFisch and welcome to the GitLab Community forum. Great question.
To obtain or review the logs, you’ll need sudo access to the GitLab instance.
GitLab logs are found in directories named after GitLab components in /var/log/gitlab/ by default.
You can find default locations for all specific logfiles by reviewing the information for Omnibus GitLab packages here: https://docs.gitlab.com/ee/administration/logs.html
The relevant logfile directories will begin with /var/log/gitlab/, not/home/git/gitlab/log/.
The gitlab-ctl commands are included with GitLab and can be run from the command line of a GitLab Omnibus instance without any additional setup or dependencies.