Where to find logs of nginx in Ubuntu

If ypu want to check the logs of nginx, want to check why your nginx service is not starting then you need to go following folder in Ubuntu:


You need to check the error.log file in that folder to find the cause of issues/errors you are getting with your site or nginx service.