linelog to two destinations

Arran Cudbard-Bell a.cudbardb at freeradius.org
Wed Jan 13 16:02:49 CET 2016


> On 13 Jan 2016, at 09:49, Jonathan Gazeley <Jonathan.Gazeley at bristol.ac.uk> 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.

Reference a common template in the linelog modules, then you won't duplicate any of the config.

templates {
	my_linelog_template {
		common_config_item = 'common_value'
	}

}

linelog inst1 {
	$template my_linelog_template
}

linelog inst2 {
	$template my_linelog_template
}

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160113/e6d048db/attachment-0001.sig>


More information about the Freeradius-Users mailing list