https://github.com/Nevin1901/erlog Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} Nevin1901 / erlog Public * Notifications * Fork 0 * Star 9 Minimalist log collector License View license 9 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights Nevin1901/erlog This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/N] Use Git or checkout with SVN using the web URL. [gh repo clone Nevin1] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @Nevin1901 Nevin1901 update readme ... 4c44430 Feb 11, 2023 update readme 4c44430 Git stats * 44 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time asynclist config models netlogger queue ui wiki .gitignore Dockerfile LICENSE README.md docker-compose.yml erlog.net go.mod go.sum main.go View code [ ] Erlog Features Setup Docker: From Binaries Sending Logs Querying Logs Is it Fast? How Can I Scale it? Otel Support Todo README.md Erlog ErLog is a minimalist log collection service. You can either forward structured logs from existing log libraries (eg: zerolog or winston), or use the collector to forward structured logs from stdout or stderr (coming soon). Features * Simple log collection service which runs on a $4 vps * Works with your existing libraries Setup Docker: docker run -p 8080:8080 nevin1901/erlog:latest From Binaries Download binaries at releases and run ./erlog Sending Logs ErLog supports json formatted logs. To send logs to erlog, send a post request to localhost:8080 with whatever data you want to be saved. Example request body { "timestamp": "1675955819", "level": "debug", "service": "my_service", "key": "value", "data": { "another_key": "another value" } } Library specific examples coming soon Querying Logs The ErLog DB is literally just an sqlite file, so you can open it with any sqlite3 client. You can use any of sqlite3's JSON functions to query the data column in the er_log table. Example: sqlite> select COUNT(*) from er_logs where json_extract(data, "$.level") = "error"; 56 Is it Fast? No official benchmarks yet, but I can currently get around 9000 log insertions per second locally. It isn't a ton but it should be enough for most small scale projects. How Can I Scale it? I'm not sure of that now, but I'm developing a hosted version which auto scales based on your usage. If this sounds interesting to you, email me at me@nevin.cc and I'll set it up for you. Otel Support Right now I think otel is too much of a pain to use in small/medium sized projects. For the insane amount of adoption, I feel the implementation is still really bad. If otel becomes easier to use or enough people ask for otel support, I'll add support for it. Todo * make docs on using erlog with specific libraries * Add Discord invite link * Add events which fire when logs aren't as usual, or logs deviate from a norm * Rewrite in rust elixir (I really want to try out live view + the concurrency) * Otel support (maybe) * Not important: make a color system where each specific tag gets a specific color (eg: level=debug gets green or whatever color it gets, message= get a different one, but this is all on the fly (doesn't have elif and all that preconfigured colors) and prefferably stays the same after reloading the app so you can get used to the colors. Probably colordb or something like that About Minimalist log collector Resources Readme License View license Stars 9 stars Watchers 1 watching Forks 0 forks Releases No releases published Packages 0 No packages published Languages * Go 54.1% * TypeScript 37.3% * JavaScript 3.2% * HTML 2.7% * CSS 1.7% * Dockerfile 1.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.