]> git.ipfire.org Git - ipfire-2.x.git/commit
log.dat: Fixes Bug#12922 - adjusts regex to catch hostname for hostname or FQDN
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 8 Mar 2023 14:59:55 +0000 (15:59 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 11 Mar 2023 16:19:41 +0000 (16:19 +0000)
commit282e3fe4fb6c71942ac37c925ad541f14973365f
tree2bef8217f9ea77a9d390d5bab0ec057daf948ff3
parent452fd239f00121e957c932f909409485f26332d6
log.dat: Fixes Bug#12922 - adjusts regex to catch hostname for hostname or FQDN

- Most of the packages being searched for in the system logs section only put hostname into
   the logs. However HAProxy puts the FQDN. Reviewing RFC 5424 shows that this is following
   the requirements. The preferred order fromn the RFC is
   1.  FQDN
   2.  Static IP address
   3.  hostname
   4.  Dynamic IP address
   5.  the NILVALUE
- Most of the programs are using option 3 but option 1 is valid for HAProxy
- The regex change filters out the hostname from the FQDN if an extra 'dot' is present

Fixes: Bug#12922
Suggested-by: Michael <ip.fire@die-fritzens.de>
Tested-by: Michael <ip.fire@die-fritzens.de>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
html/cgi-bin/logs.cgi/log.dat