Don't tell me why, but I've developed an instinct that recognizes solutions that use Clickhouse under the hood :)
https://github.com/WillieBeek/txtlog/blob/master/txtlog/data...
edit: the connection to ClickHouse uses the MySQL driver, this is actually a very nice CH feature, you can connect to CH using the regular mysql or postgresql client tools. The PHP MySQL PDO driver works seamlessly. One catch, using advanced features like CH query timeouts requires a CTE function, check the model/txtlogrowdb.php file if you're interested.