Code Monkey home page Code Monkey logo

Comments (2)

MasahikoSawada avatar MasahikoSawada commented on July 17, 2024

In server log you mentioned, the audit log and server log are corresponding each other like follows.

  1. 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]"
  2. 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"
  3. 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]"
  4. 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]"
  5. LOG: connection authorized: user=postgres database=test
  6. 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.

harada-toshi avatar harada-toshi commented on July 17, 2024

I understand about the current operation.
The issue is closed.

from pgaudit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.