Bug 1013142

Summary: logconv.pl -m time calculation is wrong
Product: Red Hat Enterprise Linux 6 Reporter: Rich Megginson <rmeggins>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Sankar Ramalingam <sramling>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: jgalipea, nhosoi, nkinder, rmeggins, srkrishn
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.11.15-34.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 07:51:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1061410    

Description Rich Megginson 2013-09-27 22:01:07 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47341

using logconv.pl -m - the first field is the time from the access log - the second field is the gmtime time_t value of the first field - converting the gmtime value back to the original date does not work.

for CBP

Comment 3 Sankar Ramalingam 2014-06-19 09:09:23 UTC
Request you to add steps to verify bugzilla

Comment 4 Rich Megginson 2014-06-19 14:17:26 UTC
(In reply to Sankar Ramalingam from comment #3)
> Request you to add steps to verify bugzilla

Use logconv.pl with the -m or the -M option - verify that the timestamp field in the -m/-M report matches the access log timestamp.  The timestamp field is the first column in the -m/-M report.  It is in unix time_t format.  You can convert to a "human readable" format like this:

$ date --date='@1400000000'
Tue May 13 10:53:20 MDT 2014

Replace 1400000000 with the timestamp field from the -m/-M report.

Comment 5 srkrishn@redhat.com 2014-07-18 07:33:31 UTC
this bug has been verified:

logconv.pl -M /tmp/access /var/log/dirsrv/slapd-hp-ms-01-c04/access.20140717-022403 

18/Jul/2014:01:28:00 -0400,1405661280,434,0,217,0,0,
[root@hp-ms-01-c04 tmp]# 
[root@hp-ms-01-c04 tmp]# date --date='@1405661280'
Fri Jul 18 01:28:00 EDT 2014

this was tested on the build : 1.2.11.15.38-289-ds-base

Comment 6 Sankar Ramalingam 2014-07-31 10:12:04 UTC
Marking the bug as Verified, based on the previous comment from Sriram,

Comment 7 errata-xmlrpc 2014-10-14 07:51:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1385.html