-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sqlite support for query-cloudwatch (#11291)
* Add '*.db' to .gitignore Common extension used for SQLite databases. * Add sqlite3 dependency in development only * Support '--format sqlite' in query-cloudwatch Update bin/query-cloudwatch to support SQLite as an output option. Queries that include '@timestamp' and '@message' will have their results added to the 'events' table in a Sqlite database (events.db by default) * Slightly smoother interrupt handling * Rework output.start to take a block * Fix variable names * Add some tests for --sqlite option * More tests + non-events.log support - Don't require that @message be json - Generate IDs if needed - Also store @log and @logstream - And also, tests! * Include sqlite3 in test env * changelog: Internal, Tooling, Add SQLite support to query-cloudwatch command * Say "user_id" instead of "uuid" Go for consistency with Cloudwatch over consistency with the IdP * whoops, missed one * Use a stable ID when none present in @message Generate a SHA265 hash of timestamp + message as an ID.
- Loading branch information
1 parent
a2dbea2
commit 8cd17f8
Showing
5 changed files
with
451 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# git config --global core.excludesfile ~/.gitignore_global | ||
|
||
.generators | ||
*.db | ||
*.pyc | ||
*.rbc | ||
**.orig | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.