Skip to content

Add message_type for PGAUDIT #115

@qguang

Description

@qguang

PGAUDIT print message lines as below.
2023-07-24 01:53:45 UTC:[local]:postgres@crm_database:[68]: LOG: statement: revoke create on schema public from public; 2023-07-24 01:53:45 UTC:[local]:postgres@crm_database:[68]: LOG: AUDIT: SESSION,1,1,ROLE,REVOKE,,,revoke create on schema public from public;,<not logged> 2023-07-24 01:53:45 UTC:[local]:postgres@crm_database:[68]: LOG: statement: create schema crm_data authorization crm_adm_user; 2023-07-24 01:53:45 UTC:[local]:postgres@crm_database:[68]: LOG: AUDIT: SESSION,2,1,DDL,CREATE SCHEMA,,,create schema crm_data authorization crm_adm_user;,<not logged> 2023-07-24 01:53:45 UTC:[local]:postgres@crm_database:[68]: LOG: statement: alter schema public owner to crm_adm_user;

Is it possible to add more values to _types_prefixes?
_types_prefixes = {
"duration: ": "duration",
"connection ": "connection",
"disconnection": "connection",
"automatic analyze": "analyze",
"checkpoint ": "checkpoint",
"AUDIT:": "pgaudit",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions