Skip to content

Instantly share code, notes, and snippets.

@seamustuohy
Created November 13, 2015 13:47
Show Gist options
  • Select an option

  • Save seamustuohy/1714e0f1e9f8728eddb1 to your computer and use it in GitHub Desktop.

Select an option

Save seamustuohy/1714e0f1e9f8728eddb1 to your computer and use it in GitHub Desktop.
Tor Metrics - Detector.py outputs
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 7 columns, instead of 1 in line 1.
date,country,event_censor,event_spike,max_user_range,min_user_range,actual_users
...
2015-09-26,a1,0.0,0.0,51.2497141155,6.82855453262,23.0
2015-09-27,a1,0.0,0.0,53.2274468057,6.69522632151,20.0
2015-09-28,a1,0.0,0.0,56.6554968933,7.54150389046,21.0
2015-09-29,a1,0.0,0.0,48.1817815021,7.04198989016,22.0
2015-09-30,a1,0.0,0.0,49.9360227264,6.75786665075,24.0
2015-10-01,a1,0.0,0.0,53.0950123642,6.45424038412,21.0
2015-10-02,a1,0.0,0.0,54.4158401683,7.77512788934,21.0
2015-10-03,a1,0.0,0.0,49.9789275227,6.86570641597,22.0
2015-10-04,a1,0.0,0.0,51.1406328145,5.18736815444,23.0
2015-10-05,a1,0.0,0.0,46.6768163499,5.06867315364,22.0
2015-10-06,a1,0.0,0.0,46.4883298256,6.696405088,21.0
2015-10-07,a1,0.0,0.0,48.973180897,7.45439623784,18.0
2015-10-08,a1,0.0,0.0,43.6754691775,5.39195259802,20.0
2015-10-09,a1,0.0,0.0,44.7521899191,5.41792852893,20.0
2015-10-10,a1,0.0,0.0,47.7267664454,6.02463749318,19.0
2015-10-11,a1,0.0,0.0,49.4367949239,6.69904167514,21.0
2015-10-12,a1,0.0,0.0,46.8424016201,5.59200646008,23.0
2015-10-13,a1,0.0,0.0,46.1149865205,4.77638424976,23.0
2015-10-15,a1,0.0,0.0,41.954646662,5.51775090615,21.0
2015-10-16,a1,0.0,0.0,42.9115119978,5.25428020721,20.0
2015-10-17,a1,0.0,0.0,42.1393337972,4.11473827583,22.0
2015-10-18,a1,0.0,0.0,46.4869411053,4.87726392588,15.0
2015-10-19,a1,0.0,0.0,52.6295525654,6.22097348203,9.0
2015-10-20,a1,0.0,0.0,48.7502000514,6.87855370314,7.0
2015-10-22,a1,0.0,0.0,46.0666790988,4.84796672758,8.0
2015-10-23,a1,0.0,0.0,44.4778933237,4.89465603309,10.0
2015-10-24,a1,0.0,0.0,46.6455376981,6.05085355413,20.0
2015-10-25,a1,0.0,0.0,35.2637881915,2.62503547262,17.0
2015-10-26,a1,0.0,1.0,24.7163568482,0.0,45.0
...
=======================
Automatic Anomoly Detection Report for 2015-10-26
=======================
=== Possible Censorship Events ===
We detected 1 potential censorship events in the Netherlands:
2015-10-26: 39551 was 11482 users lower than the daily minimum boundry of 51033
=== Possible Spike Events ===
We detected 1 potential spike events in a1:
2015-10-26: 45 was 20 users higher than the daily maximum boundry of 24
We detected 1 potential spike events in Aruba:
2015-10-26: 264 was 38 users higher than the daily maximum boundry of 225
We detected 1 potential spike events in China:
2015-10-26: 1667 was 610 users higher than the daily maximum boundry of 1056
We detected 1 potential spike events in eu:
2015-10-26: 230 was 189 users higher than the daily maximum boundry of 40
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 4 columns, instead of 1 in line 1.
date,country,minusers,maxusers
...
2015-09-26,a1,6.82855453262,51.2497141155
2015-09-27,a1,6.69522632151,53.2274468057
2015-09-28,a1,7.54150389046,56.6554968933
2015-09-29,a1,7.04198989016,48.1817815021
2015-09-30,a1,6.75786665075,49.9360227264
2015-10-01,a1,6.45424038412,53.0950123642
2015-10-02,a1,7.77512788934,54.4158401683
2015-10-03,a1,6.86570641597,49.9789275227
2015-10-04,a1,5.18736815444,51.1406328145
2015-10-05,a1,5.06867315364,46.6768163499
2015-10-06,a1,6.696405088,46.4883298256
2015-10-07,a1,7.45439623784,48.973180897
2015-10-08,a1,5.39195259802,43.6754691775
2015-10-09,a1,5.41792852893,44.7521899191
2015-10-10,a1,6.02463749318,47.7267664454
2015-10-11,a1,6.69904167514,49.4367949239
2015-10-12,a1,5.59200646008,46.8424016201
2015-10-13,a1,4.77638424976,46.1149865205
2015-10-15,a1,5.51775090615,41.954646662
2015-10-16,a1,5.25428020721,42.9115119978
2015-10-17,a1,4.11473827583,42.1393337972
2015-10-18,a1,4.87726392588,46.4869411053
2015-10-19,a1,6.22097348203,52.6295525654
2015-10-20,a1,6.87855370314,48.7502000514
2015-10-22,a1,4.84796672758,46.0666790988
2015-10-23,a1,4.89465603309,44.4778933237
2015-10-24,a1,6.05085355413,46.6455376981
2015-10-25,a1,2.62503547262,35.2637881915
2015-10-26,a1,0.0,24.7163568482
...
=======================
Automatic Censorship Report for 2015-10-26
=======================
We detected 1 potential censorship events in the Netherlands (users: 39551, upscores: 0):
https://metrics.torproject.org/users.html?graph=userstats-relay-country&start=2015-07-29&end=2015-10-26&country=nl&events=on#userstats-relay-country
We detected an unusual spike of Tor users in China (1 upscores, 1667 users):
https://metrics.torproject.org/users.html?graph=userstats-relay-country&start=2015-07-29&end=2015-10-26&country=cn&events=on#userstats-relay-country
We detected an unusual spike of Tor users in Aruba (1 upscores, 264 users):
https://metrics.torproject.org/users.html?graph=userstats-relay-country&start=2015-07-29&end=2015-10-26&country=aw&events=on#userstats-relay-country
We detected an unusual spike of Tor users in eu (1 upscores, 230 users):
https://metrics.torproject.org/users.html?graph=userstats-relay-country&start=2015-07-29&end=2015-10-26&country=eu&events=on#userstats-relay-country
We detected an unusual spike of Tor users in a1 (1 upscores, 45 users):
https://metrics.torproject.org/users.html?graph=userstats-relay-country&start=2015-07-29&end=2015-10-26&country=a1&events=on#userstats-relay-country
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment