Galerinha,
Segue abaixo todos meus procedimentos e o erro final...
S.O. Ubuntu
Instalação do postgresql via pacote - É teste no meu note...rsrs
Pré-requisitos
#instalar php5
apt-get install php5-cli
baixar e descompactar em um diretorio seu o PGFOUINE
pgfouine-1.0.tar.gz
1 - Editei o arquivo postgresql.conf no seguintes parâmetros:
log_destination = 'syslog'
logging_collector = off
silent_mode = on
log_min_duration_statement = 0
log_duration = off
log_statement = 'none'
log_line_prefix = 'user=%u,db=%d '#com espaço no final entre o d e a aspas
2 - Editei o arquivo /etc/syslog.conf
#adiciona
local0.* -/var/log/postgresql/main.log
# edita
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
*local0.none;\*
cron,daemon.none;\
mail,news.none -/var/log/messages
3 - reiniciei o syslogd
/etc/init.d/sysklogd restart
4 - reiniciei o postgresql-8.3
/etc/init.d/postgresql-8.3 restart
5 - Entrei no log do postgres
cd /var/log/postgresql
6 - Rodei o comando
/<seu_diretorio>/pgfouine-1.0/pgfouine.php -file main.log >
/<seu_diretorio_para_criar_o_arquivo>/somefile.html
7 - OLHA O ERRO <<FODA!>>
erro:
r...@es605-444:/var/log/postgresql#
/home/junin-dba/pgfouine-1.0/pgfouine.php -file postgresql-8.3-main.log >
/home/junin-dba/Área\ de\ Trabalho/somefile.html
pgFouine did not find any valid PostgreSQL log line in your log file:
* check that PostgreSQL uses an english locale for logging (lc_messages in
your postgresql.conf),
* check that you use the -logtype option (syslog, stderr) according to your
log file,
* if you use syslog and log_line_prefix, check that your log_line_prefix has
a trailing space,
* if you use stderr, check that your log_line_prefix is of the form '%t
[%p]: [%l-1] '.
If you think your log file and your options are correct, please contact the
author (gsmet on #postgre...@freenode or guillaume-pg at smet dot org).
Solucao 1 - mudar para ingles no postgresql.conf o parametro lc_messages
//fiz e nada;
Solucao 2 - verificar o log_line_prefix = 'user=%u,db=%d '#tem o espaço no
final...
Ajuda aí galera...
--
VALTER CEZAR PRADO JUNIOR
GRADUADO EM CIÊNCIA DA COMPUTAÇÃO - UFOP
ANALISTA DE SISTEMAS - BYSAT
DBA / PROJETISTA DE SISTEMAS - PBH
INTEGRANTE DA COMUNIDADE PGBR-GERAL
Sem saber como fazer ele fez!
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral