This repository contains the scripts mentioned in the AWS Database blog post titled "Working with RDS and Aurora PostgreSQL Logs".
This library is licensed under the Apache 2.0 License.
Blog content for working with Amazon RDS and Aurora Engine Logs
License: Apache License 2.0
There is an very old issue that amazon haven't fixed for years now. If you have strange symbol(binary) in the logs download breaks. It is an issue with boto3 rds client, and for me is happening all the time. Error looks like that:
An error occurred (InvalidParameterValue) when calling the DownloadDBLogFilePortion operation: This file contains binary data and should be downloaded instead of viewed.
I just tried your script get_pg_log_files.sh
and I get the same.
When executing
SELECT * FROM logs.postgres_logs;
got an error
ERROR: literal carriage return found in data
HINT: Use "\r" to represent carriage return.
CONTEXT: COPY postgres_logs_20210322_0900, line 20
Postgres AWS RDS
select version();
PostgreSQL 11.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11), 64-bit
Engine version: 11.13
Error:
ERROR: function public.list_postgres_log_files() does not exist
LINE 1: SELECT file_name FROM public.list_postgres_log_files() WHERE...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: SELECT file_name FROM public.list_postgres_log_files() WHERE file_name LIKE '%.csv' ORDER BY 1 DESC
CONTEXT: PL/pgSQL function load_postgres_log_files(text,text,boolean) line 56 at FOR over EXECUTE statement
I know the documentation says you need v12 for PostGres, but is that for this Function to work as well? or just to enable pg_cron?
https://aws.amazon.com/blogs/database/automate-postgresql-log-exports-to-amazon-s3-using-extensions/
Really not sure what enables this function, the documentation doesn't suggest that we create this function too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.