Using the Accounting Log File
RADIUS accounting events are recorded in the accounting log file. Accounting events include START messages, which indicate the beginning of a connection; STOP messages, which indicate the termination of a connection; and INTERIM messages, which indicate a connection is ongoing.
Accounting log files use comma-delimited, ASCII format, and are intended for import into a spreadsheet or database program. Accounting log files are located in the RADIUS database directory area by default, although you can specify an alternate destination directory in the [Configuration] section of the account.ini file. Accounting log files are named
yyyymmdd.ACT, whereyyyyis the four-digit year,mmis the month, andddis the day on which the log file was created.Accounting log files are kept for the number of days specified in the Settings tab of the Reports panel, and are deleted after that to conserve disk space.
The current log file can be opened while Steel-Belted Radius Carrier is running.
Accounting Log File Format
The first six fields in every accounting log entry are provided by Steel-Belted Radius Carrier for your convenience in reading and sorting the file:
- Date—The date when the event occurred
- Time—The time when the event occurred
- RAS-Client—The name or IP address of the RADIUS client sending the accounting record
- Record-Type—START, STOP, INTERIM, ON, or OFF, the standard RADIUS accounting packet types
- Full-Name—The fully distinguished name of the user, based on the authentication performed by the RADIUS server
- Auth-Type—A number that indicates the class of authentication performed:
0—Native10—SecurID User11—SecurID Prefix12—SecurID Suffix13—Solaris User14—Solaris Group100—Tunnel User200—External Database(other)—ProxyBy default, the standard RADIUS attributes follow the Auth-Type identifier. See Standard RADIUS Accounting Attributes691.
You can include vendor-specific attributes if the device sending the accounting packet supports them. For more information, see Vendor-Specific Attributes27.
You can edit the account.ini initialization file to add, remove or reorder the standard RADIUS or vendor-specific attributes that are logged. For information on account.ini, refer to the Steel-Belted Radius Carrier 7.2 Reference Guide.
First Line Headings
The first line of the accounting log file is a file header that lists the attributes that have been enabled for logging in the order in which they are logged. The following example of a first line shows standard RADIUS headings in bold, and vendor-specific headings in regular text:
"Date","Time", "RAS-Client", "Record-Type", "Full-Name", "Auth-Type","User-Name", "NAS-Port", "Acct-Status-Type", "Acct-Delay-Time", "Acct-Input-Octets", "Acct-Output-Octets", "Acct-Session-Id", "Acct-Authentic","Acct-Session-Time", "Acct-Input-Packets", "Acct-Output-Packets", "Acct-Termination-Cause", "Acct-Multi-Session-Id", "Acct-Link-Count","Acc-Err-Message","Nautica-Acct-SessionId","Nautica-Acct-Direction", "Nautica-Acct-CauseProtocol","Nautica-Acct-CauseSource", "Telebit-Accounting-Info","Last-Number-Dialed-Out", "Last-Number-Dialed-In-DNIS","Last-Callers-Number-ANI", "Channel","Event-Id","Event-Date-Time", "Call-Start-Date-Time","Call-End-Date-Time", "Default-DTE-Data-Rate","Initial-Rx-Link-Data-Rate", "Final-Rx-Link-Data-Rate","Initial-Tx-Link-Data-Rate", "Final-Tx-Link-Data-Rate","Sync-Async-Mode", "Originate-Answer-Mode","Modulation-Type", "Equalization-Type","Fallback-Enabled","Characters-Sent", "Characters-Received","Blocks-Sent","Blocks-Received", "Blocks-Resent","Retrains-Requested","Retrains-Granted", "Line-Reversals","Number-Of-Characters-Lost", "Number-of-Blers","Number-of-Link-Timeouts", "Number-of-Fallbacks","Number-of-Upshifts", "Number-of-Link-NAKs","Back-Channel-Data-Rate", "Simplified-MNP-Levels","Simplified-V42bis-Usage", "PW_VPN_ID"Comma Placeholders
Steel-Belted Radius Carrier writes accounting events to the accounting log file, If an event recorded in the accounting log file does not have data for every attribute, a comma placeholder marks the empty entry, so that all entries remain correctly aligned with their headings. For example, based on the first line of headings described above, the following is a valid accounting log entry, in which the value of the Acct-Status-Type attribute is 7:
"12/23/1997","12:11:55","RRAS","Accounting-On",,,,,7,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,Standard RADIUS Accounting Attributes
Table 124 lists the standard RADIUS accounting attributes defined in RFC 2866, RADIUS Accounting.