Bug 1242531
Summary: | logconv.pl should handle *.tar.xz, *.txz, *.xz log files | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Simon Pichugin <spichugi> | ||||||
Component: | 389-ds-base | Assignee: | Noriko Hosoi <nhosoi> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.1 | CC: | nkinder, rmeggins | ||||||
Target Milestone: | rc | Keywords: | TestBlocker | ||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 389-ds-base-1.3.4.0-8.el7 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-11-19 11:43:04 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Created attachment 1051427 [details]
Expected results for `logconv.pl /var/log/dirsrv/slapd-DOMAIN/access.xz`
Reference for compressed file feature: https://bugzilla.redhat.com/show_bug.cgi?id=1044188 Upstream ticket: https://fedorahosted.org/389/ticket/48224 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 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 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. 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 |
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