Configure remote syslog for XenServer via the command line

Citrix has some helpful documentation online about configuring remote syslog support for XenServer using the XenCenter GUI. However, if you need to do this via configuration management or scripts, using a GUI isn’t an option. Getting it done via the command line is relatively easy: HOSTUUID=`xe host-list --minimal` SYSLOGHOST=syslog.example.com xe host-param-set uuid=${HOSTUUID} logging:syslog_destination=${SYSLOGHOST} xe host-syslog-reconfigure host-uuid=${HOSTUUID} Removing the configuration and going back to only local logging is easy as well:...

2014-06-03 · 1 min · Major Hayden

Log Android events remotely to a syslog server

I’m still quite pleased with my Samsung Galaxy SIII but there are some finicky Bluetooth issues with my car that I simply can’t figure out. After discovering logcat, I wondered if there was a way to get logs sent from an Android device to a remote syslog server. It’s certainly possible and it actually works quite well. My phone is currently rooted with CyanogenMod 10 installed. Some of these steps will require rooting your device....

2012-11-04 · 3 min · Major Hayden

Piping log files to a syslog server

If you have a centralized syslog server, or you use Splunk for log tracking, you may find the need to get older log files into a syslog port on that server. Edit: Using logger (as suggested by David and Jerry below) will give you a more reliable way to send the data to a syslog server: You’ll also be able to set a label for the text before it’s piped into the syslog server, which would be handy if you’re sorting or parsing the data later on....

2009-04-21 · 1 min · Major Hayden