{"id":27117654,"url":"https://github.com/gregyjames/redislogger","last_synced_at":"2026-05-10T19:28:22.307Z","repository":{"id":285027470,"uuid":"956850006","full_name":"gregyjames/RedisLogger","owner":"gregyjames","description":"A lightweight Redis proxy server written in Go that provides command logging and monitoring capabilities.","archived":false,"fork":false,"pushed_at":"2025-03-29T20:03:31.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T21:53:32.004Z","etag":null,"topics":["logging","metrics","opentelemetry","opentracing","redis","redis-client","redis-cluster","redis-server","telemetry"],"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/gregyjames.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":"2025-03-29T01:15:19.000Z","updated_at":"2025-03-29T03:25:55.000Z","dependencies_parsed_at":"2025-03-29T02:24:32.717Z","dependency_job_id":"7034c997-b8a7-4964-8f22-315e2fa917ac","html_url":"https://github.com/gregyjames/RedisLogger","commit_stats":null,"previous_names":["gregyjames/redislogger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2FRedisLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2FRedisLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2FRedisLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2FRedisLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregyjames","download_url":"https://codeload.github.com/gregyjames/RedisLogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247603284,"owners_count":20965175,"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","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":["logging","metrics","opentelemetry","opentracing","redis","redis-client","redis-cluster","redis-server","telemetry"],"created_at":"2025-04-07T06:26:05.451Z","updated_at":"2026-05-10T19:28:22.259Z","avatar_url":"https://github.com/gregyjames.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go](https://github.com/gregyjames/RedisLogger/actions/workflows/go.yml/badge.svg)](https://github.com/gregyjames/RedisLogger/actions/workflows/go.yml)\n# Redis Logger\n\nA lightweight Redis proxy server written in Go that provides command logging and monitoring capabilities.\n\n## Features\n\n- Forwards Redis commands from clients to a Redis server\n- Detailed command logging with structured fields\n- Support for common Redis commands with parameter logging\n- Graceful shutdown handling\n- Debug logging for troubleshooting\n\n## Project Structure\n\n```\n.\n├── main.go           # Main entry point\n├── config/\n│   └── config.go     # Configuration handling\n├── protocol/\n│   └── parser.go     # Redis protocol parser\n├── proxy/\n│   └── proxy.go      # Proxy implementation\n├── config.json       # Configuration file\n└── Dockerfile        # Docker build configuration\n```\n\n## Configuration\n\nCreate a `config.json` file with the following structure:\n\n```json\n{\n    \"listen_addr\": \":9000\",    // Address to listen for Redis connections\n    \"redis_addr\": \"localhost:6379\"  // Address of the Redis server to proxy to\n}\n```\n\n## Command Logging\n\nThe proxy logs detailed information about Redis commands, including:\n\n- Command name\n- Command-specific parameters (keys, values, options)\n- Client connection details\n- Connection lifecycle events\n\n### Supported Command Types\n\n- String commands (SET, GET, MGET, etc.)\n- Hash commands (HSET, HGET, HDEL, etc.)\n- List commands (LPUSH, RPUSH, etc.)\n- Set commands (SADD, SREM, etc.)\n- Sorted Set commands (ZADD, etc.)\n\n## Development\n\n### Prerequisites\n\n- Go 1.22 or later\n- Redis server\n\n### Building\n\n```bash\ngo build\n```\n\n### Running\n\n```bash\n./redislogger\n```\n\n### Docker\n\nBuild the Docker image:\n```bash\ndocker build -t redis-proxy .\n```\n\nRun the container:\n```bash\ndocker run -d \\\n  --name redis-proxy \\\n  -p 6379:6379 \\\n  -e REDIS_ADDR=your-redis-server:6379 \\\n  redis-proxy\n```\n\n### Debugging\n\nThe project includes VS Code debugging configuration. To debug:\n\n1. Open the project in VS Code\n2. Set breakpoints by clicking in the left margin\n3. Press F5 or use the Run and Debug sidebar\n4. Select \"Debug Redis Proxy\"\n\n## Logging\n\nThe proxy uses structured logging with the following levels:\n- Debug: Detailed program flow information\n- Info: Command execution and connection events\n- Error: Connection and command processing errors\n\n## License\n\nMIT License\n\nCopyright (c) 2025 Greg James\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregyjames%2Fredislogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregyjames%2Fredislogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregyjames%2Fredislogger/lists"}