Linelog module
Bassem Mettichi
mettichi at gmail.com
Mon Jul 22 10:20:51 CEST 2019
Hello,
i have created a link for linelog module on mods-enabled and i have
commented on the detail module on accounting section on default file and
enabled the linelog module like this:
accounting {
# Update accounting packet by adding the CUI attribute
# recorded from the corresponding Access-Accept
# use it only if your NAS boxes do not support CUI themselves
# cui
#
# Create a 'detail'ed log of the packets.
# Note that accounting requests which are proxied
# are also logged in the detail file.
# detail
# daily
linelog
When i start freeradius server and i begin sending aaccounting requests
from my NAS i didn't get any log file and i have this error message:
(8) # Executing section accounting from file
/opt/freeradius/v.3.0.19/etc/raddb/sites-enabled/default
(8) accounting {
(8) linelog: EXPAND messages.%{%{reply:Packet-Type}:-default}
(8) linelog: --> messages.0
(8) linelog: No such entry ".messages.0"
My radius log has this format:
Mon Jul 22 10:12:34 2019
;NAS-IP-Address=172.31.4.91;Calling-Station-Id="999100000006";Acct-Status-Type=Start;Framed-IP-Address=1.0.0.6;3GPP-IMEISV="3550010752741177";Timestamp=1563783154
Mon Jul 22 10:12:35 2019
;NAS-IP-Address=172.31.4.91;Calling-Station-Id="999100000007";Acct-Status-Type=Start;Framed-IP-Address=1.0.0.7;3GPP-IMEISV="3550010752741177";Timestamp=1563783155
Mon Jul 22 10:12:36 2019
;NAS-IP-Address=172.31.4.91;Calling-Station-Id="999100000008";Acct-Status-Type=Start;Framed-IP-Address=1.0.0.8;3GPP-IMEISV="3550010752741177";Timestamp=1563783156
I would like to send this log to syslog as it has actually a line format
like radius.log and i don't see any entry on detail module to send logs to
syslog
i appreciate your help. If any one needs this log format i can send the
modified detail module.
Thanks
Bassem
Le ven. 19 juil. 2019 à 15:55, Jorge Pereira <jpereira at freeradius.org> a
écrit :
> Mettichi,
>
> Do you have any input for us showing where you're stuck? Have you tried to
> check the documentation inside the raddb/mods-available/linelog ? e.g:
> https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/linelog#L130
> <
> https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/linelog#L130
> >
>
> Please, https://wiki.freeradius.org/guide/radiusd-X <
> https://wiki.freeradius.org/guide/radiusd-X>
>
> > On 19 Jul 2019, at 10:15, mettichi <mettichi at gmail.com> wrote:
> >
> > Hello,Please can any one tell me how to configure linelog module for
> accounting start stop interim update i would like to use it instead of
> detail module i have changed log format for accounting to be in one line
> instead of multiline and i would like to send accounting log to syslog
> serverI appreciate your helpThanksBassemEnvoyé depuis mon smartphone
> Samsung Galaxy.
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list