Bug 1966955

Summary: Globs in logrotate config don't match logs written by default Suricata config
Product: [Fedora] Fedora EPEL Reporter: Ulrik Haugen <ulrik.haugen>
Component: suricataAssignee: Steve Grubb <sgrubb>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: ish, jmlich83, jtfas90, sgrubb
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 03:36:06 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:

Description Ulrik Haugen 2021-06-02 08:47:25 UTC
Description of problem:
The packaged logrotate configuration tries to rotate /var/log/suricata*.log and /var/log/suricata*.json rather than /var/log/suricata/*.log and /var/log/suricata/*.json.

Version-Release number of selected component (if applicable):
# rpm -q suricata
suricata-4.1.10-1.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install package
2. Check /etc/logrotate.d/suricata

Actual results:
First non comment line is "/var/log/suricata*.log /var/log/suricata*.json {"

Expected results:
First non comment line is "/var/log/suricata/*.log /var/log/suricata/*.json {"

Additional info:
Presumably this is caused by suricata-4.1.9-log-path-fixup.patch stripping the trailing slash from e_logdir in configure.ac without patching etc/suricata.logrotate.in.

Comment 1 Troy Dawson 2024-07-09 03:36:06 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.