Skip to content

odessit55/CRDB_Audit_Filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

To filter CRDB audit log:

// relying on a string

// User":"‹userName›","DescriptorID

// being unique

// example of filtering out a single one

tail -f cockroach-sql-audit.log | stdbuf -o0 grep -v 'User":"‹application›","DescriptorID' >>audit.log

// example: filter out both application and alex

tail -f cockroach-sql-audit.log | stdbuf -o0 grep -v 'User":"‹application›","DescriptorID' | stdbuf -o0 grep -v 'User":"‹alex›","DescriptorID' >>audit.log

// we can create a script that would pull user names to be filtered out from file/table and build

// appropriate script to run continuously

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published