RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1242531 - logconv.pl should handle *.tar.xz, *.txz, *.xz log files
Summary: logconv.pl should handle *.tar.xz, *.txz, *.xz log files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-13 13:56 UTC by Simon Pichugin
Modified: 2020-09-13 21:28 UTC (History)
2 users (show)

Fixed In Version: 389-ds-base-1.3.4.0-8.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:43:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Actual results for `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz` (8.56 KB, text/plain)
2015-07-13 13:56 UTC, Simon Pichugin
no flags Details
Expected results for `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz` (2.21 KB, text/plain)
2015-07-13 13:57 UTC, Simon Pichugin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1555 0 None None None 2020-09-13 21:28:01 UTC
Red Hat Product Errata RHBA-2015:2351 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2015-11-19 10:28:44 UTC

Description Simon Pichugin 2015-07-13 13:56:10 UTC
Created attachment 1051426 [details]
Actual results for `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz`

Description of problem:
Log files in the /var/log/dirsrv/slapd-DOMAIN may be zipped into tar.xz, txz or xz. By documentation, logconv.pl should handle them and extract an information from them. There is an error instead.

Version-Release number of selected component (if applicable):
389-ds-base-1.3.3.1-13.el7.src.rpm

How reproducible:
always

Steps to Reproduce:
1. Install RHDS 10;
2. Setup and run the server;
3. Add some entries to the database;
4. Create tar.xz, txz and xz files from /var/log/dirsrv/slapd-DOMAIN/access file;
5. Run `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.tar.xz`
6. Run `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.txz`
7. Run `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz`

Actual results:
1. For `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.tar.xz`
Access Log Analyzer 8.1
Command: logconv.pl access.tar.xz
Processing 1 Access Log(s)...

[001] access.tar.xz                 	size (bytes):         1320
There was no logging to process, exiting...
Cleaning up temp files...
Done.

2. For Run `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.txz`
Access Log Analyzer 8.1
Command: logconv.pl access.txz
Processing 1 Access Log(s)...

[001] access.txz                    	size (bytes):         1320
There was no logging to process, exiting...
Cleaning up temp files...
Done.

3. For `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz`
Look in the attachments for access_actual_log_xz.txt

Expected results:
Logs should be parsed correctly:
Look in the attachments for access_expected_log_xz.txt

Comment 1 Simon Pichugin 2015-07-13 13:57:02 UTC
Created attachment 1051427 [details]
Expected results for `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz`

Comment 2 Simon Pichugin 2015-07-13 14:02:21 UTC
Reference for compressed file feature:
https://bugzilla.redhat.com/show_bug.cgi?id=1044188

Comment 4 Rich Megginson 2015-07-14 00:27:11 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/48224

Comment 5 Rich Megginson 2015-07-14 18:54:43 UTC
To ​ssh://git.fedorahosted.org/git/389/ds.git

    8495afa..d1b0acd master -> master

commit d1b0acd12faa620774c66044f91e509ae175e4a1
Author: Rich Megginson <​rmeggins>
To ​ssh://git.fedorahosted.org/git/389/ds.git

    3bf1daa..4f3b802 389-ds-base-1.3.4 -> 389-ds-base-1.3.4

commit 4f3b802fac46adfa8fd5cf49443b875f136fb19c
Author: Rich Megginson <​rmeggins>
Date: Mon Jul 13 18:27:50 2015 -0600

To ​ssh://git.fedorahosted.org/git/389/ds.git

    7a05195..3414c4e 389-ds-base-1.3.3 -> 389-ds-base-1.3.3

commit 3414c4eb8416d47e18013706c0d31cb762cdd31e
Author: Rich Megginson <​rmeggins>
Date: Mon Jul 13 18:27:50 2015 -0600

Comment 10 Rich Megginson 2015-07-20 17:56:06 UTC
To ssh://git.fedorahosted.org/git/389/ds.git
   dfcfa55..c81f40a  389-ds-base-1.3.3 -> 389-ds-base-1.3.3
   16b95b1..0e31d81  389-ds-base-1.3.4 -> 389-ds-base-1.3.4
   34ffa6c..29043c5  master -> master

Comment 11 Simon Pichugin 2015-07-24 08:28:12 UTC
Tested in build:
389-ds-base-1.3.4.0-8.el7.x86_64

After reproducing all steps got expected results. Works fine.

Marking as VERIFIED.

Comment 12 errata-xmlrpc 2015-11-19 11:43:04 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.

https://rhn.redhat.com/errata/RHBA-2015-2351.html


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