* [gentoo-user] /var/log/messages size
@ 2005-10-25 20:12 Allan Spagnol Comar
2005-10-25 20:42 ` John Jolet
` (7 more replies)
0 siblings, 8 replies; 11+ messages in thread
From: Allan Spagnol Comar @ 2005-10-25 20:12 UTC (permalink / raw
To: gentoo-user
Hi All, I was looking for explanations about syslog-ng and got stucked....
I was wondering why my /var/log/messages has 2.1 GB size and if I can
reduce this size or config it better; I am using default syslog-ng
config that was emerged by gentoo instalation.
Thanks, Allan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
@ 2005-10-25 20:42 ` John Jolet
2005-10-26 0:00 ` Neil Bothwick
` (6 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: John Jolet @ 2005-10-25 20:42 UTC (permalink / raw
To: gentoo-user
emerge logrotate....it'll let you safely rotate various log files.
On Tuesday 25 October 2005 15:12, Allan Spagnol Comar wrote:
> Hi All, I was looking for explanations about syslog-ng and got stucked....
> I was wondering why my /var/log/messages has 2.1 GB size and if I can
> reduce this size or config it better; I am using default syslog-ng
> config that was emerged by gentoo instalation.
>
> Thanks, Allan
--
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
john@jolet.net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
2005-10-25 20:42 ` John Jolet
@ 2005-10-26 0:00 ` Neil Bothwick
2005-10-26 0:30 ` Richard Fish
` (5 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2005-10-26 0:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 704 bytes --]
On Tue, 25 Oct 2005 17:12:30 -0300, Allan Spagnol Comar wrote:
> Hi All, I was looking for explanations about syslog-ng and got
> stucked.... I was wondering why my /var/log/messages has 2.1 GB size
> and if I can reduce this size or config it better; I am using default
> syslog-ng config that was emerged by gentoo instalation.
emerge logrotate
Without log rotation, your logfiles will just keep growing.
There is also the possibility that some process has run amok and is
filling your log file with repeated messages.
--
Neil Bothwick
What do you get if you cross an agnostic, an insomniac and adyslexic?
Someone who lies awake at night wondering if there really is a dog.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
2005-10-25 20:42 ` John Jolet
2005-10-26 0:00 ` Neil Bothwick
@ 2005-10-26 0:30 ` Richard Fish
2005-10-26 0:34 ` Mark Shields
` (4 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Richard Fish @ 2005-10-26 0:30 UTC (permalink / raw
To: gentoo-user
Allan Spagnol Comar wrote:
>Hi All, I was looking for explanations about syslog-ng and got stucked....
>I was wondering why my /var/log/messages has 2.1 GB size and if I can
>reduce this size or config it better; I am using default syslog-ng
>config that was emerged by gentoo instalation.
>
>
For starters:
emerge logrotate
man logrotate
vi /etc/logrotate.d/syslog-ng
Also, if there is a particular message that is filling up your log, you
can filter that out in /etc/syslog.d/syslog-ng.conf. For example:
# The eth reset messages also bug me...
filter not_eth_reset {
not(match("PHY reset until link up"));
};
...
log { source(src); filter(not_nmbd); filter(not_eth_reset);
destination(messages); };
...
HTH
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
` (2 preceding siblings ...)
2005-10-26 0:30 ` Richard Fish
@ 2005-10-26 0:34 ` Mark Shields
2005-10-26 3:16 ` Rumen Yotov
` (3 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Mark Shields @ 2005-10-26 0:34 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
Sounds to me like you don't have logrotate installed or the install is
corrupt. If emerge --search ^logrotate$ shows it's installed, I would
re-emerge it.
On 10/25/05, Allan Spagnol Comar <allan.comar@gmail.com> wrote:
>
> Hi All, I was looking for explanations about syslog-ng and got stucked....
> I was wondering why my /var/log/messages has 2.1 GB size and if I can
> reduce this size or config it better; I am using default syslog-ng
> config that was emerged by gentoo instalation.
>
> Thanks, Allan
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
- Mark Shields
[-- Attachment #2: Type: text/html, Size: 940 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
` (3 preceding siblings ...)
2005-10-26 0:34 ` Mark Shields
@ 2005-10-26 3:16 ` Rumen Yotov
2005-10-26 5:58 ` Heinz Sporn
` (2 subsequent siblings)
7 siblings, 0 replies; 11+ messages in thread
From: Rumen Yotov @ 2005-10-26 3:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
On Tue, 2005-10-25 at 17:12 -0300, Allan Spagnol Comar wrote:
> Hi All, I was looking for explanations about syslog-ng and got stucked....
> I was wondering why my /var/log/messages has 2.1 GB size and if I can
> reduce this size or config it better; I am using default syslog-ng
> config that was emerged by gentoo instalation.
>
> Thanks, Allan
>
Hi,
Some people prefer the config from "hardened" project - it logs to more
files.
HTH.Rumen
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
` (4 preceding siblings ...)
2005-10-26 3:16 ` Rumen Yotov
@ 2005-10-26 5:58 ` Heinz Sporn
2005-10-27 5:37 ` W.Kenworthy
2005-10-26 6:08 ` z3rosix
2005-10-26 6:15 ` Tomas Jankovic
7 siblings, 1 reply; 11+ messages in thread
From: Heinz Sporn @ 2005-10-26 5:58 UTC (permalink / raw
To: gentoo-user
Am Dienstag, den 25.10.2005, 17:12 -0300 schrieb Allan Spagnol Comar:
> Hi All, I was looking for explanations about syslog-ng and got stucked....
> I was wondering why my /var/log/messages has 2.1 GB size and if I can
> reduce this size or config it better; I am using default syslog-ng
> config that was emerged by gentoo instalation.
I'm using sysklogd myself and with that comes a syslog.cron script
in /etc/cron.daily that rotates it's logfiles. Shouldn't there be a
similar thing in syslog-ng? If not you could always use logrotate.
>
> Thanks, Allan
>
--
Mit freundlichen Grüßen
Heinz Sporn
SPORN it-freelancing
Mobile: ++43 (0)699 / 127 827 07
Email: heinz.sporn@sporn-it.com
heinz.sporn@utanet.at
Website: http://www.sporn-it.com
Snail: Steyrer Str. 20
A-4540 Bad Hall
Austria / Europe
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
` (5 preceding siblings ...)
2005-10-26 5:58 ` Heinz Sporn
@ 2005-10-26 6:08 ` z3rosix
2005-10-26 6:15 ` Tomas Jankovic
7 siblings, 0 replies; 11+ messages in thread
From: z3rosix @ 2005-10-26 6:08 UTC (permalink / raw
To: gentoo-user
Hello,
On Tue, Oct 25, 2005 at 05:12:30PM -0300, Allan Spagnol Comar wrote:
> Hi All, I was looking for explanations about syslog-ng and got stucked....
> I was wondering why my /var/log/messages has 2.1 GB size and if I can
> reduce this size or config it better; I am using default syslog-ng
> config that was emerged by gentoo instalation.
>
> Thanks, Allan
try to use logrotate -> app-admin/logrotate
and make it an cronjob every night or every week.
it will rotate and compress your old logfiles
greetz
alex
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
` (6 preceding siblings ...)
2005-10-26 6:08 ` z3rosix
@ 2005-10-26 6:15 ` Tomas Jankovic
7 siblings, 0 replies; 11+ messages in thread
From: Tomas Jankovic @ 2005-10-26 6:15 UTC (permalink / raw
To: gentoo-user
Hi Allan,
use logrotate
example - http://gentoo-wiki.com/HOWTO_use_cron#Logrotate
Tomas
2005/10/25, Allan Spagnol Comar <allan.comar@gmail.com>:
> Hi All, I was looking for explanations about syslog-ng and got stucked....
> I was wondering why my /var/log/messages has 2.1 GB size and if I can
> reduce this size or config it better; I am using default syslog-ng
> config that was emerged by gentoo instalation.
>
> Thanks, Allan
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-26 5:58 ` Heinz Sporn
@ 2005-10-27 5:37 ` W.Kenworthy
2005-10-27 11:06 ` Allan Spagnol Comar
0 siblings, 1 reply; 11+ messages in thread
From: W.Kenworthy @ 2005-10-27 5:37 UTC (permalink / raw
To: gentoo-user
syslog-ng does.
bunyip ~ # ls /etc/logrotate.d
apache2 hibernate-script mysql scrollkeeper syslog-ng
bunyip ~ # qpkg -f /etc/logrotate.d/syslog-ng
app-admin/syslog-ng *
bunyip ~ #
so you just need to check the file is present, install logrotate and sit
back and watch it happen.
BillK
On Wed, 2005-10-26 at 07:58 +0200, Heinz Sporn wrote:
> Am Dienstag, den 25.10.2005, 17:12 -0300 schrieb Allan Spagnol Comar:
> > Hi All, I was looking for explanations about syslog-ng and got stucked....
> > I was wondering why my /var/log/messages has 2.1 GB size and if I can
> > reduce this size or config it better; I am using default syslog-ng
> > config that was emerged by gentoo instalation.
>
> I'm using sysklogd myself and with that comes a syslog.cron script
> in /etc/cron.daily that rotates it's logfiles. Shouldn't there be a
> similar thing in syslog-ng? If not you could always use logrotate.
>
> >
> > Thanks, Allan
> >
> --
> Mit freundlichen Grüßen
>
> Heinz Sporn
>
> SPORN it-freelancing
>
> Mobile: ++43 (0)699 / 127 827 07
> Email: heinz.sporn@sporn-it.com
> heinz.sporn@utanet.at
> Website: http://www.sporn-it.com
> Snail: Steyrer Str. 20
> A-4540 Bad Hall
> Austria / Europe
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] /var/log/messages size
2005-10-27 5:37 ` W.Kenworthy
@ 2005-10-27 11:06 ` Allan Spagnol Comar
0 siblings, 0 replies; 11+ messages in thread
From: Allan Spagnol Comar @ 2005-10-27 11:06 UTC (permalink / raw
To: gentoo-user
Thank you all , sorry to take so long to answer and the logrotate
really had worked for me.
Thanks again.
On 10/27/05, W.Kenworthy <billk@iinet.net.au> wrote:
> syslog-ng does.
>
>
> bunyip ~ # ls /etc/logrotate.d
> apache2 hibernate-script mysql scrollkeeper syslog-ng
>
> bunyip ~ # qpkg -f /etc/logrotate.d/syslog-ng
> app-admin/syslog-ng *
> bunyip ~ #
>
> so you just need to check the file is present, install logrotate and sit
> back and watch it happen.
>
> BillK
>
>
> On Wed, 2005-10-26 at 07:58 +0200, Heinz Sporn wrote:
> > Am Dienstag, den 25.10.2005, 17:12 -0300 schrieb Allan Spagnol Comar:
> > > Hi All, I was looking for explanations about syslog-ng and got stucked....
> > > I was wondering why my /var/log/messages has 2.1 GB size and if I can
> > > reduce this size or config it better; I am using default syslog-ng
> > > config that was emerged by gentoo instalation.
> >
> > I'm using sysklogd myself and with that comes a syslog.cron script
> > in /etc/cron.daily that rotates it's logfiles. Shouldn't there be a
> > similar thing in syslog-ng? If not you could always use logrotate.
> >
> > >
> > > Thanks, Allan
> > >
> > --
> > Mit freundlichen Grüßen
> >
> > Heinz Sporn
> >
> > SPORN it-freelancing
> >
> > Mobile: ++43 (0)699 / 127 827 07
> > Email: heinz.sporn@sporn-it.com
> > heinz.sporn@utanet.at
> > Website: http://www.sporn-it.com
> > Snail: Steyrer Str. 20
> > A-4540 Bad Hall
> > Austria / Europe
> >
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-10-27 11:13 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 20:12 [gentoo-user] /var/log/messages size Allan Spagnol Comar
2005-10-25 20:42 ` John Jolet
2005-10-26 0:00 ` Neil Bothwick
2005-10-26 0:30 ` Richard Fish
2005-10-26 0:34 ` Mark Shields
2005-10-26 3:16 ` Rumen Yotov
2005-10-26 5:58 ` Heinz Sporn
2005-10-27 5:37 ` W.Kenworthy
2005-10-27 11:06 ` Allan Spagnol Comar
2005-10-26 6:08 ` z3rosix
2005-10-26 6:15 ` Tomas Jankovic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox