<div class="gmail_quote">On Fri, Jun 4, 2010 at 3:41 AM, Balazs Scheidler <span dir="ltr"><<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, 2010-06-02 at 17:09 +0200, Dragan Zubac wrote:<br>
> Hello<br>
><br>
> I'm using syslog-ng to log messages into PostgreSQL via file logging.<br>
> I have a problem,because syslog-ng actually sends two messages from log<br>
> file,instead one at a time.<br>
> In attachment,You may see two messages that has the same ID number and<br>
> were sent together,as 'one' message into database procedure.<br>
> Is it possible to configure syslog-ng to send one message at a time only ?<br>
<br>
</div>I don't really understand your question. The messages you have marked in<br>
your original email use the same PID, but pids are in no way unique.<br></blockquote><div><br></div><div>Perhaps postfix is sending a log message to syslog with a newline character in it - so syslog is printing it as two separate log lines in the file, but sending to postgres as one message? I don't understand the question either if this is not the case.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
--<br>
Bazsi<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
<br>
______________________________________________________________________<br>
</div><div><div></div><div class="h5">This email has been scanned by the MessageLabs Email Security System.<br>
For more information please visit <a href="http://www.messagelabs.com/email" target="_blank">http://www.messagelabs.com/email</a><br>
______________________________________________________________________<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lance Laursen<br>Demonware Systems Engineer<br>