{"id":30239171,"url":"https://github.com/rypi-dev/logger-server","last_synced_at":"2025-08-15T03:38:42.354Z","repository":{"id":308774441,"uuid":"1032923872","full_name":"rypi-dev/logger-server","owner":"rypi-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-07T19:19:39.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T21:19:40.930Z","etag":null,"topics":["api","api-server","fluent-bit","golang","log","logger","logger-server","rypi","rypi-dev","server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rypi-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-06T03:34:15.000Z","updated_at":"2025-08-07T19:19:43.000Z","dependencies_parsed_at":"2025-08-07T21:31:05.242Z","dependency_job_id":null,"html_url":"https://github.com/rypi-dev/logger-server","commit_stats":null,"previous_names":["rypi-dev/logger-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rypi-dev/logger-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rypi-dev%2Flogger-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rypi-dev%2Flogger-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rypi-dev%2Flogger-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rypi-dev%2Flogger-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rypi-dev","download_url":"https://codeload.github.com/rypi-dev/logger-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rypi-dev%2Flogger-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270519142,"owners_count":24599231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-server","fluent-bit","golang","log","logger","logger-server","rypi","rypi-dev","server"],"created_at":"2025-08-15T03:38:38.419Z","updated_at":"2025-08-15T03:38:42.336Z","avatar_url":"https://github.com/rypi-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 logger-server\n\n\u003e A lightweight, fast, and extensible logging server built in Go, designed to collect, store, and query your logs efficiently. Works seamlessly with Fluent Bit to forward logs via HTTP.\n\n---\n\n## 🚀 Features\n\n- 🔥 High-performance logging backend in Go  \n- 🌐 HTTP API for log ingestion and querying  \n- 🧩 Context-aware logs with JSON support  \n- 🛡️ API key authentication support (planned)  \n- 📦 Fluent Bit integration out of the box  \n- ⚙️ Pagination, filtering by log level, and timestamp support  \n- 🧪 Fully tested with coverage reports  \n- 🐳 Ready for Docker deployment  \n\n---\n\n## 📚 Table of Contents\n\n- [Getting Started](#getting-started)  \n- [Installation](#installation)  \n- [Configuration](#⚙️-configuration)  \n- [Usage](#🏃-usage)  \n- [API Reference](#📖-api-reference)  \n- [Testing](#🧪-testing)  \n- [License](#📄-license)  \n\n---\n\n## Getting Started\n\n### Prerequisites\n\nMake sure you have:\n\n- Go 1.20+ installed 🐹  \n- Fluent Bit installed and configured 🐦  \n- (Optional) Docker installed if you want to run with containers 🐳  \n\n### Installation\n\nClone the repo:\n\n```bash\ngit clone https://github.com/rypi-dev/logger-server.git\ncd logger-server\n```\n\nInstall dependencies and build:\n```bash\ngo mod download\ngo build -o logger-server cmd/main.go\n```\n\nRun the server:\n```bash\n./logger-server\n```\n\nBy default, it listens on port 8080 for incoming logs.\n\n### ⚙️ Configuration\n\nFluent Bit Integration\nFluent Bit is configured to forward logs as JSON via HTTP to the logger-server.\n\nSample Fluent Bit config snippet:\n\n```ini\n[INPUT]\n    Name   http\n    Listen 0.0.0.0\n    Port   8888\n    Format json\n    Tag    incoming.log\n\n[FILTER]\n    Name   lua\n    Match  incoming.*\n    script lua/inject_header.lua\n    call   add_log_level_header\n\n[FILTER]\n    Name   modify\n    Match  incoming.*\n    Add    stack multi-lang\n\n[OUTPUT]\n    Name   http\n    Match  incoming.*\n    Host   logger-server\n    Port   8080\n    URI    /log\n    Format json\n    Header Content-Type application/json\n    Header X-Log-Level ${X-Log-Level}\n```\n\n## 🏃 Usage\n\n### Sending logs\nSend JSON logs to http://localhost:8080/log with the following payload:\n\n```json\n{\n  \"level\": \"INFO\",\n  \"message\": \"User logged in\",\n  \"timestamp\": \"2025-08-06T14:12:00Z\",\n  \"context\": {\n    \"user_id\": 42\n  }\n}\n```\n\n### Querying logs\nYou can query logs with pagination and filtering by log level:\n\n```pgsql\nGET /logs?page=1\u0026limit=50\u0026level=ERROR\n```\n\n## 📖 API Reference\n\n-   POST /log — Ingest a new log entry\n\n-   GET /logs — Query logs with filters (page, limit, level)\n\nRequest and response formats follow JSON standards.\n\n\n## 🧪 Testing\n\nRun all tests and check coverage:\n\n```bash\nmake ci\n```\n\nGenerate HTML coverage report:\n\n```bash\nmake report\n```\n\nOpen `coverage.html` in your browser to visualize test coverage.\n\n## 📄 License\n\nThis project is licensed under the MIT License — see the LICENSE file for details.\n\n## 💬 Contact\n\nFor any questions or suggestions, open an issue or reach out directly on GitHub!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frypi-dev%2Flogger-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frypi-dev%2Flogger-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frypi-dev%2Flogger-server/lists"}