greymore57
MIS
I apologise for asking this question coz I know with enough time I could solve it myself, but I need this project sorted very soon.
The problem I have is to analyse a radius log file, 1 particular field is causing me a lot of grief. The log file is a CSV file, I am reading the file into an array, the field I am interested in is the seession-time. The field is element 49 in the array and is 4 bytes in length, the 4th byte is the no of seconds, the 3rd byte is the no of seconds * 256 the 2nd byte is the no of seconds * 65536 etc... the field has the following format:
0x00 0x00 0x06 0x2e
The script I have written seems to have a problem reading the 50th field; element 49 in the array.
My questions are
1. Does anybody have a snippet of code that will point me in the right direction.
2. Has anybody else written a script to analyse a Radius log file.
I can supply some "sanitised" data files if anybody is willing to collabarate on writing a log analysis script for this type of log file.
If this query is off topic I am apologise, and request a gentle prod into the correct forum.
TIA
Graham
The problem I have is to analyse a radius log file, 1 particular field is causing me a lot of grief. The log file is a CSV file, I am reading the file into an array, the field I am interested in is the seession-time. The field is element 49 in the array and is 4 bytes in length, the 4th byte is the no of seconds, the 3rd byte is the no of seconds * 256 the 2nd byte is the no of seconds * 65536 etc... the field has the following format:
0x00 0x00 0x06 0x2e
The script I have written seems to have a problem reading the 50th field; element 49 in the array.
My questions are
1. Does anybody have a snippet of code that will point me in the right direction.
2. Has anybody else written a script to analyse a Radius log file.
I can supply some "sanitised" data files if anybody is willing to collabarate on writing a log analysis script for this type of log file.
If this query is off topic I am apologise, and request a gentle prod into the correct forum.
TIA
Graham