how to get syslog to remote to work?
-
hi there. I have set a remote syslog server in XO, but nothing is being sent by XCP. I have taken a look at /etc/rsyslog.conf, there is no remote server setting in there (there is an example which is commented out) as there is a setup option in XO I am reluctant to edit the /etc/rsyslog.conf manually.
how do I get this to work? -
@djingo, FWIW, configuring with XO (from sources) has worked just fine for me. I actually just tested this the other day because I saw that my log server wasn't getting anything. When I looked at the pool settings I realized that I had made a typo. After I fixed it the logs started flowing.
TL;DR, I think just setting the remote syslog host is enough, but I could be wrong.
The host's logs might have some insights you can glean: https://xcp-ng.org/docs/troubleshooting.html#log-files
-
@techjeff yes the hostname also shows in xsconsole. The hostname was correct.
There must be a problem of some sort. Maybe a Patch overwrite the /etc/rsyslog.d/xenorchestra.conf at some point in time and then the line with the syslog server was gone.
What now helped was removing the syslog server in xsconsole and re-adding it.
Removing it did not work in XO as XO UI insists that the server name cannot be empty.
This maybe should be fixed. -
@djingo
My syslog stopped working (I think after one o the updates) and this bug still exists. If you trying removing it form the Pool or individual hosts in the Pool via XO it will not let you have it as blank. If you ssh in and use xsconsole you can remove the syslog server and but it will not let you specify a port. But once it has been removed from xsconsole you can go back into XO and add in the syslogserver along with a non-default port such as192.168.2.7:1521
and it will work.