Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logconv.pl should handle *.tar.xz, *.txz, *.xz log files #1555

Closed
389-ds-bot opened this issue Sep 12, 2020 · 11 comments
Closed

logconv.pl should handle *.tar.xz, *.txz, *.xz log files #1555

389-ds-bot opened this issue Sep 12, 2020 · 11 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48224


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
@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.3.3.13 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-14 06:32:15

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-14 21:47:42

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-14 23:25:52

To ssh://git.fedorahosted.org/git/389/ds.git
3bf1daa..4f3b802 389-ds-base-1.3.4 -> 389-ds-base-1.3.4
commit 4f3b802
Author: Rich Megginson richm@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 3414c4e
Author: Rich Megginson richm@redhat.com
Date: Mon Jul 13 18:27:50 2015 -0600

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2015-07-15 00:31:25

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-16 02:17:25

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-16 05:32:09

To ssh://git.fedorahosted.org/git/389/ds.git
3414c4e..971dc48 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit 971dc48
Author: Rich Megginson richm@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 8473ae0
Author: Rich Megginson richm@redhat.com
Date: Wed Jul 15 14:09:24 2015 -0600
cc435b8..ae5b62f master -> master
commit ae5b62f
Author: Rich Megginson richm@redhat.com
Date: Wed Jul 15 14:09:24 2015 -0600

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-16 22:28:35

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 0704386
Author: Rich Megginson richm@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 9109a57
Author: Rich Megginson richm@redhat.com
Date: Thu Jul 16 09:06:45 2015 -0600
ae5b62f..193d79d master -> master
commit 193d79d
Author: Rich Megginson richm@redhat.com
Date: Thu Jul 16 09:06:45 2015 -0600

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2015-07-17 23:26:57

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-20 22:32:58

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

@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2015-07-20 23:55:03

To ssh://git.fedorahosted.org/git/389/ds.git
dfcfa55..c81f40a 389-ds-base-1.3.3 -> 389-ds-base-1.3.3
commit c81f40a
Author: Rich Megginson richm@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 0e31d81
Author: Rich Megginson richm@redhat.com
Date: Mon Jul 20 10:31:46 2015 -0600
34ffa6c..29043c5 master -> master
commit 29043c5
Author: Rich Megginson richm@redhat.com
Date: Mon Jul 20 10:31:46 2015 -0600

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2017-02-11 22:58:01

Metadata Update from @nhosoi:

  • Issue assigned to richm
  • Issue set to the milestone: 1.3.3.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant