-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 radiusd: FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu, built on Oct 15 2014 at 05:01: 25 I have configured the linelog module to use syslog, however accounting data is still being directed to the files /var/radact/<ipaddress>/detail-<date>. Any help would be appreciated. Thanks. I have included my linelog file for reference: linelog { filename = syslog permissions = 0644 format = "This is a log message for %{User-Name}" reference = "%{%{Packet-Type}:-format}" Access-Request = "Requested access: %{User-Name}" Access-Reject = "Rejected access: %{User-Name}" Access-Challenge = "Sent challenge: %{User-Name}" foo { bar = "Example log. Please ignore" } Accounting-Request { Start = "Connect: [%{User-Name}] (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} ip %{Framed-IP-Address})" Stop = "Disconnect: [%{User-Name}] (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} ip %{Framed-IP-Address}) %{Acct-Session-Time} seconds" Alive = "" Accounting-On = "NAS %C (%{NAS-IP-Address}) just came online" Accounting-Off = "NAS %C (%{NAS-IP-Address}) just went offline" unknown = "" } } - -- Munroe Sollog LTS - Network Analyst x85002 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJVR7LeAAoJEPbbZiWCKDVCvEIH/jdMWSBN9TCtMNzi6JdgmDb2 H/8eDa+FbQEqcwwqoo92gCGNTqHjRBLWTDjfsjCigeJkXfiwGCdiYHXs7CYpzbpf ViqHmSviEnn8n/q06DKxznuhqppNmzsZrujwUu3Ih5GSXri7qWFFa4O1qZ3dXZLx K7k4zP12LRcsjIhtXtlWv+g5VIN+QEsxZ6p/UKydM5DhNuSpgwfysvPtyAuil0pL UTc4CJtO6hxiytx/YYDdD5AjuNhjs+JDK5o0eARaASR8bcrjWPiQiBPobluEdz+N LwrML7mfPki3UuMM3di+ZLU19n3u1zrtDako1kBKCdfFLIcsrK9I+w43snSVNao= =2GjL -----END PGP SIGNATURE-----
On May 4, 2015, at 1:56 PM, Munroe Sollog <mus3@lehigh.edu> wrote:
radiusd: FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu, built on Oct 15 2014 at 05:01: 25
I would suggest upgrading to 2.2.7.
I have configured the linelog module to use syslog, however accounting data is still being directed to the files /var/radact/<ipaddress>/detail-<date>. Any help would be appreciated.
Because you didn't remove "detail" from the "accounting" section. Alan DeKok.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It would seem you're correct, however, how I want the 'detail' logs to go to syslog, so I'm not sure commenting out 'detail' will solve my problem. - - Munroe On 05/04/2015 02:05 PM, Alan DeKok wrote:
On May 4, 2015, at 1:56 PM, Munroe Sollog <mus3@lehigh.edu> wrote:
radiusd: FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu, built on Oct 15 2014 at 05:01: 25
I would suggest upgrading to 2.2.7.
I have configured the linelog module to use syslog, however accounting data is still being directed to the files /var/radact/<ipaddress>/detail-<date>. Any help would be appreciated.
Because you didn't remove "detail" from the "accounting" section.
Alan DeKok.
- -- Munroe Sollog LTS - Network Analyst x85002 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJVR7fgAAoJEPbbZiWCKDVCmJMIAMQG/c38wWOfFGptup/HTEEC BTg8OJQnLq5wUsM+QmElVRJy1Jr2h6qcoOGEHPHRp5XTHLsTg2JU1e9IvFCPbr32 tSH0CqL/BzGMIopHCdHUwn0DzgY9oX4HlmbOMPInYslbHmgXdY08Hmar19igdoWf 3oGGZbCnmnQwvEVlCWhjKMXSdHS5+VSZS8EO1RYx6UcvFoKaOibvOMG+4jufIA+c KULdd9iVVsykZlgCSfsBYM8S1qWaIE8uDDGDt+1YvPTtn7A1sxqd0/aEPHJPt7Ud Ub/ml6ycXH78d/Eh9ECgcEAT8uQQgBvMfArv7wnQmQ+eR8Qj19cNiYYh5MECEm8= =Pm51 -----END PGP SIGNATURE-----
sigh. You've been given advice on how to stop those detail files from being used. The detail module writes those files. Go look at the module config to see what its doing and how it works. If you don't want the detail files to be written, comment out the call to the detail module. Read the docs. If you want all stiff to be syslog'd then the detail file isn't related. Read the linelog docs and configure as required and call where needed alan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thank you for your advice. I've read: http://networkradius.com/doc/FreeRADIUS%20Technical%20Guide.pdf as well as http://wiki.freeradius.org/config/Configuration-files Neither of those places seem to even mention how the accounting {} is configured. For anyone else for future reference, I did find a mailing-list message with enough information that I was able to divine how to configure the various pieces: http://lists.freeradius.org/pipermail/freeradius-users/2011-May/053782.html On 05/04/2015 02:29 PM, Alan Buxey wrote:
sigh. You've been given advice on how to stop those detail files from being used. The detail module writes those files. Go look at the module config to see what its doing and how it works.
If you don't want the detail files to be written, comment out the call to the detail module. Read the docs.
If you want all stiff to be syslog'd then the detail file isn't related. Read the linelog docs and configure as required and call where needed
alan
- -- Munroe Sollog LTS - Network Analyst x85002 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJVR7vVAAoJEPbbZiWCKDVC28cH/1CYfMmH3sMBO1pwFJPrvF+d yYToEwqCblXaEDYrg23hgPc0m7tP4IrS9OQX4eFQt73eFEipwpfNtVvaWmkcFkCA 3mtIqpYqq+cn9/zjdgKcYzHNDINEgQSc3P+LmxX3VPBWKTpZ3T1TPHW0ier+cmvU 4FUm4M64yi6SWVGjFRN2ace6GzviGp6Md+k3M6s7GHtf83el93mS95Q7SU3LbGfN 7cHLvChayEMO38U68l9JwEJoP1rT+VZkh8TKH6HRUdO2sOxjuWGDDnPM6rfQTS8h kKuBRYBu8PfViMZus/RBfFurKBw9np8fUblPW3dlTPP6xOGU7BrGy8KG7/y8gOA= =BrN1 -----END PGP SIGNATURE-----
On May 4, 2015, at 2:35 PM, Munroe Sollog <mus3@lehigh.edu> wrote:
I've read: http://networkradius.com/doc/FreeRADIUS%20Technical%20Guide.pdf as well as http://wiki.freeradius.org/config/Configuration-files
Neither of those places seem to even mention how the accounting {} is configured.
That isn't true. The technical guide describes what accounting is, and how it's configured in the server. The comments in the "default" virtual server also describe what the "accounting" section does, and how it's used. It DOES NOT give you explicit instructions on how to configure your exact situation. It requires you to put a little thought into it yourself.
For anyone else for future reference, I did find a mailing-list message with enough information that I was able to divine how to configure the various pieces:
http://lists.freeradius.org/pipermail/freeradius-users/2011-May/053782.html
Which describes how to use the "linelog" module in the "accounting" section. If that's what you wanted, you should have asked *that* question, instead of a question about the "detail" files. Quite frankly, it's offensive to ask a bad question, and then get upset about the answers. If you're going to complain to the people who help you for free, I suggest buying a commercial server. Alan DeKok.
On May 4, 2015, at 2:18 PM, Munroe Sollog <mus3@lehigh.edu> wrote:
It would seem you're correct, however, how I want the 'detail' logs to go to syslog, so I'm not sure commenting out 'detail' will solve my problem.
The "detail" module logs to "detail" files. That's what the documentation says. Does it say that the "detail" module logs to syslog? No? Then it doesn't log to syslog. Alan DeKok.
participants (3)
-
Alan Buxey -
Alan DeKok -
Munroe Sollog