Question on Radius logs
James J J Hooper
jjj.hooper at bristol.ac.uk
Tue Feb 1 18:02:21 CET 2011
--On Tuesday, February 01, 2011 08:41:54 -0800 Brett Littrell
<Blittrell at musd.org> wrote:
> Hi All,
>
> Real quick and I am sure easy question here. I read through the
> unlang man page, really helped in getting a clue. One thing I was
> wondering though, is there a way to output text to the log based on a
> condition? What I mean is something like if x!=y then printf(" x did not
> equal y"). This would be for debugging and log review. Currently we use
> Cisco ACS, which with all it's limitations the one thing that is great
> about it is it's pass/fail logs. Our techs use them all the time to
> diagnose problems. If I could inject text strings into the logs when
> certain issues occur it would make it a lot easier to figure out scripts
> as well as make common issues easier for techs to troubleshoot.
> From what I can tell in the unlang man page it did not mention this,
> perhaps I missed it though.
>
Hi Brett,
It sounds like the linelog module may do what you need, in conjunction
with unlang for the conditionals:
<https://github.com/alandekok/freeradius-server/blob/v2.1.x/raddb/modules/linelog>
Regards,
James
--
James J J Hooper
Network Specialist
Information Services
University of Bristol
http://www.wireless.bristol.ac.uk
--
More information about the Freeradius-Users
mailing list