[Bug 15877] New: syslogd, feature proposal - add hostname when sending logs to remote server

bugzilla at busybox.net bugzilla at busybox.net
Sun Nov 26 19:26:05 UTC 2023


https://bugs.busybox.net/show_bug.cgi?id=15877

            Bug ID: 15877
           Summary: syslogd, feature proposal -  add hostname when sending
                    logs to remote server
           Product: Busybox
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Networking
          Assignee: unassigned at busybox.net
          Reporter: hmilenkovic at protonmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Hi everyone. I am using syslogd within BusyBox on ddwrt router. Version 1.36.1.
I don't know who is maintainer or developer of syslogd so I am writing to you.
Is it possible to add and option to syslogd client to send hostname (name of
router) when sending logs to remote server. This is usefull when you have more
than one router sending logs to the same server, and this way logs can be
identified (from which router they were sended). I realized this when I started
to use OpenWRT. OpenWRT syslog client sends router hostname to remote server...
but they use different syslog client. On ddwrt syslogd is running from cmd line
like this: syslogd -Z -L -R logs.papertrailapp.com:59352 with no conf file.


I get this when I print options:

~ # syslogd --help
BusyBox v1.36.1 (2023-11-25 06:36:05 +06) multi-call binary.

Usage: syslogd [OPTIONS]

System logging utility
(this version of syslogd ignores /etc/syslog.conf)

        -n              Run in foreground
        -Z              Adjust incoming UTC times to local time
        -R HOST[:PORT]  Log to HOST:PORT (default PORT:514)
        -L              Log locally and via network (default is network only if
-R)
        -C[size_kb]     Log to shared mem buffer (use logread to read it)
        -O FILE         Log to FILE (default: /var/log/messages, stdout if -)
        -s SIZE         Max size (KB) before rotation (default 200KB, 0=off)
        -b N            N rotated logs to keep (default 1, max 99, 0=purge)
        -l N            Log only messages more urgent than prio N (1-8)
        -S              Smaller output
        -t              Strip client-generated timestamps
~ # 


on remote server (papertrailapp.com) I see just my public IP from ddwrt router
but on OpenWRT I se router name (r8000)... Thanks in advance...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list