cwlq is a tool/package for querying logs (of Amazon CloudWatch Logs) stored in various datasources.
$ cwlq s3://myrds-audit-logs/2022/12/11/ --parser rdsaudit --filter "message.host == '10.0.1.123'" --filter "message.object contains 'INSERT'"
s3://bucket/path/to
local://path/to
local:///root/path/to
fake://rdsaudit?duration=3sec
WIP
Note Perhaps it would be better to use CloudWatch Logs Insights.
Parser for gziped logs via MariaDB Audit Plugin for Amazon RDS.
homebrew tap:
$ brew install pepabo/tap/cwlq
manually:
Download binany from releases page
go install:
$ go install github.com/pepabo/cwlq@latest