filter f_postgres { program(postgres) or program(pg_controldata); }; destination d_postgres { file("/var/log/postgresql.log"); }; log { source(src); filter(f_postgres); destination(d_postgres); };