Comments (2)
In server log you mentioned, the audit log and server log are corresponding each other like follows.
- LOG: AUDIT: SESSION,,,CONNECT,2017-03-07 14:20:30 JST,,,[local],[unknown],,0,00000,connection received: host=[local],,,,,
- Corresponding to "LOG: connection received: host=[local]"
- LOG: AUDIT: SESSION,,,CONNECT,2017-03-07 14:20:30 JST,postgres,postgres,[local],[unknown],2/1,0,00000,connection authorized: user=postgres database=postgres,,,,,
- Corresponding to "LOG: connection authorized: user=postgres database=postgres"
- LOG: AUDIT: SESSION,,,CONNECT,2017-03-07 14:20:30 JST,postgres,postgres,[local],psql,,0,00000,disconnection: session time: 0:00:00.021 user=postgres database=postgres host=[local],,,,,
- Corresponding to "LOG: disconnection: session time: 0:00:00.021 user=postgres database=postgres host=[local]"
- LOG: AUDIT: SESSION,,,CONNECT,2017-03-07 14:20:30 JST,,,[local],[unknown],,0,00000,connection received: host=[local],,,,,
- Corresponding to "LOG: connection received: host=[local]"
- LOG: connection authorized: user=postgres database=test
- LOG: disconnection: session time: 0:00:00.008 user=postgres database=test host=[local]
The connection and disconnection messages are output by postmaster when connection received before connecting particular database, so we cannot find out what database the client is going to connect to at that point. That's why the log message "LOG: connection received: host=[local]"" is emitted regardless of connecting database.
You can see that the log message "connection authorized" and "disconnection" are output when the client connects to specified database postgres
.
from pgaudit.
I understand about the current operation.
The issue is closed.
from pgaudit.
Related Issues (20)
- (refactored branch) Defining multiple output sections does not cause an error. HOT 3
- (refactored branch) Setting file error does not occur even if the order of each section is changed. HOT 7
- (refactored branch) When log_connections or log_disconnections is turned off and reloaded, connection audit logs are no longer output. HOT 4
- (refactore branch) Update Copyright
- (refactored branch) Even if an unnecessary token exists in the setting file, it does not cause an error. HOT 3
- (refactored branche) Even if you specify WARNING as the level of the output section, the log level of the audit log is LOG instead of WARNING. HOT 3
- (refactored branche) Question: Does the parameter name in the setting file allow only lowercase letters? HOT 3
- (refactored branche) When "log_parameter = on" is specified and SQL with multiple parameters is executed, parameters are concatenated. HOT 4
- (refactored branche) Parameters written in uppercase letters are ignored. HOT 3
- (refactored branch) There is a problem with the explanation of Session Audit Logging / Configuration of Readme.md. HOT 4
- (refactored branch) pid is not output to the audit log. HOT 5
- (refactored branch) The audit log that is output when pg_basebackup is executed is "class = SYSTEM" HOT 2
- (refactored branch) Even if you specify a command_tag filter, not filtered. HOT 2
- (refactored branch) Even if you specify a object_type filter, not filtered. HOT 3
- (refactored branch) Pattern matching with '%' character is not supported.
- (refactored branch) [bug] By config file description of mistakes, Segfault occurs during PostgreSQL start. HOT 3
- (refactored branch) Behavior when you specify an invalid timestamp literal HOT 4
- (refactored branch) Filters do not work correctly in the Japanese object name
- Rewriting README.md HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgaudit.