-
Notifications
You must be signed in to change notification settings - Fork 463
Add support for AWS postgresql standard log format #3660
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
Conversation
🌐 Coverage report
|
Thanks Kaiyan for driving the fix to this issue. |
@ravikesarwani : I'll take a look at it |
packages/postgresql/data_stream/log/elasticsearch/ingest_pipeline/pipeline-aws-log.yml
Outdated
Show resolved
Hide resolved
packages/postgresql/data_stream/log/elasticsearch/ingest_pipeline/pipeline-aws-log.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good - couple of questions though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
packages/postgresql/data_stream/log/elasticsearch/ingest_pipeline/pipeline-aws-log.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
What does this PR do?
AWS PostgreSQL logs are separated with
:
instead of the supported,
and<space>
in https://github.com/elastic/integrations/blob/main/packages/postgresql/data_stream/log/elasticsearch/ingest_pipeline/default.yml#L24-L29. This PR is to create a new pipeline calledpipeline-aws-log.yml
and use:
as separator instead.AWS PostgreSQL log format
%t – Time of log entry.
%r – Remote host address.
%u@%d – User name @ database name.
[%p] – Process ID if available.
t - actual log message
Sample log:
From the log format you can see, AWS PostgreSQL logs are separated with
:
between different fields.Source: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.PostgreSQL.html
Checklist
changelog.yml
file.Related issues