You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

6 years ago
#!/bin/bash
# forksand-pgbadger-gen
pgbadger \
--remote-host pg1 \
--incremental \
--jobs 4 \
--outdir /var/www/html/pg1 \
--retention 8 \
--extra-files \
--ssh-user pgbadger \
--prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h ' \
/var/log/postgresql/postgresql-10-main.log
pgbadger \
--remote-host pg2 \
--incremental \
--jobs 4 \
--outdir /var/www/html/pg2 \
--retention 8 \
--extra-files \
--ssh-user pgbadger \
--prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h ' \
/var/log/postgresql/postgresql-10-main.log
pgbadger \
--remote-host pg3 \
--incremental \
--jobs 4 \
--outdir /var/www/html/pg3 \
--retention 8 \
--extra-files \
--ssh-user pgbadger \
--prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h ' \
/var/log/postgresql/postgresql-10-main.log
pgbadger \
--remote-host pg4 \
--incremental \
--jobs 4 \
--outdir /var/www/html/pg4 \
--retention 8 \
--extra-files \
--ssh-user pgbadger \
--prefix '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h ' \
/var/log/postgresql/postgresql-10-main.log