# How to configure logging to syslog locally in sonarqube

**URL:** <https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576>\
**Category:** SonarQube Server / Community Build\
**Created:** [March 13, 2020, 7:39am UTC](https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576 "2020-03-13T07:39:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@priya](https://community.sonarsource.com/u/priya)\
**Post date:** [March 13, 2020, 7:39am UTC](https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576/1 "2020-03-13T07:39:54Z")

</div>

- 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

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [March 13, 2020, 12:08pm UTC](https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576/2 "2020-03-13T12:08:17Z")

</div>

Hi,

Welcome to the community!

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

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![priya](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@priya](https://community.sonarsource.com/u/priya)\
**Post date:** [March 13, 2020, 1:39pm UTC](https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576/3 "2020-03-13T13:39:11Z")

</div>

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

Thank you

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [March 13, 2020, 3:54pm UTC](https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576/4 "2020-03-13T15:54:47Z")

</div>

Hi,

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

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![priya](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@priya](https://community.sonarsource.com/u/priya)\
**Post date:** [March 16, 2020, 12:56pm UTC](https://community.sonarsource.com/t/how-to-configure-logging-to-syslog-locally-in-sonarqube/21576/5 "2020-03-16T12:56:11Z")

</div>

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
