[syslog-ng] Transmitting a Huge Log File

Hidayath Basha hidayath.basha at saventech.com
Fri Mar 11 07:27:17 CET 2011


Thanks Sandor

Removing .persist file really worked... Thanks

Thanks and regards,
Hidayath

Saven Technologies: A leader in technology driven business solutions
----------------------------------------------------------------------------
-----------------------------------
#302, 3rd Floor, MyHome Sarovar Plaza, Hyderabad- 500 063, India
Off: +91 040 23237303/7304 ext 115
email: hidayath.basha @saventech.com <mailto:hidayath.basha at saventech.com>
|  www.saventech.com <http://www.saventech.com>
follow me: http://twitter.com/hidayath26 <http://twitter.com/hidayath26>
----------------------------------------------------------------------------
-----------------------------------


-----Original Message-----
From: Sandor Geller [mailto:Sandor.Geller at morganstanley.com]
Sent: Wednesday, March 09, 2011 8:19 PM
To: Syslog-ng users' and developers' mailing list
Cc: Hidayath Basha
Subject: Re: [syslog-ng] Transmitting a Huge Log File


Hi,

On Wed, Mar 9, 2011 at 2:50 PM, Hidayath Basha
<hidayath.basha at saventech.com> wrote:
> Hi all,
>
> I'm trying to transmit a huge log file (of about 80k lines) to a
centralized
> syslog server over TCP

80k lines is piece of cake unless the average line length is quite big :)

> But, on the syslog server, I'm receiver only the last part of the log file
> (of about 7000 lines)
>
> How can I transmit the whole log file

syslog-ng keeps track where it left off reading a file to avoid
sending the whole file again when it gets restarted so my guess is
that you fired up syslog-ng a few times.

To confirm this could you stop syslog-ng, delete
/var/lib/syslog-ng.persist (or where your persist file lives) and
start syslog-ng?

If the problem persists then run syslog-ng under strace and show the
relevant parts (file opens, seeks, reads).

Regards,

Sandor



More information about the syslog-ng mailing list