• Moving SBBS logging out of syslog

    From Dumas Walker@1:103/705 to All on Fri Feb 16 08:58:27 2024
    Several years ago I set my BBS up to write the log to syslog. Recently, some shit for brains decided that having syslog was "bad" so now there is no easy way to just load syslog and search it.

    I want to revert back to having Synchronet keeps its own log. How do I do that?

    And, no I am not looking for a lecture on how this way is better.

    Thanks.

    #

    ---
    ■ Synchronet ■ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dumas Walker@1:103/705 to All on Fri Feb 16 10:26:31 2024
    Several years ago I set my BBS up to write the log to syslog. Recently, some shit for brains decided that having syslog was "bad" so now there is no easy way to just load syslog and search it.

    I want to revert back to having Synchronet keeps its own log. How do I do that?

    And, no I am not looking for a lecture on how this way is better.

    Thanks.

    Nevermind, I found the answer right after posting. Now, if I take 'syslog' off the command line, and I am not running daemonized, where does the log go? The wiki mentions sbbs.log, but I am not finding that in /var/log or ~/data/logs. Where does it go?

    #

    ---
    ■ Synchronet ■ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Dan Clough@1:135/115 to Dumas Walker on Fri Feb 16 10:12:00 2024
    Dumas Walker wrote to All <=-

    Several years ago I set my BBS up to write the log to syslog.
    Recently, some shit for brains decided that having syslog was
    "bad" so now there is no easy way to just load syslog and search
    it.

    I want to revert back to having Synchronet keeps its own log.
    How do I do that?

    I am using Slackware Linux, and in my /etc/syslog.conf I've added this
    near the bottom of the file:

    # Synchronet BBS logging - added by Dan C. 2/17/19
    local3.* -/var/log/sbbs.log

    The "3" on the end of the "local" keyword is because I've also changed
    my /sbbs/ctrl/sbbs.ini to have this in the [UNIX] section at the bottom:

    ; Defaults to using the USER facility.
    LogFacility = 3

    The result of these two settings produces my log in /var/log/sbbs.log

    Hope that helps!




    ... HAL 9000 - Dave. Put down those Windows disks. Please, Dave.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.20-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (1:135/115)
  • From nelgin@1:103/705 to Dumas Walker on Fri Feb 16 13:19:04 2024
    On Fri, 16 Feb 2024 08:58:27 -0500
    "Dumas Walker" (VERT/CAPCITY2)
    <VERT/CAPCITY2!Dumas.Walker@endofthelinebbs.com> wrote:
    Several years ago I set my BBS up to write the log to syslog.
    Recently, some shit for brains decided that having syslog was "bad"
    so now there is no easy way to just load syslog and search it.

    I want to revert back to having Synchronet keeps its own log. How do
    I do that?

    And, no I am not looking for a lecture on how this way is better.

    Thanks.

    #

    ---
    ■ Synchronet ■ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
    FWIW
    $ cat /etc/rsyslog.d/40-synchronet.conf
    if $programname == 'synchronet' then {
    if $msg startswith ' web ' then {
    action(type="omfile" file="/var/log/sbbs/web.sbbs.log"
    fileOwner="bbs" fileGroup="bbs") } else if $msg startswith ' mail '
    then { action(type="omfile" file="/var/log/sbbs/mail.sbbs.log"
    fileOwner="bbs" fileGroup="bbs") } else if $msg startswith ' srvc '
    then { action(type="omfile" file="/var/log/sbbs/service.sbbs.log" fileOwner="bbs" fileGroup="bbs") } else if $msg startswith ' evnt BINK'
    then { action(type="omfile" file="/var/log/sbbs/binkit.sbbs.log" fileOwner="bbs" fileGroup="bbs") } else if $msg startswith ' evnt '
    then { action(type="omfile" file="/var/log/sbbs/event.sbbs.log"
    fileOwner="bbs" fileGroup="bbs") } else if $msg startswith ' term '
    then { action(type="omfile" file="/var/log/sbbs/term.sbbs.log"
    fileOwner="bbs" fileGroup="bbs") } else if $msg startswith ' ftp ' then
    { action(type="omfile" file="/var/log/sbbs/ftp.sbbs.log"
    fileOwner="bbs" fileGroup="bbs") }
    else
    {
    action(type="omfile" file="/var/log/sbbs/sbbs.log" fileOwner="bbs" fileGroup="bbs") }
    stop
    }
    if $programname == 'ircd' then {
    action(type="omfile" file="/var/log/sbbs/ircd.log" fileOwner="bbs" fileGroup="bbs") stop
    }
    I basically get a different file for each service in /var/log/sbbs
    in my systemd file
    #StandardOutput=syslog
    #StandardError=syslog
    SyslogIdentifier=synchronet
    #SyslogFacility=local3
    All the logging stuff is commented out except for SyslogIdentifier.
    sbbs.ini contains
    ; Defaults to using the USER facility.
    LogFacility=3
    ; syslog identity to use (when daemonized)
    LogIdent=synchronet
    Somehow, it all works.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Dumas Walker on Fri Feb 16 10:44:39 2024
    Re: Re: Moving SBBS logging out of syslog
    By: Dumas Walker to All on Fri Feb 16 2024 10:26 am

    Several years ago I set my BBS up to write the log to syslog. Recently, some shit for brains decided that having syslog was "bad" so now there is no easy way to just load syslog and search it.

    I want to revert back to having Synchronet keeps its own log. How do I do that?

    And, no I am not looking for a lecture on how this way is better.

    Thanks.

    Nevermind, I found the answer right after posting. Now, if I take 'syslog' off the command line, and I am not running daemonized, where does the log go? The wiki mentions sbbs.log, but I am not finding that in /var/log or ~/data/logs. Where does it go?

    It goes to syslog (the daemon/service, not necessarily the file "syslog"). Look at your syslog configuration file to find out which *files* it goes to. Or use something like journalctl (if you have it) to view them based on service. There's also tools like lnav which are nice for viewing logs.
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #77:
    SSL = Secure Sockets Layer (precursor to TLS)
    Norco, CA WX: 58.9°F, 75.0% humidity, 3 mph SSW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)