freeradius 2.2.6 on RHEL 6.8 doesn't write customize log

Latest response

Hy,
I configured a new log authentication module :

/etc/raddb/sites-available/eduroam_logging

linelog eduroam_log {
filename = ${logdir}/eduroam-log
format = ""
reference = "eduroam_log.%{%{reply:Packet-Type}:-format}"
eduroam_log {
Access-Accept = "eduroam-auth#ORG=%{request:Realm}#USER=%{User-
Name}#CSI=%{%{Calling-Station-Id}:-Unknown Caller Id}#NAS=%{%{Called-Station-
Id}:-Unknown Access Point}#MSG=%{%{EAP-Message}:-No EAP Message}#RESULT=OK#"
Access-Reject = "eduroam-auth#ORG=%{request:Realm}#USER=%{User-
Name}#CSI=%{%{Calling-Station-Id}:-Unknown Caller Id}#NAS=%{%{Called-Station-
Id}:-Unknown Access Point}#MSG=%{%{reply:Reply-Message}:-No Failure
Reason}#RESULT=FAIL#"

and i enabled it by creatinf link soft:
llrwxrwxrwx. 1 root radiusd 26 21 set 11:28 eduroam_logging -> ../modules/eduroam_logging

Now service and auth work fine but in mylog dir (/var/log) i haven't eduroam-log; there's only radius.log

What's wrong?

Thanks in advance.
Guido

Responses

I add the following code: it works; i used "detail" instead of "linelog"; but i want to use "linelog"...

--doesn't work 12/09 linelog eduroam_log {

detail eduroam_log { # # The file where the logs will go. # # If the filename is "syslog", then the log messages will # go to syslog. #filename = ${logdir}/linelog ################################################################## ################################################################## #

--doesn't work filename = ${logdir}/eduroam_log
    detailfile = ${logdir}/eduroam_log

    detailperm = 0600

    #
    #  The Unix-style permissions on the log file.
    #
    #  Depending on format string, the log file may contain secret or
    #  private information about users.  Keep the file permissions as
    #  restrictive as possible.
--doesn't work permissions = 0600
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.