Skip Menu |

This queue is for tickets about the Logfile-Radius CPAN distribution.

Report information
The Basics
Id: 8302
Status: resolved
Priority: 0/
Queue: Logfile-Radius

People
Owner: Nobody in particular
Requestors: khurtwilliams [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Logfile::Radius give not index found on RADIUS file
I am attemtping to generate a report using the Logfile::Radius modules. The RADIUS log is in CSV format with the following fields. Date,Time,User-Name,Group-Name,Calling-Station-Id,Acct-Status-Type,Acct-Session-Id,Acct-Session-Time,Service-Type,Framed-Protocol,Acct-Input-Octets,Acct-Output-Octets,Acct-Input-Packets,Acct-Output-Packets,Framed-IP-Address,NAS-Port,NAS-IP-Address,Acct-Terminate-Cause,Login-IP-Host,Connect-Info,Tunnel-Client-Endpoint I get the following error: No index for Host at ./radius.pl line 20 when I run the following script. use strict; use Logfile::Radius; use Getopt::Long; my $log; my $options = { log => \$log }; GetOptions( $options, "log=s" ); die() if ( !defined($log) ); my $logfile = eval { new Logfile::Radius( File => $log, Group => [ 'Framed-IP-Address','User-Name', 'NAS-Port', 'Acct-Delay-Time', 'Acct-Session-Id', 'Acct-Authentic', 'NAS-Identifier', 'NAS-IP-Address', 'Framed-IP-Address', 'Acct-Status-Type' ] ); } or die($!); $logfile->report( Group => 'Host', Sort => 'Records', Top => 10 ); I traced the error back to line 126 of Logfile/Base.pm
Download 11-08-2004
application/octet-stream 502.6k

Message body not shown because it is not plain text.

From: Paul Gampe <pgampe [...] redhat.com>
To: bug-Logfile-Radius [...] rt.cpan.org
Subject: Re: [cpan #8302] Logfile::Radius give not index found on RADIUS file
Date: Tue, 9 Nov 2004 10:10:08 +1000
RT-Send-Cc:
You would need to include 'Host' in the Group parameter on the call to new() to be able to group by it later. Also I'm not sure the module will work with csv formated records. Paul On Tue, 9 Nov 2004 07:57, Guest via RT wrote: Show quoted text
> This message about Logfile-Radius was sent to you by guest <> via > rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=8302 > > > I am attemtping to generate a report using the Logfile::Radius modules. > The RADIUS log is in CSV format with the following fields. > Date,Time,User-Name,Group-Name,Calling-Station-Id,Acct-Status-Type,Acct-Ses >sion-Id,Acct-Session-Time,Service-Type,Framed-Protocol,Acct-Input-Octets,Acc >t-Output-Octets,Acct-Input-Packets,Acct-Output-Packets,Framed-IP-Address,NAS >-Port,NAS-IP-Address,Acct-Terminate-Cause,Login-IP-Host,Connect-Info,Tunnel- >Client-Endpoint > > I get the following error: > > No index for Host > at ./radius.pl line 20 > > when I run the following script. > > use strict; > use Logfile::Radius; > use Getopt::Long; > > my $log; > my $options = { log => \$log }; > > GetOptions( $options, "log=s" ); > > die() if ( !defined($log) ); > > my $logfile = eval { > new Logfile::Radius( > File => $log, > Group => [ 'Framed-IP-Address','User-Name', 'NAS-Port', > 'Acct-Delay-Time', 'Acct-Session-Id', 'Acct-Authentic', 'NAS-Identifier', > 'NAS-IP-Address', 'Framed-IP-Address', 'Acct-Status-Type' ] ); > } or die($!); > > $logfile->report( > Group => 'Host', > Sort => 'Records', > Top => 10 > ); > > > I traced the error back to line 126 of Logfile/Base.pm