Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent crash when parsing connection attempt for database that does not exist #14

Open
wants to merge 2 commits into
base: integration
Choose a base branch
from

Conversation

amalek215
Copy link
Contributor

example csv:

2020-10-06 17:41:28.952 EDT,"foo","foo",32580,"192.168.118.117:50773",5f7ce488.7f44,2,"authentication",2020-10-06 17:41:28 EDT,15/16636,0,LOG,00000,"connection authorized: user=foo database=foo SSL enabled (protocol=TLSv1.2, cipher=ECDHE-RSA-AES256-GCM-SHA384, compression=off)",,,,,,,,,""
2020-10-06 17:41:28.952 EDT,"foo","foo",32580,"192.168.118.117:50773",5f7ce488.7f44,3,"startup",2020-10-06 17:41:28 EDT,15/16636,0,FATAL,3D000,"database ""foo"" does not exist",,,,,,,,,""

Alex Malek added 2 commits October 7, 2020 14:51
…t does not exist

This would cause a crash and stop processesing of the log file
@dwsteele dwsteele changed the base branch from master to integration July 2, 2021 13:40
@amalek215
Copy link
Contributor Author

Following up on this PR

Any attempt be any user to connect to a DB that does not exist will prevent pgaudit_analyze from continuing to process the day's log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant