[syslog-ng]TimeZone Macros Patch

Balazs Scheidler bazsi@balabit.hu
Fri, 13 Sep 2002 09:17:28 +0200


On Thu, Sep 12, 2002 at 09:00:11PM -0700, Robin * Slomkowski wrote:
> I have created a patch based on 
> syslog-ng-1.5.20
> 
> That adds two new macros.
> 
> TZOFFSET	The time-zone as hour offset from GMT. e.g. '-0700'
> TZ      	The time zone or name or abbreviation. e.g. 'PDT'
> 
> usable like all other macros. $TZ and $TZOFFSET
> 
> the affected source files are 
> 
> doc/sgml/syslog-ng.sgml		documentation update
> src/affile.c			The code change
> 
> you also need to 
> /bin/touch src/affile.c.x
> 
> to get it to build correctly after you have applied the patch.
> and you need to explicitly rebuild the documentation if you want the
> documentation updates.
> 
> I have the need for this as I have to coordinate syslog files with other
> application log files that are in multiple data centers.  And since a
> standard syslog entry does not contain the timezone, I need the log file
> name to contain the GMT offset so I can correlate the data in a useful
> manner with the logs in other timezones, and daylight saving times.
> 
> Hope this patch meets the code standards for this project and that
> others may find it useful.

Thanks for your contribution. I've put this patch into my pending patches
queue.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1