[prev in list] [next in list] [prev in thread] [next in thread]
List: syslog-ng
Subject: [syslog-ng] [Bug 44] New: name of the file and content of the file
From: bugzilla () www ! balabit ! com
Date: 2009-04-24 6:49:12
Message-ID: bug-44-3 () https ! bugzilla ! balabit ! com/
[Download RAW message or body]
https://bugzilla.balabit.com/show_bug.cgi?id=44
Summary: name of the file and content of the file contains
different timestamp
Product: syslog-ng
Version: 3.0.x
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: unspecified
Component: syslog-ng
AssignedTo: bazsi@balabit.hu
ReportedBy: ruiyen@gmail.com
Type of the Report: bug
Estimated Hours: 0.0
Friendly reminder that this bug needs to be fixed. I can help you with this if you \
can let me know which source file to look at.
From https://lists.balabit.hu/pipermail/syslog-ng/2009-February/012567.html
2009/2/15 Balazs Scheidler <bazsi at balabit.hu>
> On Thu, 2009-02-12 at 09:52 +0800, Charles Chan wrote:
> > I use time_zone instead timezone,configuration like this
> > ===========================================================
> > template apache_template { template("$DAY-$HOUR $S_DAY-$S_HOUR
> > $R_DAY-$R_HOUR $MSGONLY\n"); template_escape(no); };
> > destination us_int_apache
> > { file("/disk2/apache_logs/$YEAR-$MONTH-$DAY/$HOST.apache.log"
> > timezone("PST8PDT") template(apache_template)); };
> > ============================================================
> > service can start,but the problem still exists.
> > the file is stored in the /disk2/apache_logs/2009-02-12
> > generated log is:
> > 11-17 11-17 11-17 222.69.201.23 - - - [11/Feb/2009:17:37:03 -0800]
> > "GET /atmgateway.client.html ...................
> > two date string still difference. I use syslog-ng 3.0.1 OSE version,is
> > this OSE version problem?
>
> The PE and OSE versions are the same in this regard. Apart from the
> concrete differences listed on our website, I work hard to keep the two
> versions in sync.
>
> So let me try to understand your problem a bit deeper... Sorry for not
> having done so previously. Sometimes I just reply without really
> thinking through problems in the question.
>
> hmm.. as I see your problem seems to be that the name of the file and
> the _content_ of the file contains a different timestamp. Right?
>
> This is intentional.
>
> When expanding the macros in the name of the files, syslog-ng _always_
> uses the server-side, local timezone. The timezone used in the content
> of the file can be controlled using the time_zone() option.
>
> Currently there's no way to control the filename zone offset. The
> reasoning behind that was that I already found the timezone related
> configuration options too complex, and I didn't see the need so far.
> I felt that agregating logs based on the _received timestamp_ is more
> trustworthy (because clients are free to specify a timestamp they
> feel-like), and that is in local timezone anyway. Also, noone else has
> complained previously :)
>
> That said, I'm willing to add another option to control the timezone
> used when expanding the filename, if you really think that solves your
> problem.
--
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic