#48224 logconv.pl should handle *.tar.xz, *.txz, *.xz log files
Closed: wontfix Opened by rmeggins.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1242531

Created attachment 1051426
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

0001-Ticket-48224-logconv.pl-should-handle-.tar.xz-.txz-..patch
0001-Ticket-48224-logconv.pl-should-handle-.tar.xz-.txz-..patch

To ssh://git.fedorahosted.org/git/389/ds.git
8495afa..d1b0acd master -> master
commit d1b0acd12faa620774c66044f91e509ae175e4a1
Author: Rich Megginson rmeggins@redhat.com
Date: Mon Jul 13 18:27:50 2015 -0600

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@redhat.com
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@redhat.com
Date: Mon Jul 13 18:27:50 2015 -0600

Thanks, Rich! I'm resetting the milestone to 1.3.3.13.

0001-Ticket-48224-redux-logconv.pl-should-handle-.tar.xz-.patch
0001-Ticket-48224-redux-logconv.pl-should-handle-.tar.xz-.patch

To ssh://git.fedorahosted.org/git/389/ds.git
3414c4e..971dc48 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 971dc4808dceee80f601b216291a50260581b12f
Author: Rich Megginson rmeggins@redhat.com
Date: Wed Jul 15 14:09:24 2015 -0600
6ec1001..8473ae0 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit 8473ae0c49492dd7931dbdd3a8377119f53ce49b
Author: Rich Megginson rmeggins@redhat.com
Date: Wed Jul 15 14:09:24 2015 -0600
cc435b8..ae5b62f master -> master
commit ae5b62f53557c8ce2d174999c4b561ebc4ccde55
Author: Rich Megginson rmeggins@redhat.com
Date: Wed Jul 15 14:09:24 2015 -0600

fix spec file:

To ssh://git.fedorahosted.org/git/389/ds.git
971dc48..0704386 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 07043862bfbd7b202d9f90c6df24b1a9bb0615f3
Author: Rich Megginson rmeggins@redhat.com
Date: Thu Jul 16 09:06:45 2015 -0600
8473ae0..9109a57 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit 9109a570edd3ddb58434b19a9fca2f7c021b18ca
Author: Rich Megginson rmeggins@redhat.com
Date: Thu Jul 16 09:06:45 2015 -0600
ae5b62f..193d79d master -> master
commit 193d79d4a459b709c5a55cea88794105fa60c453
Author: Rich Megginson rmeggins@redhat.com
Date: Thu Jul 16 09:06:45 2015 -0600

Reopening for this comment...
https://bugzilla.redhat.com/show_bug.cgi?id=1242531#c9

0001-Ticket-48224-redux-2-logconv.pl-should-handle-.tar.x.patch
0001-Ticket-48224-redux-2-logconv.pl-should-handle-.tar.x.patch

To ssh://git.fedorahosted.org/git/389/ds.git
dfcfa55..c81f40a 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit c81f40ad42c7def0b6da612d4ddf44e877d601b8
Author: Rich Megginson rmeggins@redhat.com
Date: Mon Jul 20 10:31:46 2015 -0600
16b95b1..0e31d81 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit 0e31d818366e846f45c60b2c24bdb8026a82c048
Author: Rich Megginson rmeggins@redhat.com
Date: Mon Jul 20 10:31:46 2015 -0600
34ffa6c..29043c5 master -> master
commit 29043c5716a1bc8364689d518cb4e35722eaaf77
Author: Rich Megginson rmeggins@redhat.com
Date: Mon Jul 20 10:31:46 2015 -0600

Metadata Update from @nhosoi:
- Issue assigned to rmeggins
- Issue set to the milestone: 1.3.3.13

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1555

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

Metadata