A repository to manage the logs produced by qbreader. Produces summary data of the following per week:
- The most popular sets
- The most active and number of distinct singleplayer users, by IP address
- The most popular (sub)categories and difficulties, across both singleplayer and multiplayer
- The most popular and the number of distinct queries to the database
- The most active and # of distinct multiplayer rooms, users, and usernames
Any files containing IP address should be hidden from this public repository by placing them in a raw.log
file or by appropriately modifying the .gitignore
file.
qbreader is hosted on Heroku with Logtail integration.
Specific types of logs are queried from Logtail using Grafana with the following SQL queries (see section below).
The values are saved in raw.log
(in the appropriate folder) and processed using the summarize.py
script.
SELECT message
FROM $table
WHERE
dt BETWEEN toDateTime64($from, 3)
AND toDateTime64($to, 3)
AND message LIKE 'at=info method=GET path="/api/packet%'
SELECT message
FROM $table
WHERE
dt BETWEEN toDateTime64($from, 3)
AND toDateTime64($to, 3)
AND (
message LIKE 'at=info method=GET path="/api/random-tossup%'
OR message LIKE 'at=info method=GET path="/api/random-bonus%'
)
SELECT message
FROM $table
WHERE
dt BETWEEN toDateTime64($from, 3)
AND toDateTime64($to, 3)
AND message LIKE 'at=info method=GET path="/api/query%'
SELECT message
FROM $table
WHERE
dt BETWEEN toDateTime64($from, 3)
AND toDateTime64($to, 3)
AND proc_id = 'web.1'
AND message LIKE 'Connection%'