I’ve got a bunch of these behind a client’s FW and the syslog parser is trying to extract the hostname as per RFC3164 which gives incorrect info and i’m having to create a syslog server port for EACH gateway to be able to identify them individually.
the “log_hostname” feature of OpenWRT remote logging only appears in later versions of OpenWRT, it happens that a “log_prefix” is already supported.
From the command line rather than the gui, this should work:
uci set system.@system[0].log_prefix='my-rak-7249-001'
uci commit system
/etc/init.d/log restart
Changes should persist on the overlay filesystem, if they seem not to be you could also modify /etc/init.d/log to inject your prefix somehow. The actual code in even this version of ubox logread.c seems to support a hostname as well as a prefix, its the init script which doesn’t take that from uci and inject it into the daemon.
The enourmous scope of work involved in working around hardware incompatibilities that would come up in changing version makes it quite unlikely, but as explained above you could modify /etc/init.d/log to read the system.@system[0].hostname uci key and pass it to logd with the -h command line option much the way later versions presumably do