Re: RFC-3339 Dates
"George Sexton" <georges-V/[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Organization | MH Software, Inc. |
| Message-ID | <001d01ce6160$b7d53100$277f9300$@com> |
The problem I ran into is the regular expression (at least I think it was this way) kind of depended on being able to split the line on some white space. I messed with the REGEX and just couldn't get it right. I can pretty much spot the areas that need changed. It's how to change them that's causing problems for me. I'll admit, I'm not a perl guy, and I'm only so-so at regular expressions. George Sexton MH Software, Inc. 303 438-9585 www.mhsoftware.com > -----Original Message----- > From: Stefan [mailto:[email protected]] > Sent: Tuesday, June 04, 2013 2:07 PM > To: [email protected] > Subject: Re: [Logwatch-devel] RFC-3339 Dates > > > George S.: > > Hi there. I'm using Logwatch on OpenSUSE 12.3, and the distribution > has > > changed the format of their log files to: > > > > YYYY-MM-DDTHH:MM:SS.FFFF-ZZZZ > > Is this more related to rsyslog than opensuse? I run openSUSE 12.3 with > syslog-ng and still have the "old" syslog date format. > > > I've poked around through the code to try to figure out how to change > > Logwatch to read this format, but I'm just not getting it right. Can > you > > give me an idea on what to change, and what the change should look > like? > > You have to edit the shared scripts applystddate and removeheaders. > Eventually > also the other apply*date scripts. They are located in > /usr/share/logwatch/scripts/shared. > > > I've submitted it as a bug to OpenSUSE a few weeks ago, but so far > > there's been no action. I'd post this the sourceforge forum, but > > response there seems pretty random. > > > > I'd appreciate any help you would be willing to give. If you give me > a > > fix, I'll submit it as a patch to OpenSUSE. > > Regards > Stefan > > ----------------------------------------------------------------------- > ------- > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > _______________________________________________ > Logwatch-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/logwatch-devel ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j