PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > ulogd postgreSQL module problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

ulogd postgreSQL module problem

Réponse
 
LinkBack Outils de la discussion
Vieux 16/06/2007, 12h40   #1
vizze
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut ulogd postgreSQL module problem

I'm trying to configure ulogd to put iptables log into postgreSQL, but i
can't make ulogd to insert data into the database.
tail -f /var/log/ulog/syslogemu.log tell me that ulogd is receiving ip
details from iptables but in ulogd logfile i get:

Thu Jun 14 00:59:15 2007 <7> ulogd_PGSQL.c:216 sql error during insert:
ERROR: syntax error at or near ")"
LINE 1: insert into public.ulog ) values )

and in postgreSQL log i get:

2007-06-14 00:59:15 CEST ERROR: syntax error at or near ")" at character 25


postgreSQL configuration in ulogd config file is correct infact i can
log in using the same username and password.
ulogd-pgsql packet is installed.
Any hints?

Andrea


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 06h00   #2
Chris Bannister
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ulogd postgreSQL module problem

On Sat, Jun 16, 2007 at 01:18:11PM +0200, vizze wrote:
> I'm trying to configure ulogd to put iptables log into postgreSQL, but i
> can't make ulogd to insert data into the database.
> tail -f /var/log/ulog/syslogemu.log tell me that ulogd is receiving ip
> details from iptables but in ulogd logfile i get:
>
> Thu Jun 14 00:59:15 2007 <7> ulogd_PGSQL.c:216 sql error during insert:
> ERROR: syntax error at or near ")"
> LINE 1: insert into public.ulog ) values )
>
> and in postgreSQL log i get:
>
> 2007-06-14 00:59:15 CEST ERROR: syntax error at or near ")" at character 25
>
>
> postgreSQL configuration in ulogd config file is correct infact i can
> log in using the same username and password.
> ulogd-pgsql packet is installed.
> Any hints?


Yup. ulogd_PGSQL.c LINE 1: insert into public.ulog ) values )

Without seeing the line, I'm guessing it should be ") values ("
instead of ") values )"

Does this make any sense?

--
Chris.
======


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 17/06/2007, 10h50   #3
vizze
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ulogd postgreSQL module problem

Chris Bannister wrote:
>
> Yup. ulogd_PGSQL.c LINE 1: insert into public.ulog ) values )
>
> Without seeing the line, I'm guessing it should be ") values ("
> instead of ") values )"
>
> Does this make any sense?
>

Yes, the query is totally wrong to me, but i can't figure why...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 20/06/2007, 09h20   #4
Chris Bannister
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ulogd postgreSQL module problem

On Sun, Jun 17, 2007 at 11:26:10AM +0200, vizze wrote:
> Chris Bannister wrote:
> >
> >Yup. ulogd_PGSQL.c LINE 1: insert into public.ulog ) values )
> >
> >Without seeing the line, I'm guessing it should be ") values ("
> >instead of ") values )"
> >
> >Does this make any sense?
> >

> Yes, the query is totally wrong to me, but i can't figure why...


Could you post the offending query? Hiding any sensitive data if
necessary.

--
Chris.
======


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 21/06/2007, 20h40   #5
vizze
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ulogd postgreSQL module problem

Chris Bannister wrote:
>
> Could you post the offending query? Hiding any sensitive data if
> necessary.
>


solved...i did't read man very well, the problem was that ulog table
wasn't created.
Error reporting is not so clear but...
somewhere in the pc ulogd place a file for every db, called *.dump.
as soon as i create the table structure the insert query works.
sorry, thanks for your time.

Andrea


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h22.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,23536 seconds with 13 queries