Bug 1209165
| Summary: | [RFE] Multiple ErrorLog directives | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Pat Riehecky <riehecky> |
| Component: | httpd | Assignee: | Tomas Korbar <tkorbar> |
| Status: | CLOSED MIGRATED | QA Contact: | rhel-cs-infra-services-qe <rhel-cs-infra-services-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.4 | CC: | aferreir, csieh, jorton, luhliari, misterbonnie, tkorbar |
| Target Milestone: | rc | Keywords: | FutureFeature, MigratedToJIRA, Triaged |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-21 19:06:25 UTC | Type: | Story |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1473733, 1562205, 1654421 | ||
|
Description
Pat Riehecky
2015-04-06 14:25:02 UTC
If this is still a priority for you can you file a support ticket? Possibly this is something we could do for httpd >= 2.5. Ticket opened Thanks Pat. I don't want to raise expectations too high here, it might be something that we can do in RHEL7 httpd, but we can look at it for the future. Any news on this? Just swinging back around on this one.... Moving to the RHEL8 backlog. I have some ideas about how to implement this upstream, but it's quite a tricky one. Hi Patrick, Would the possibility to define both log file and syslog facility be sufficient to you? like this: ErrorLog "logs/error_log" ErrorLog syslog:local6 Httpd would be logging both to syslog and file, but there would be limitation that there can still be only one log file. Thanks for any response. My ideal world would be where I can set multiple logfiles and a syslog stream. ie: ErrorLog "logs/error_log" ErrorLog "logs/sitename.example.com/error_log" ErrorLog syslog:local6 For my actual use case, one log file and a syslog stream would be sufficient. ie: ErrorLog "logs/error_log" ErrorLog syslog:local6 You will be able to achieve this with pipe to tee utility. More specifically your multiple log files use case: ErrorLog "logs/error_log" ErrorLog "logs/sitename.example.com/error_log" ErrorLog syslog:local6 Will look like: ErrorLog "| /usr/bin/tee logs/error_log logs/sitename.example.com/error_log" ErrorLog syslog:local6 So long as I can specify multiple elements, I'm fine with that. I can confirm on CentOS Stream 9 (roughly RHEL 9.2) that whatever is the last element specified is the only one used currently. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |