https://github.com/winebarrel/genlog
genlog is MySQL General Query Log parser.
https://github.com/winebarrel/genlog
mysql
Last synced: 11 days ago
JSON representation
genlog is MySQL General Query Log parser.
- Host: GitHub
- URL: https://github.com/winebarrel/genlog
- Owner: winebarrel
- License: mit
- Created: 2020-05-27T06:55:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T01:38:15.000Z (2 months ago)
- Last Synced: 2025-05-05T02:31:34.257Z (2 months ago)
- Topics: mysql
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# genlog
[](https://github.com/winebarrel/genlog/actions/workflows/test.yml)
genlog is MySQL General Query Log parser.
## Usage
```
$ cat general.log
2020-05-27T05:03:27.500301Z 11 Query SET @@sql_log_bin=off
2020-05-27T05:03:27.543379Z 11 Query select @@session.tx_read_only
2020-05-27T05:03:27.683485Z 11 Query COMMIT
...$ genlog general.log # or `cat general.log | genlog`
{"Time":"2020-05-27T05:03:27.500301Z","Id":"11","Command":"Query","Argument":"SET @@sql_log_bin=off"}
{"Time":"2020-05-27T05:03:27.543379Z","Id":"11","Command":"Query","Argument":"select @@session.tx_read_only"}
{"Time":"2020-05-27T05:03:27.683485Z","Id":"11","Command":"Query","Argument":"COMMIT"}
...
```## Related Links
* https://github.com/winebarrel/xgl