The regex in this post, explained via Regex101 Some applications can log multiple lines per log entry. PostgreSQL is a good example, when statement logging is turned on. Here's a bare bones example with log_statement set to all: 2025-06-23 22:00:00.000 CEST [6316] LOG: statement: select *