{"id":15567591,"url":"https://github.com/wgrape/parseaof","last_synced_at":"2025-04-24T00:04:03.795Z","repository":{"id":45482917,"uuid":"433514224","full_name":"WGrape/parseAOF","owner":"WGrape","description":"A simple and fast tool to parse the AOF file of redis / 一个简单快速的解析Redis AOF文件的工具","archived":false,"fork":false,"pushed_at":"2023-10-31T15:11:55.000Z","size":16791,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T00:03:56.564Z","etag":null,"topics":["aof","go","redis"],"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/WGrape.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":"2021-11-30T16:59:48.000Z","updated_at":"2024-08-27T02:01:18.000Z","dependencies_parsed_at":"2025-03-06T22:41:41.442Z","dependency_job_id":null,"html_url":"https://github.com/WGrape/parseAOF","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2FparseAOF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2FparseAOF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2FparseAOF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WGrape%2FparseAOF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WGrape","download_url":"https://codeload.github.com/WGrape/parseAOF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535098,"owners_count":21446508,"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":["aof","go","redis"],"created_at":"2024-10-02T17:11:55.258Z","updated_at":"2025-04-24T00:04:03.786Z","avatar_url":"https://github.com/WGrape.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg width=\"350\" alt=\"img\" src=\"https://user-images.githubusercontent.com/35942268/144242038-940e428f-5a99-4bcf-9d68-5d9e4f9b7a40.png\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Go-1.16+-blue.svg\"\u003e\n    \u003ca href=\"https://app.travis-ci.com/github/WGrape/parseAOF\"\u003e\u003cimg src=\"https://app.travis-ci.com/WGrape/parseAOF.svg?branch=main\"\u003e\u003ca\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Document-中文/English-orange.svg\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\"\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e    \n    \u003cp\u003eA simple and fast tool to parse the AOF file of redis\u003c/p\u003e\n    \u003cp\u003eDocument ：\u003ca href=\"/README.zh-CN.md\"\u003e中文\u003c/a\u003e / \u003ca href=\"/README.md\"\u003eEnglish\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\n## Content\n- [Content](#content)\n- [1、Introduction](#1introduction)\n  - [(1) Features](#1-features)\n  - [(2) Architecture](#2-architecture)\n- [2、Build](#2build)\n- [3、Usage](#3usage)\n  - [(1) The input file](#1-the-input-file)\n  - [(2) The output file](#2-the-output-file)\n  - [(3) Example](#3-example)\n- [4、Performance](#4performance)\n  - [(1) Testing](#1-testing)\n\n## 1、Introduction\nA simple and fast tool to parse the AOF file of redis\n\n### (1) Features\n- Code is clean, simple and easy to customize\n- Speed up parsing through multiple goroutines\n- A list of commands will be generated after parsing for log querying\n\n### (2) Architecture\n\u003cimg width=\"700\" src=\"https://user-images.githubusercontent.com/35942268/145674949-1459562a-4555-493b-9aea-ed1d7d3f23a4.png\"\u003e\n\n## 2、Build\n\n```bash\ngit clone https://github.com/WGrape/parseAOF\ncd parseAOF\ngo mod download\nmake build\n```\n## 3、Usage\nRun the binary under `bin` dir `parseAOF_\u003cos\u003e_\u003carch\u003e`  with the path of the aof file\n\n```bash\n./bin/parseAOF_macos_arm64 -i ~/Download/appendonly.aof -r 8\n./bin/parseAOF_macos_arm64 -h\nparse redis aof to readable\n\nUsage:\n  parseAOF [flags]\n\nFlags:\n  -h, --help            help for parseAOF\n  -i, --input string    input AOF file path\n  -o, --output string   output dir path\n  -r, --routines int    max goroutines (default 8)\n```\n\n### (1) The input file\n\u003e Here's an example input file [./data/appendonly.aof](./data/appendonly.aof) for you to test\n\nBefore running, pass the path of the aof file to the ```start.sh``` script, the content is as follows\n\n```text\n*2\n$6\nSELECT\n$1\n0\n... ...\n```\n\n### (2) The output file\n\u003e Here's an example output file [./data/aof.merged](./data/aof.merged) for you to test\n\nAfter the parsing is complete, the file [aof.merged](./data/aof.merged) will be generated in the directory of ```data```, the content is as follows\n\n```text\n--------------------parseAOF | version=0.5.0--------------------\nSELECT 0 \nset key1 1 \nset key2 2 \nset key3 3 \nsadd key4 1 2 3 4 \nlpush key5 1 2 3 4 5 \nzadd key6 1 2 3 4 5 6 \n```\n\n### (3) Example\n![example](example.png)\n\n## 4、Performance\n\n- The average speed to parse is ```50000 lines/s```\n- The maximum size of the aof is 1GB\n\n### (1) Testing\n\n| Id | Lines | Size | Cost | CPU |\n| --- | :----:  | :---: | :---: | :---: |\n| 1 | 1,2301,117 | 39MB | 3m50s | \u003c=65% |\n| 2 | 3,435,263 | 13MB | 1m12s | \u003c=65% |\n| 3 | 357,850 | 8.6MB | 3.47s | \u003c=113% |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgrape%2Fparseaof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgrape%2Fparseaof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgrape%2Fparseaof/lists"}