Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winebarrel/genlog
genlog is MySQL General Query Log parser.
https://github.com/winebarrel/genlog
mysql
Last synced: 30 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-10T01:40:52.000Z (5 months ago)
- Last Synced: 2024-10-08T10:17:59.337Z (about 1 month ago)
- Topics: mysql
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# genlog
[![test](https://github.com/winebarrel/genlog/actions/workflows/test.yml/badge.svg)](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