This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Timestamp in logs

Version: 3.216
In HTTP Proxy log the timestamp is as far as I can see in Julian format. 
Is there any way to get this timestamp in regular "decimal" way? 
Any help /tips would be appreciated!   


This thread was automatically locked due to age.
Parents
  • I asked this question in oct. last year, and I havn't found any solutions to this.

    It make reading log files very diffucult.

    What is the reason for the format and how to change it to "normal" hour:min:sec?

    Regards, Lars.  
  • Strange that no one from Astaro replies to our question.... I doubt that we are the only two using ASL that want to have a regular timeformat....  
  • Beats me too.

    Are we the only one who has problems with this???

    Anyone???

    Regards, Lars. 
  • Hi you both !

    Got the same problem here. I had to wrote a program in Delphi to convert the Unix timestamp to normal one.

    Did'nt find anything on ASL yet !!  
  • Hello alltogether,

    if you want to convert it on ASL directly you could play arround with Perl

     Code:
    perl -e 'print scalar localtime(unix-timestamp)'
      

     

    read you
    o|iver

      
  • Well, rather than to fool around with perl (I am not a programmer), I would like to have Astaro print local time directly into the logfiles instantly. Is this a feature to come, or can I allready by now get localtime into the httpd logs?

    Regards, Lars.  
  • Or is there any other tool available, to make reports out of the log files. If possible running on win32. [:S]   
  • I'm confused by what you're asking for--I'm sure it must be my own ignorance but how about translating?   

    In my SMTP log I find the following entry:

    May 28 16:56:21 (none) exim[14585]: 2003-05-28 16:56:21 19LAmH-0003nE-00 => (email address deleted for obvious reasons)

    I go back to my email client and I notice that, whadda ya know, I have an email sent out yesterday, May 28, at 4:56 pm local time, just like the logfile says!  What are you looking for that's different?

    Cheers,

    Dan   
  • Maybe I can clarify on this. We are talking about two things here: timestamp in HTTP proxy log and SMTP log.

    There are no problems reading timestamps in any log file - exept for the HTTP proxy log.

    A part of what I do for a living is to install firewalls for individual companies - and some of them likes to view the logfiles themself from time to time. It is not possible for ordinary users to figure out what time a specific users accessed a specific page. I would like to have Astaro stamp the time in the HTTP proxy log file as it does on all the other logs. And I can't see, why this has to be so hard to get.

    Regards, Lars.  
  • The http proxy logfile use a unix timestamp which is based on the number of seconds that has past sine 01-01-1970. They are also in GMT based on your timezone. You can use the VB or VBA DateAdd function to determine actual date from the time stamps

      
Reply
  • The http proxy logfile use a unix timestamp which is based on the number of seconds that has past sine 01-01-1970. They are also in GMT based on your timezone. You can use the VB or VBA DateAdd function to determine actual date from the time stamps

      
Children
No Data