Skip to content

Instantly share code, notes, and snippets.

@andrewroth
Created February 8, 2012 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewroth/1763644 to your computer and use it in GitHub Desktop.
Save andrewroth/1763644 to your computer and use it in GitHub Desktop.
/var/www/creativecrash/current/log/login_stats
January Logins:
(9..31).each do |i| j = "%02d" % i; cmd = "egrep '\\[#{j}\/Jan\/2012.* \"POST /session' access-secure.log* | wc -l"; result = `#{cmd}`; puts "#{i}: #{result}" end
9: 765
10: 2597
11: 2148
12: 1986
13: 1541
14: 1077
15: 1186
16: 1551
17: 2296
18: 1979
19: 2062
20: 1715
21: 1376
22: 1431
23: 1960
24: 1949
25: 2080
26: 1888
27: 1738
28: 1386
29: 1276
30: 2046
31: 2323
February Logins:
(0..29).each do |i| j = "%02d" % i; cmd = "egrep '\\[#{j}\/Feb\/2012.* \"POST /session' access-secure.log* | wc -l"; result = `#{cmd}`; puts "#{i}: #{result}" end
1: 2355
2: 2454
3: 1949
4: 1446
5: 1573
6: 2337
7: 1983
=====================
January Create Accounts:
(9..31).each do |i| j = "%02d" % i; cmd = "egrep '\\[#{j}\/Jan\/2012.* \"POST /users ' access-secure.log* | wc -l"; result = `#{cmd}`; puts "#{i}: #{result}" end
9: 136
10: 372
11: 405
12: 429
13: 347
14: 292
15: 263
16: 406
17: 383
18: 447
19: 377
20: 318
21: 309
22: 292
23: 401
24: 385
25: 371
26: 408
27: 386
28: 320
29: 284
30: 445
31: 464
February Create Accounts:
(9..31).each do |i| j = "%02d" % i; cmd = "egrep '\\[#{j}\/Jan\/2012.* \"POST /users ' access-secure.log* | wc -l"; result = `#{cmd}`; puts "#{i}: #{result}" end
1: 509
2: 468
3: 370
4: 343
5: 308
6: 458
7: 393
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment