Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
python-logfmter
Using the stdlib logging module and without changing a single logging call, logfmter supports global (first and third party) logfmt structured logging.
-
GoAccess
GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
Nice work! I've written something similar based on regexes:
https://github.com/mihaigalos/pipeview
Agree with logfmt. I wrote the logfmter python library: https://github.com/jteppinette/python-logfmter. You can quickly have all of your logs (including 3rd party) converted to this style.
You can use logfmt with Serilog on dotnet too:
https://github.com/serilog-contrib/Serilog.Logfmt
As mentioned in a sibling comment, https://goaccess.io is probably best for simple analytics on log files.
If you want to write more complicated queries, lnav exposes log data through SQLite vtables[1]. So, you can do a SQL query and get a simple bar chart visualization.
[1] - https://docs.lnav.org/en/latest/sqlext.html#sqlite-interface
Related posts
- A quick and dirty tool for log analysis and visualization locally?
- FOSS, cloud native, log storage and query engine build with Apache Arrow & Parquet, written in Rust and React.
- Show HN: How did I live without Pipe Watch?
- Ask HN: How do you develop internal tools for your organization?
- Weird tracking code in Phantom?