yugabyte=> \c - josh
You are now connected to database "yugabyte" as user "josh".
yugabyte=> CREATE TABLE josh (c1 INT);
CREATE TABLE
yugabyte=> INSERT INTO josh VALUES (1), (2), (3);
INSERT 0 3
yugabyte=> DELETE FROM josh WHERE c1 = 2;
DELETE 1
yugabyte=> \! grep "AUDIT:" /root/var/data/yb-data/tserver/logs/post*
2023-04-06 18:47:30.106 UTC [66724 1 642f13b9.104a4] [cloud1 datacenter1 rack1 localhost] [198.71.48.248(58314) ysqlsh josh yugabyte]LOG: AUDIT: SESSION,1,1,DDL,CREATE TABLE,TABLE,public.josh,CREATE TABLE josh (c1 INT);,
2023-04-06 18:47:45.996 UTC [66724 2 642f13b9.104a4] [cloud1 datacenter1 rack1 localhost] [198.71.48.248(58314) ysqlsh josh yugabyte]LOG: AUDIT: SESSION,2,1,WRITE,INSERT,,,"INSERT INTO josh VALUES (1), (2), (3);",
2023-04-06 18:47:55.832 UTC [66724 3 642f13b9.104a4] [cloud1 datacenter1 rack1 localhost] [198.71.48.248(58314) ysqlsh josh yugabyte]LOG: AUDIT: SESSION,3,1,WRITE,DELETE,,,DELETE FROM josh WHERE c1 = 2;,