syslogd

module
v0.0.0-...-b8c5e40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2023 License: BSD-3-Clause

README

Installation

First, follow the gokrazy installation instructions.

Then, add github.com/gokrazy/syslogd/cmd/gokr-syslogd to your gokrazy instance:

gok add github.com/gokrazy/syslogd/cmd/gokr-syslogd

Configure the listening address through a flag:

{
    "Hostname": "router7",
    "Packages": [
        "github.com/gokrazy/fbstatus",
        "github.com/gokrazy/hello",
        "github.com/gokrazy/serial-busybox",
        "github.com/gokrazy/breakglass"
    ],
    "PackageConfig": {
        "github.com/gokrazy/syslogd/cmd/gokr-syslogd": {
            "CommandLineFlags": [
                "-listen=10.0.0.1:514"
            ]
        }
    },
}

Usage Examples

To follow logs of a specific host live, install https://github.com/gokrazy/breakglass for SSH access and use:

ssh router7 tail -f '/perm/syslogd/scan2drive/*.log'

You can also follow all logs:

ssh router7 tail -f '/perm/syslogd/*/*.log'

To search through old logs, grep through *.log for the last two days:

ssh router7 grep rror '/perm/syslogd/scan2drive/*.log'

…or zstdgrep through *.log.gz for older logs (not included in busybox unfortunately):

sshfs router7:/perm/syslogd /mnt/syslogd
zstdgrep rror /mnt/syslogd/scan2drive/*.log.zst

Directories

Path Synopsis
cmd
gokr-syslogd
Binary gokr-syslogd is a remote syslog server that writes all received messages into files on local disk.
Binary gokr-syslogd is a remote syslog server that writes all received messages into files on local disk.
gokr-syslogweb
Binary gokr-syslogweb is a web server that provides access to the syslog files that gokr-syslogd writes.
Binary gokr-syslogweb is a web server that provides access to the syslog files that gokr-syslogd writes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL