{"id":15325704,"url":"https://github.com/slowhigh/gogger","last_synced_at":"2026-02-14T06:31:24.806Z","repository":{"id":215264065,"uuid":"707468303","full_name":"slowhigh/gogger","owner":"slowhigh","description":"Distributed Logging","archived":false,"fork":false,"pushed_at":"2025-02-25T13:22:14.000Z","size":144,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T00:49:18.619Z","etag":null,"topics":["distributed-logging-system","go","golang","logging","memphis-dev","message-broker","nats"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slowhigh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-10-20T01:07:21.000Z","updated_at":"2025-02-25T13:22:18.000Z","dependencies_parsed_at":"2024-01-19T10:41:36.396Z","dependency_job_id":"c08dd427-209b-4be9-a4e7-507c3732f471","html_url":"https://github.com/slowhigh/gogger","commit_stats":{"total_commits":57,"total_committers":4,"mean_commits":14.25,"dds":"0.26315789473684215","last_synced_commit":"ad31df6885cb3fb2aa87f18090aa45b789dae4ad"},"previous_names":["slowhigh/gogger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slowhigh/gogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowhigh%2Fgogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowhigh%2Fgogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowhigh%2Fgogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowhigh%2Fgogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slowhigh","download_url":"https://codeload.github.com/slowhigh/gogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowhigh%2Fgogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29438762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T05:24:35.651Z","status":"ssl_error","status_checked_at":"2026-02-14T05:24:34.830Z","response_time":53,"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":["distributed-logging-system","go","golang","logging","memphis-dev","message-broker","nats"],"created_at":"2024-10-01T09:32:47.319Z","updated_at":"2026-02-14T06:31:24.802Z","avatar_url":"https://github.com/slowhigh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gogger (go + logger)\nDistributed Logging\n![image](https://github.com/user-attachments/assets/f916abde-07c8-44b2-aff3-015d1797288b)\n\n#### - producer server 📋\n[![Build Status](https://github.com/Slowhigh/gogger/actions/workflows/ci-producer.yml/badge.svg?branch=main)](https://github.com/features/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Slowhigh/gogger/producer)](https://goreportcard.com/report/github.com/Slowhigh/gogger/producer)\n\n#### - consumer server 📋\n[![Build Status](https://github.com/Slowhigh/gogger/actions/workflows/ci-consumer.yml/badge.svg?branch=main)](https://github.com/features/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Slowhigh/gogger/consumer)](https://goreportcard.com/report/github.com/Slowhigh/gogger/consumer)\n\n## Quick start 🚀\n#### 1. Deploy Memphis Broker\n```bash\n$ curl -s https://memphisdev.github.io/memphis-docker/docker-compose.yml -o docker-compose.yml \\\n\u0026\u0026 docker compose -f docker-compose.yml -p memphis up -d\n```\n\n#### 2. Deploy Postgres\n```bash\n$ docker run -d \\\n-p 5432:5432 \\\n-e POSTGRES_USER=gogger \\\n-e POSTGRES_PASSWORD=gogger1! \\\n-e POSTGRES_DB=gogger \\\n--name postgres postgres:alpine\n```\n\n#### 3. Run Consumer Server\n```bash\n$ cd ./consumer/ \u0026\u0026 go run ./cmd/server/\n\n# 2024/01/28 23:13:12 INFO start consuming messages\n```\n\n#### 4. Run Producer Server (new terminal)\n```bash\n$ cd ./producer/ \u0026\u0026 go run ./cmd/server/\n\n# [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.\n# \n# [GIN-debug] [WARNING] Running in \"debug\" mode. Switch to \"release\" mode in production.\n#  - using env:   export GIN_MODE=release\n#  - using code:  gin.SetMode(gin.ReleaseMode)\n# \n# [GIN-debug] POST   /log/access               --\u003e github.com/Slowhigh/gogger/producer/infra/router.NewRouter.func1 (3 handlers)\n# [GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\n# Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details. \n# [GIN-debug] Listening and serving HTTP on :5000\n```\n\n#### 5. Send the HTTP message to the Producer (new terminal)\n```bash\n$ curl --location 'http://localhost:5000/log/access' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"timestamp\": \"2006-01-02T15:04:05Z\",\n    \"is_normal_mode\": true,\n    \"is_login\": true,\n    \"user_name\": \"john\",\n    \"device_name\": \"slowhigh\",\n    \"ip\": \"192.168.0.1\"\n}'\n```\n\n#### 6. Check the message on the Station page\n- initial account - id: `root` / pw: `memphis`\n- go to http://localhost:9000/stations/access-message\n  ![image](https://github.com/Slowhigh/gogger/assets/37216082/2462a2e5-e428-4aac-a9d9-6f56f8a19e84)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslowhigh%2Fgogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslowhigh%2Fgogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslowhigh%2Fgogger/lists"}