linelog to two destinations

Matthew Newton mcn4 at leicester.ac.uk
Wed Jan 13 16:02:39 CET 2016


On Wed, Jan 13, 2016 at 02:49:08PM +0000, Jonathan Gazeley wrote:
> On 13/01/16 14:45, Arran Cudbard-Bell wrote:
> >Filename gets expanded.  Just use %{Virtual-Server} as part of the filename if you want to log to different files based on the virtual server.
> 
> Yes, this is exactly what I do at the moment. I now want to log to syslog as
> well as files without having to duplicate the config.

modules {
  linelog {
    filename = "%{Tmp-String-0}"
    ...
  }
}

policy {
  log_syslog {
    update control {
      Tmp-String-0 := "syslog"
    }
    linelog
  }
  log_file {
    update control {
      Tmp-String-0 := "/var/log/file"
    }
    linelog
  }
}


authorize {
  log_syslog
  log_file
}

?

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list