Re: [CentOS] log time formats - where is this defined

2011-02-28 Thread Rob Kampen

Albert McCann wrote:

-Original Message-
From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
Behalf Of Rob Kampen
Sent: Sunday, February 27, 2011 3:34 PM
To: CentOS mailing list
Subject: [CentOS] log time formats - where is this defined

One of my servers is using ISO datetime formats
(2011-02-27T15:22:15.519857-05:00) in the logs
the rest use the default redhat/CentOS format (Feb 27 15:10:21).
After a couple of hours searching google I cannot find where this is
defined.
I know I changed it some months ago as an experiment but forgotten
where this was done.



  

the ISO format breaks logwatch - thus I need to revert.



I had problems with that, here's the fix:

Add to first line of /etc/rsyslog.conf:

$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat


  
Exactly my problem - thanks for the heads up - hopefully later versions 
of logwatch learn how to tell the time.



Here's the Bugzilla for this problem:

https://bugzilla.redhat.com/show_bug.cgi?id=583621

Al

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  
attachment: rkampen.vcf___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] log time formats - where is this defined

2011-02-28 Thread Rob Kampen

Spiro Harvey wrote:

On Sun, 27 Feb 2011 15:33:57 -0500
Rob Kampen rkam...@kampensonline.com wrote:

  
One of my servers is using ISO datetime formats 
(2011-02-27T15:22:15.519857-05:00) in the logs

the rest use the default redhat/CentOS format (Feb 27 15:10:21).
After a couple of hours searching google I cannot find where this is 
defined.

I know I changed it some months ago as an experiment but forgotten
where this was done.
the ISO format breaks logwatch - thus I need to revert.



Have you changed that box to use rsyslog instead of the default syslog?

If so, there's a post on HowToForge with some info on how to put it
back into traditional format:

http://www.howtoforge.com/forums/showthread.php?t=49642

  

another way to fix the problem - thanks for the link.

More detail is in man rsyslog.conf in the TEMPLATES section.


  



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  
attachment: rkampen.vcf___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] log time formats - where is this defined

2011-02-27 Thread Rob Kampen
One of my servers is using ISO datetime formats 
(2011-02-27T15:22:15.519857-05:00) in the logs

the rest use the default redhat/CentOS format (Feb 27 15:10:21).
After a couple of hours searching google I cannot find where this is 
defined.
I know I changed it some months ago as an experiment but forgotten where 
this was done.

the ISO format breaks logwatch - thus I need to revert.
TIA
attachment: rkampen.vcf___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] log time formats - where is this defined

2011-02-27 Thread Albert McCann
 -Original Message-
 From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
 Behalf Of Rob Kampen
 Sent: Sunday, February 27, 2011 3:34 PM
 To: CentOS mailing list
 Subject: [CentOS] log time formats - where is this defined
 
 One of my servers is using ISO datetime formats
 (2011-02-27T15:22:15.519857-05:00) in the logs
 the rest use the default redhat/CentOS format (Feb 27 15:10:21).
 After a couple of hours searching google I cannot find where this is
 defined.
 I know I changed it some months ago as an experiment but forgotten
 where this was done.

 the ISO format breaks logwatch - thus I need to revert.

I had problems with that, here's the fix:

Add to first line of /etc/rsyslog.conf:

$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat


Here's the Bugzilla for this problem:

https://bugzilla.redhat.com/show_bug.cgi?id=583621

Al

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] log time formats - where is this defined

2011-02-27 Thread Spiro Harvey
On Sun, 27 Feb 2011 15:33:57 -0500
Rob Kampen rkam...@kampensonline.com wrote:

 One of my servers is using ISO datetime formats 
 (2011-02-27T15:22:15.519857-05:00) in the logs
 the rest use the default redhat/CentOS format (Feb 27 15:10:21).
 After a couple of hours searching google I cannot find where this is 
 defined.
 I know I changed it some months ago as an experiment but forgotten
 where this was done.
 the ISO format breaks logwatch - thus I need to revert.

Have you changed that box to use rsyslog instead of the default syslog?

If so, there's a post on HowToForge with some info on how to put it
back into traditional format:

http://www.howtoforge.com/forums/showthread.php?t=49642

More detail is in man rsyslog.conf in the TEMPLATES section.


-- 
Spiro Harvey   Knossos Networks Ltd
(04) 460-2531 : (021) 295-1923  www.knossos.net.nz


signature.asc
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos