How to configure logging to syslog locally in sonarqube

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube: 7.9.1
  • what are you trying to achieve
    I am trying to get the logs (Main Process, Compute Engine, Search Engine, Web Server) into syslog locally.
  • what have you tried so far to achieve this
    I have gone through sonarqube documentation but couldn’t get information to configure syslog for sonarqube.

I think the right approach is to configure a log collector to forward all *.log files in $SONARQUBE-HOME/logs/ to a file locally
How should I forward my logs to a collector like syslog?
Thanks for the help.
Kind regards

Hi,

Welcome to the community!

We don’t provide any functionality to support this. Out of curiosity, why do you want to do it?

 
Ann

There is requirement to forward the logs to syslogs for monitioring purpose.
Is there any way to implement it?

Thank you

Hi,

If you want to monitor server status (up/down), there’s a web service for that: /api/system/status.

 
HTH,
Ann

Hi,

The web service suggested by you helped but we need to get the complete logs of sonarqube into syslog so that we can debug the logs, if the server status changes.
Is there any possible way to implement this?

Thank you.

Priya Shinde