log files time is wrong

bdj

Verified User
Joined
Feb 22, 2008
Messages
139
Hello,

I'm using FreeBSD 6.1.
When I SSH into the server and check the date/time with $ date
it return the same as my local/date time (Amsterdam GMT+1)

Now when I check one of the options: "Apache Usage Log Full Usage Log 10 lines 100 lines" log time is ok.

when I ftp into /domains/abcde.com/logs/ the log file contains date/time in the future.

I use webalizer to view log files.
 

chatwizrd

Verified User
Joined
Jul 3, 2005
Messages
2,007
Hello,

I'm using FreeBSD 6.1.
When I SSH into the server and check the date/time with $ date
it return the same as my local/date time (Amsterdam GMT+1)

Now when I check one of the options: "Apache Usage Log Full Usage Log 10 lines 100 lines" log time is ok.

when I ftp into /domains/abcde.com/logs/ the log file contains date/time in the future.

I use webalizer to view log files.
Do you use ntpdate or any program to keep your time up to the standards?

Try command: ntpdate otc1.psu.edu

You can also put the following in /etc/rc.conf

ntpdate_enable="YES"
ntpdate_flags="otc1.psu.edu"
 

bdj

Verified User
Joined
Feb 22, 2008
Messages
139
I'm notting using ntpdate.

I think that it is a setting in webalizer.conf somewhere. Only where to find it :(
 

bdj

Verified User
Joined
Feb 22, 2008
Messages
139
This is a snip from my full usage log:
87.210.17.197 - - [22/Feb/2008:18:19:19 +0100]

When I go to webalizer for the same domain first of all it says:
Generated 23-Feb-2008 00:30 CET, basiclly webalizer is working in the future. Why is it reporting CET?

Thanks
 

bdj

Verified User
Joined
Feb 22, 2008
Messages
139
local time is: feb 24 00:03:00 GTM +1

date command: Sun Feb 24 00:03:32 CET 2008

So basicly my server is set to the wrong time zone? Thanks for pointing me in the right direction. How can I correct that
 
Last edited:

bdj

Verified User
Joined
Feb 22, 2008
Messages
139
Chatwzrd

Thanks for the help.

Unfortunatly it seems i'm confusing things. I'm in Amsterdam which is CET
Central European Time. CET is GMT(UTC)+1

So basicly both times in my previous post are the same.
:confused: :confused:
 
Top