Hello,
how i can split logs from external edge device with two (or more) ip source?
i use rsyslog 4.1
/etc/hosts
1.1.1.1 edge1.dom1
2.2.2.2 edge1.dom2
3.3.3.3 edge2.dom2
4.4.4.4 edge2.dom2
/etc/rsyslog.conf
$template EDGE,"/var/log/edge/%HOSTNAME%.log"
if $fromhost contains 'edge' then ?EDGE
on the edge device only one interface active
and messages from single device (edge1) write to different files (edge1.dom1.log or edge1.dom2.log).
it is possible truncate domain in %HOSTNAME% ?

