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.
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-avail... <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@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
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@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-avail... < https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-avail...
Please, https://wiki.freeradius.org/guide/radiusd-X < https://wiki.freeradius.org/guide/radiusd-X>
On 19 Jul 2019, at 10:15, mettichi <mettichi@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
On Jul 22, 2019, at 4:20 AM, Bassem Mettichi <mettichi@gmail.com> wrote:
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: ... 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"
Some amount of paying attention would be useful. When the accounting section is being run, there is no reply:Packet-Type yet. The server just received the request. There is only a request:Packet-Type. Plus, why are you logging the *reply* when the server just received a request? I'm presuming that you want to log the *request*. In which case, *reading* the configuration would be useful. Plus, the only kind of reply to an Accounting-Request packet is an Accounting-Response packet. Alan DeKok.
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@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@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
thanks a lot for your help this resolved my issue Le lun. 22 juil. 2019 à 17:29, Jorge Pereira <jpereira@freeradius.org> a écrit :
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-avail... < 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-avail... < https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-avail...
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@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-avail...
<
Please, https://wiki.freeradius.org/guide/radiusd-X < https://wiki.freeradius.org/guide/radiusd-X>
On 19 Jul 2019, at 10:15, mettichi <mettichi@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
https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/raddb/mods-avail... - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
Alan DeKok -
Bassem Mettichi -
Jorge Pereira -
mettichi