Bug 1013142 - logconv.pl -m time calculation is wrong
Summary: logconv.pl -m time calculation is wrong
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: 389-ds-base
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rich Megginson
QA Contact: Sankar Ramalingam
URL:
Whiteboard:
Depends On:
Blocks: 1061410
TreeView+ depends on / blocked
 
Reported: 2013-09-27 22:01 UTC by Rich Megginson
Modified: 2020-09-13 20:29 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-1.2.11.15-34.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-14 07:51:12 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 678 0 None None None 2020-09-13 20:29:29 UTC
Red Hat Product Errata RHBA-2014:1385 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2014-10-14 01:27:42 UTC

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


Note You need to log in before you can comment on or make changes to this bug.