Linelog module

Jorge Pereira jpereira at freeradius.org
Mon Jul 22 18:28:45 CEST 2019


Bassem,

> (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”
> 

You’re calling the “linelog"[1] instead of “log_accounting”[2], just fix it in your configuration.

[1] https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/linelog#L12 <https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/linelog#L12> 
[2] https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/linelog#L132 <https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-available/linelog#L132>

> 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
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list