set up the linelog mod to create a CSV log
Hi, Running 3.0.4 on Centos 7.1, I've been trying to set up the linelog mod to create a CSV log. Based on what I read here: http://marc.info/?l=freeradius-users&m=133167783813402 http://lists.freeradius.org/pipermail/freeradius-users/2012-March/059283.htm... I added a header, and a stop/start accounting for Acct-Status-Type to the linelog file (attached). Restarted radiusd, but no linelog files are created. Radius is working, the detail file gets updated. The module seems to load when running radiusd -X : # Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog linelog { filename = "/var/log/radius/linelog" permissions = 384 format = "This is a log message for %{User-Name}" reference = "messages.%{%{Packet-Type}:-default}" } # Instantiating module "log_accounting" from file /etc/raddb/mods-enabled/linelog linelog log_accounting { filename = "/var/log/radius/linelog-accounting" permissions = 384 format = "" reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}" } What am I doing wrong? -- -נחשון פז-
What am I doing wrong?
Are you actually referring to log_accounting in the accounting section(s) in your virtual server? If not, then you should. When you run radiusd -X as root and do a request, is the file actually created? If not, see above. If yes, try to run radiusd -X as user 'radiusd' to see if there are any issues (such as SELinux) that might be interfering with the creation of the file. :-) Stefan Paetow Moonshot Industry & Research Liaison Coordinator t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG jisc.ac.uk Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800. Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.
yeap, that did it, thanks a million! On Tue, Jul 21, 2015 at 6:27 PM, Stefan Paetow <Stefan.Paetow@jisc.ac.uk> wrote:
What am I doing wrong?
Are you actually referring to log_accounting in the accounting section(s) in your virtual server? If not, then you should.
When you run radiusd -X as root and do a request, is the file actually created? If not, see above. If yes, try to run radiusd -X as user 'radiusd' to see if there are any issues (such as SELinux) that might be interfering with the creation of the file.
:-)
Stefan Paetow Moonshot Industry & Research Liaison Coordinator
t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG
jisc.ac.uk
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800. Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- -נחשון פז-
participants (2)
-
Nash.Paz -
Stefan Paetow