Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Last active December 11, 2020 21:28
Show Gist options
  • Save rms1000watt/6bb67538b803e9ffb831cefbe7880e9e to your computer and use it in GitHub Desktop.
Save rms1000watt/6bb67538b803e9ffb831cefbe7880e9e to your computer and use it in GitHub Desktop.
Split Postgres logs downloaded from RDS
#!/usr/bin/env bash
split -b 1000m postgresql.log.2020-12-11-03 postgresql.log.2020-12-11-03
# https://github.com/darold/pgbadger
pgbadger postgresql.log.2020-12-11-03am
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment