Name: irods_connection_counter
Owner: iPlant Collaborative Open Source
Description: A user connection counter for irods
Created: 2015-06-24 16:35:16.0
Updated: 2015-06-24 16:50:51.0
Pushed: 2015-07-22 20:53:20.0
Size: 268
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project counts individual user connections from irods and outputs individual user file logs as well as a total connection count for each .log file.
parser.py <.log file or directory containing .log files>
–hours for connections by hour
-m for connections by minute
By default, the log will output connections by second
-i “name1,name2,name3” for users you want to ignore
-y
-t to generate a total aggregate file of all logs parsed
python parser.py . -o all -t –hours -i “joseph”
This will run the log parser on the current working directory. All .log files found have output generated in the “all” directory. We want the resolution to be in hours, and we want to ignore user “joseph”
The script will create an output folder for each individual .log file titled
The format for Jun 16 08:10:17 would be
20150616, 08:10:17
20150616, 08:10
20150616, 08
Depending on the time formatting options described above.