Identify the site in logging
Alan DeKok
aland at deployingradius.com
Tue Oct 24 17:22:51 UTC 2023
On Oct 24, 2023, at 12:24 PM, Stephane Bourque <stephane.bourque at arilia.com> wrote:
> We have a need to be able to identify the virtual-server that is generating
> the log messages. How would you approach this?
There is an automatically generated attribute called Virtual-Server. It contains the name of the current virtual server.
> - Is there a way to get a different logging configuration per server?
That's not possible, sorry.
> - Is there a way to add the server name in logging statements?
You can edit the "log" section of radiusd.conf. Look at the messages there, and add a %{Virtual-Server} expansion.
Alan DeKok.
More information about the Freeradius-Users
mailing list