darold / pgbadger

A fast PostgreSQL Log Analyzer
http://pgbadger.darold.net/
PostgreSQL License
3.55k stars 352 forks source link

Wildcard chars or regex for exclude appname #664

Closed alessaro92 closed 3 years ago

alessaro92 commented 3 years ago

I'm asking this as a feature request. I think it could be useful to have an option to specify application names to be excluded with wildcards characters or even a regex like it can be already done for queries. The main reason I'm asking this is because pgAdmin 4 set as application name a string like "pgAdmin 4 - CONN:9645366" where the number at the end is always random, and I would like to have queries from pgAdmin 4 to be excluded from the pgbadger report. Thanks in advance.

darold commented 3 years ago

Have you tried using --exclude-line "pgAdmin 4 - CONN:" ?

alessaro92 commented 3 years ago

My bad, I had tried with "--exclude-query" but it was matching only the query part and I didn't see the "--exclude-line" option, sorry! Thanks a lot!