Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saswata-dutta/63fab41872242cc4079b5febda5cc199 to your computer and use it in GitHub Desktop.
Save saswata-dutta/63fab41872242cc4079b5febda5cc199 to your computer and use it in GitHub Desktop.
filter to parse parts of RDS postgres logs in cloudwatch
parse @message /^(?<time>.{23})\:(?<ip>[^:]+):(?<user>[^:]+):\[(?<pid>\d+)\]:(?<level>[A-Z]+):\s(?<mssg>.*)/
| filter pid = 20658
| sort time asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment