Skip to content

Instantly share code, notes, and snippets.

@dustinschultz
Created September 11, 2020 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinschultz/4d2455e9f8fe7c0622064f7319689a84 to your computer and use it in GitHub Desktop.
Save dustinschultz/4d2455e9f8fe7c0622064f7319689a84 to your computer and use it in GitHub Desktop.
Example of a message from AWS Database Activity Stream
{
"type": "DatabaseActivityMonitoringRecord",
"clusterId": "cluster-XXXXXXXXXXXXXXXXXXXXXXXXXX",
"instanceId": "db-XXXXXXXXXXXXXXXXXXXXXXX",
"databaseActivityEventList": [
{
"logTime": "2019-12-26 06:56:09.090054+00",
"statementId": 3731,
"substatementId": 1,
"objectType": "TABLE",
"command": "INSERT",
"objectName": "public.pgbench_history",
"databaseName": "mylab",
"dbUserName": "masteruser",
"remoteHost": "10.0.0.204",
"remotePort": "33948",
"sessionId": "5e04596c.2383",
"rowCount": 1,
"commandText": "INSERT INTO pgbench_history (tid, bid, aid, delta, mtime) VALUES ($1, $2, $3, $4, CURRENT_TIMESTAMP);",
"paramList": [
"424",
"62",
"1788678",
"-2770"
],
"pid": 9091,
"clientApplication": "pgbench",
"exitCode": null,
"class": "WRITE",
"serverVersion": "2.3.5",
"serverType": "PostgreSQL",
"serviceName": "Amazon Aurora PostgreSQL-Compatible edition",
"serverHost": "10.0.12.39",
"netProtocol": "TCP",
"dbProtocol": "Postgres 3.0",
"type": "record"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment