{"id":41585467,"url":"https://github.com/ibero-data/glintlog","last_synced_at":"2026-02-12T17:00:54.039Z","repository":{"id":334350916,"uuid":"1135612353","full_name":"ibero-data/glintlog","owner":"ibero-data","description":"Self-Hosted Observability Platform -  Build Glintlog, a self-hosted observability platform that provides a 90% cheaper alternative to other tools. It uses DuckDB for storage (140x compression vs Elasticsearch) and accepts logs via OpenTelemetry Protocol (OTLP)","archived":false,"fork":false,"pushed_at":"2026-01-30T21:05:54.000Z","size":419,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T13:24:36.978Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ibero-data.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-16T10:46:59.000Z","updated_at":"2026-01-30T21:03:48.000Z","dependencies_parsed_at":"2026-01-24T18:02:03.075Z","dependency_job_id":null,"html_url":"https://github.com/ibero-data/glintlog","commit_stats":null,"previous_names":["ibero-data/glintlog"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/ibero-data/glintlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fglintlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fglintlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fglintlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fglintlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibero-data","download_url":"https://codeload.github.com/ibero-data/glintlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibero-data%2Fglintlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29373837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-24T09:03:05.387Z","updated_at":"2026-02-12T17:00:54.028Z","avatar_url":"https://github.com/ibero-data.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Glintlog\n\nSelf-hosted log aggregation. Single binary. No dependencies.\n\n## Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/ibero-data/glintlog/main/scripts/install.sh | bash\n```\n\n## Run\n\n```bash\nglintlog\n```\n\nOpen http://localhost:8080 - Go through the initial setup, on onboarding page.\n\n## Ports\n\n| Port | Protocol | Purpose |\n|------|----------|---------|\n| 8080 | HTTP | Web UI + REST API |\n| 4317 | gRPC | OTLP gRPC ingestion |\n| 4318 | HTTP | OTLP HTTP ingestion |\n\n## Sending Logs\n\nConfigure your OpenTelemetry SDK to send logs to:\n- **gRPC**: `localhost:4317`\n- **HTTP**: `http://localhost:4318/v1/logs`\n\nExample with curl:\n```bash\ncurl -X POST http://localhost:4318/v1/logs \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"resourceLogs\": [{\n      \"resource\": {\n        \"attributes\": [\n          {\"key\": \"service.name\", \"value\": {\"stringValue\": \"my-app\"}}\n        ]\n      },\n      \"scopeLogs\": [{\n        \"logRecords\": [{\n          \"timeUnixNano\": \"'$(date +%s)000000000'\",\n          \"severityNumber\": 9,\n          \"severityText\": \"INFO\",\n          \"body\": {\"stringValue\": \"Hello from my app!\"}\n        }]\n      }]\n    }]\n  }'\n```\n\n\n## API Reference\n\nAll API endpoints (except `/health` and auth) require a Bearer token.\n\n### Authentication\n\n```bash\n# Login - get your tokens\ncurl -X POST http://localhost:8080/api/v1/auth/login \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"username\":\"admin\",\"password\":\"\u003cyour-password\u003e\"}'\n\n# Use the token\nTOKEN=\"eyJhbG...\"\ncurl http://localhost:8080/api/v1/logs \\\n  -H \"Authorization: Bearer $TOKEN\"\n```\n\n### Endpoints\n\n| Endpoint | Method | Auth | Description |\n|----------|--------|------|-------------|\n| `/health` | GET | No | Health check |\n| `/api/v1/auth/login` | POST | No | Login, get tokens |\n| `/api/v1/auth/refresh` | POST | No | Refresh access token |\n| `/api/v1/auth/logout` | POST | Yes | Logout, invalidate session |\n| `/api/v1/auth/me` | GET | Yes | Get current user |\n| `/api/v1/logs` | GET | Yes | Query logs |\n| `/api/v1/logs/tail` | GET | Yes | Live tail (SSE) |\n| `/api/v1/services` | GET | Yes | List services |\n| `/api/v1/stats` | GET | Yes | Get statistics |\n| `/api/v1/admin/metrics` | GET | Admin | System metrics (CPU, RAM, etc.) |\n| `/api/v1/admin/storage` | GET | Admin | Database info |\n| `/api/v1/admin/logs` | DELETE | Admin | Delete logs by date range |\n\n### Query Parameters for /api/v1/logs\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| `start` | string | Start timestamp (RFC3339) |\n| `end` | string | End timestamp (RFC3339) |\n| `service` | string | Filter by service name |\n| `severity` | string | Filter by severity (DEBUG, INFO, WARN, ERROR, FATAL) |\n| `search` | string | Full-text search on body |\n| `limit` | int | Max results (default: 100, max: 10000) |\n| `offset` | int | Pagination offset |\n\n## Troubleshooting\n\n### \"database locked\" error\n\nAnother Glintlog instance is running. Kill it first:\n```bash\npkill glintlog\n```\n\n### Forgot admin password\n\nReset everything and get new credentials:\n```bash\npkill glintlog\nrm -rf ./data\nglintlog\n```\n\n### Port already in use\n\nFind what's using the port:\n```bash\nlsof -i:8080\n```\n\nKill it or change Glintlog's port:\n```bash\nGLINTLOG_HTTP_PORT=9090 glintlog\n```\n\n### \"invalid authorization header\" error\n\nYou need to login first and use the token:\n```bash\nTOKEN=$(curl -s -X POST http://localhost:8080/api/v1/auth/login \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"email\":\"email@email.com\",\"password\":\"YOUR_PASSWORD\"}' | jq -r '.tokens.access_token')\n\ncurl http://localhost:8080/api/v1/logs -H \"Authorization: Bearer $TOKEN\"\n```\n\n## Building from Source\n\nRequires Go 1.21+ and Bun.\n\n```bash\ngit clone https://github.com/ibero-data/glintlog.git\ncd glintlog\nmake build\n./glintlog\n```\n\n## License\n\nGNU General Public License v3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibero-data%2Fglintlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibero-data%2Fglintlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibero-data%2Fglintlog/lists"}