separately logging of multiple conditionals
Alan DeKok
aland at deployingradius.com
Tue Aug 28 13:58:05 CEST 2018
On Aug 28, 2018, at 7:36 AM, Bartek Chmielewski <chmielewskibartek at gmail.com> wrote:
> Is is possible to include multiple separated linelog calls in different
> exceptions of single virtual server?
Sure. You can have multiple copies of the linelog module. See raddb/mods-available/linelog
linelog linelog1 {
... config ...
}
linelog linelog2 {
... config ...
}
etc.
Then in a virtual server, do:
if (... condition ...) {
linelog1
...
}
else {
linelog2
...
}
> Goal is to catch authenticated
> user-names, separately, depending on various addressed proxy servers
> (realms).
> I tried also detail.log pre_proxy_log, but it might be tedious to work with
> later on. Alternatively is there a way to write addressed proxy server to
> authentication log or linelog?
Yes. It's in a dynamic expansion: %{home_server:ITEM}
Where "ITEM" is something from the "home_server { ... } " section. e.g. "ipaddr".
Alan DeKok.
More information about the Freeradius-Users
mailing list