from.:: Marcos Dione/StyXman's glob ::.
22 hours agoJavaScript
Monitoring Apache with SQL and Grafana
Apache access logs can be ingested into SQLite with regex parsing to enable Grafana-style metrics without high-cardinality TSDB systems.
For a long time I wanted to document something I have done many times in production systems but never explained clearly: using Django ORM as a standalone module to connect to an existing database. In my work I have often dealt with legacy systems where the only reliable source of truth was the database itself. In those situations, Django ORM became my Swiss army knife.
An attacker who can inject arbitrary SQL statements into an application might be able to cause an integer overflow resulting in read off the end of an array.