Bug 15877

Summary: syslogd, feature proposal - add hostname when sending logs to remote server
Product: Busybox Reporter: hmilenkovic
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description hmilenkovic 2023-11-26 19:26:05 UTC
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...
Comment 1 hmilenkovic 2023-11-27 09:54:30 UTC
If I understand right, manpage of syslogd https://linux.die.net/man/8/syslogd option "-I" should be added...