I have a number of Yealink SIP phones at different locations that I am trying to centralize log collection for.
I have set up a CentOS server at my main location with rsyslog. I am forwarding all traffic from UDP 514 to this server.
There is no way to specify a unique identifier to be sent with the logs from the Yealink phones. (I have already sent a feature request to the manufacturer). I'm thinking this may be my only option.
There is also no way to specify the port syslog is sent from on the phone.
Currently my logs are being separated by the IP address they are coming from, so a folder with each WAN IP is created and all the logs from that remote IP are dumped into a single file in that folder.
This means if I have 5 phones at one location all of their logs go into a single file.
How can I get them to separate to an individual log for each device within that folder?
This is my current directive:
$template FILENAME,"/var/log/%fromhost-ip%/syslog.log"
This is my rule:
*.* ?FILENAME