{"id":14972158,"url":"https://github.com/preetam/mysqllog","last_synced_at":"2025-10-26T18:31:35.272Z","repository":{"id":57487166,"uuid":"115236161","full_name":"Preetam/mysqllog","owner":"Preetam","description":"Lightweight MySQL slow query log parser in Go","archived":false,"fork":false,"pushed_at":"2022-01-27T20:47:06.000Z","size":18,"stargazers_count":33,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T22:11:25.922Z","etag":null,"topics":["golang","log","mysql","parser"],"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/Preetam.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}},"created_at":"2017-12-24T03:02:11.000Z","updated_at":"2024-07-09T09:50:28.000Z","dependencies_parsed_at":"2022-09-01T23:01:49.830Z","dependency_job_id":null,"html_url":"https://github.com/Preetam/mysqllog","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Preetam%2Fmysqllog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Preetam%2Fmysqllog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Preetam%2Fmysqllog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Preetam%2Fmysqllog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Preetam","download_url":"https://codeload.github.com/Preetam/mysqllog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238386068,"owners_count":19463290,"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":["golang","log","mysql","parser"],"created_at":"2024-09-24T13:46:28.614Z","updated_at":"2025-10-26T18:31:34.920Z","avatar_url":"https://github.com/Preetam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysqllog [![GoDoc](https://godoc.org/github.com/Preetam/mysqllog?status.svg)](https://godoc.org/github.com/Preetam/mysqllog) [![CircleCI](https://circleci.com/gh/Preetam/mysqllog.svg?style=svg)](https://circleci.com/gh/Preetam/mysqllog)\n\nThis package provides a simple MySQL slow query log parser.\n\n## Example: Parse a log from stdin and print events as JSON\n\n```go\npackage main\n\nimport (\n\t\"bufio\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/Preetam/mysqllog\"\n)\n\nfunc main() {\n\tp := \u0026mysqllog.Parser{}\n\treader := bufio.NewReader(os.Stdin)\n\tfor line, err := reader.ReadString('\\n'); err == nil; line, err = reader.ReadString('\\n') {\n\t\tevent := p.ConsumeLine(line)\n\t\tif event != nil {\n\t\t\tb, _ := json.Marshal(event)\n\t\t\tfmt.Printf(\"%s\\n\", b)\n\t\t}\n\t}\n}\n```\n\nLicense\n---\n\nMIT (see LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreetam%2Fmysqllog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreetam%2Fmysqllog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreetam%2Fmysqllog/lists"}