[FS#99] hostname and syslog

LEDE Bugs lede-bugs at lists.infradead.org
Thu Aug 18 09:56:12 PDT 2016


The following task has a new comment added:

FS#99 - hostname and syslog
User who did this - Andrzej (andriej)

----------
Currently don't have access to the box I had to make modifications in, but in OpenWRT in file:
/etc/init.d/log
i had to add:
- in section: validate_log_section()
                'log_proto:or("tcp", "udp"):udp' \
                'log_trailer_null:bool:0' \
                'log_prefix:string' \
+                **'hostname:string**'

and in sections: start_service_file() and start_service_remote()
had to add:
-h "$hostname" in procd_set_param command "$PROG" **-h "$hostname"** -f -r "$log_ip" "${log_port}" -p "$pid_file" as it was missing.
While it was missing, localhost.localdomain was appearing in remote syslogs instead of true hostname reported after adding -h.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=99#comment257



More information about the lede-bugs mailing list