Posts

Showing posts with the label PostgreSQL Audit Script
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Audit Script For Postgresql

Here I explained about how to write audit script for  postgresql(postgresql.conf) server i put all entries in bash profile so you don't need to set bin, if you type pg_ctl it ill automatically select all postgres path like pgdata,pghome pgdatabase.. create one file in root and set chmod 777 permission to postgres user  becouse you want to run this file.. 1.vi change_parmater.sh 2.check enterprisedb privillages 3.take backup of postgresql.conf file  eg.$cp /opt/PostgresPlus/9.2AS/data/postgresq.conf /opt/PostgresPlus/9.2AS/data/postgresql.conf.bkp --becouse saftey purpose.. vi change_paramter.sh cd $PGDATA cd .. mkdir audit chmod 755 audit/ chown -R enterprisedb:enterprisedb audit/ cd $PGDATA echo "log_statement = 'none'" >>postgresql.conf echo "log_destination='syslog'" >>postgresql.conf echo "log_connections = on" >>postgresql.conf echo "log_disconnections = on" >>postgresql.conf echo ...