How to graph requests per second from web log file using R -
i'm trying graph request per second using our apache log files. i've massaged log down simple listing of timestamps, 1 entry per request.
04:02:28
04:02:28
04:02:28
04:02:29
...
i can't quite figure out how r recognize time , aggregate per second. help
it seems me since have time-stamps @ one-second granularity, need do frequency-count of time-stamps , plot frequencies in original time-order. timestamps
array of time-stamps, do:
plot(c( table( timestamps ) ) )
i'm assuming want plot log-messages in each one-second interval on period. i'm assuming hms time-stamps within 1 day. note table
function produces frequency-count of argument.
Comments
Post a Comment