separately logging of multiple conditionals

Alan DeKok aland at
Tue Aug 28 13:58:05 CEST 2018

On Aug 28, 2018, at 7:36 AM, Bartek Chmielewski <chmielewskibartek at> 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 ...


  Then in a virtual server, do:

	if (... condition ...) {
	else {

> 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