Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
monitor:syslog [2010/02/26 18:15] – created digitalmanmonitor:syslog [2023/01/23 13:52] (current) – [Monitoring] Example journalctl and systemctl cmd-lines digital man
Line 1: Line 1:
-====== Synchronet Daemon (UNIX) ====== +====== syslog (UNIX) ====== 
-FIXME+ 
 +Synchronet for *nix-like OSes can send its server and services output to your system's ''[[wp>syslog]]'' facility (e.g. ''rsyslogd'' on Debian Linux). When running ''sbbs'' as a daemon, syslog-output is automatically enabled. When running ''sbbs'' interactively (not daemonized), syslog output can be enabled by passing the ''syslog'' command-line option to ''sbbs'': 
 + 
 +  $ sbbs syslog 
 + 
 +===== Configuring =====  
 + 
 +The syslog functionality is configurable via the ''LogFacility'' (default: ''U'') and ''LogIdent'' (default: ''synchronet'') values of the ''[[config:nix|[UNIX]]]'' section of your ''[[dir:ctrl]]/[[config:sbbs.ini]]'' file. 
 + 
 +You can further configure your syslog output (e.g. directories and filenamesthrough the setup of your system's syslog facility (e.g. via the ''/etc/rsyslogd.conf'' file on Debian Linux). 
 + 
 +===== Monitoring ===== 
 +The ''syslog'' output of the Synchronet daemon will usually go to a file in your ''/var/log'' directory. You can monitor real-time changes to this file with the ''tail -f'' command. 
 +  $ tail -f /var/log/sbbs.log 
 + 
 +If you're using **systemd** to start and control ''sbbs'', you can use ''journalctl'' to monitor the log (with colorized log lines) in real-time: 
 +  $ journalctl --follow -u sbbs 
 + 
 +Another option for systemd systems is to use ''systemctl'' together with ''watch'' to monitor both the service status and log output together in real-time: 
 +  $ sudo watch systemctl status sbbs 
 +   
 +An alternative tool to actively monitor log files is the ''lnav'' utility: 
 + 
 +  $ sudo lnav /var/log/logfile 
 +  
 ===== See Also ===== ===== See Also =====
   * [[:monitor:|Monitoring]]   * [[:monitor:|Monitoring]]
 +  * [[:config:nix|UNIX Configuration]]
  
-{{tag>}}+{{tag>unix syslog}}
  
 +{{indexmenu_n>4}}