Gitlab Pipeline - How to check the logs of a runnning instance?

766 views Asked by At

I started my Spring Boot REST API application successfully with a gitlab pipeline. I can make a call to the application endpoints with Postman and I receive the expected responses with status 200.

But now I want to check the logs of my application, but I don't know how to access the instance that was started by the gitlab pipeline.

In this gitlab docs, they say that for example the production logs are at /var/log/gitlab/gitlab-rails/production_json.log. But where is this var folder?

And here they say you need sudo access into your instance, but how do I do that? Does it mean I need to ssh access the running instance and how do I do that?

1

There are 1 answers

0
bwx--2 On BEST ANSWER

Ok, I found out now that the pipeline is not actually hosting the instance, so that question didn't make much sense, and I found my instance logs in my case on Cloud Foundry (where I host my instance). Thanks anyway ; )