------_=_NextPart_001_01CAD64D.5B61484E
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi there,
I am having troubles with the switch over between GMT and BST with
respect to the entries going in the log files, I am using apache 2.0.55
BTW.
The timezones on our servers are set to GB and during British Wintertime
the log file entries are stamped correctly, however when moving to BST I
have to add the following to the apache startup script to get the
timestamps in BST format.
TZ=3DGMT0BST
export TZ
And obviously remember to take this out when returning back to GMT in
October.
For the actual logfile configuration I use the following:
Logformat "%{%Y-%m-%d %H:%M:%S}t %{X-Forwarded-For}i %{host}i %r %s %b
%D %q %{User-Agent}i %{IR_PORTAL_COOKIE}C %{Referer}i" ORU_extended
CustomLog "|/opt/app/apache/bin/rotatelogs
/opt/app/apache/logs/site_access_log.%Y-%m-%d 86400" ORU_extended
Is there any other way of ensuring the correct localtime gets put into
the logfile entries?? I have tried using %X in place of %H:%M:%S but
this has no effect.
Cheers
Steve
Capgemini is a trading name used by the Capgemini Group of companies =
which includes Capgemini UK plc, a company registered in England and =
Wales (number 943935) whose registered office is at No. 1 Forge End, =
Woking, Surrey, GU21 6DB.
This message contains information that may be privileged or confidential =
and is the property of the Capgemini Group. It is intended only for the =
person to whom it is addressed. If you are not the intended recipient, =
you are not authorized to read, print, retain, copy, disseminate, =
distribute, or use this message or any part thereof. If you receive this =
message in error, please notify the sender immediately and delete all =
copies of this message.
------_=_NextPart_001_01CAD64D.5B61484E
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoToc2, li.MsoToc2, div.MsoToc2
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:12.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
p.MsoToc3, li.MsoToc3, div.MsoToc3
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:22.0pt;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:Arial;
font-style:italic;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p.DefinitionList, li.DefinitionList, div.DefinitionList
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:18.0pt;
margin-bottom:.0001pt;
text-autospace:none;
font-size:12.0pt;
font-family:"Times New Roman";}
p.DefinitionTerm, li.DefinitionTerm, div.DefinitionTerm
{margin:0cm;
margin-bottom:.0001pt;
text-autospace:none;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle21
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
span.CODE
{font-family:"Courier New";}
[at] page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-GB link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi there,<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I am having troubles with the switch over between GMT =
and
BST with respect to the entries going in the log files, I am using =
apache
2.0.55 BTW.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The timezones on our servers are set to GB and during
British Wintertime the log file entries are stamped correctly, however =
when
moving to BST I have to add the following to the apache startup script =
to get
the timestamps in BST format.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>TZ=3DGMT0BST<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>export TZ<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>And obviously remember to take this out when =
returning back
to GMT in October.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>For the actual logfile configuration I use the =
following:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Logformat "%{%Y-%m-%d %H:%M:%S}t =
%{X-Forwarded-For}i
%{host}i %r %s %b %D %q %{User-Agent}i %{IR_PORTAL_COOKIE}C =
%{Referer}i"
ORU_extended<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>CustomLog "|/opt/app/apache/bin/rotatelogs
/opt/app/apache/logs/site_access_log.%Y-%m-%d 86400" =
ORU_extended<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Is there any other way of ensuring the correct =
localtime
gets put into the logfile entries?? I have tried using %X in place of =
%H:%M:%S
but this has no effect.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Cheers<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Steve<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<p><font size=3D"2" face=3D"Arial">Capgemini is a trading name used by =
the Capgemini Group of companies which includes Capgemini UK plc, a =
company registered in England and Wales (number 943935) whose registered =
office is at No. 1 Forge End, Woking, Surrey, GU21 =
6DB.</font></p><p><font size=3D"2" face=3D"Arial">This message contains =
information that may be privileged or confidential and is the property =
of the Capgemini Group. It is intended only for the person to whom it is =
addressed. If you are not the intended recipient, you are not authorized =
to read, print, retain, copy, disseminate, distribute, or use this =
message or any part thereof. If you receive this message in error, =
please notify the sender immediately and delete all copies of this =
message.</font></p></body>
</html>
------_=_NextPart_001_01CAD64D.5B61484E--
