Bug 1496261
Summary: | log throttling reuses log position file | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Rich Megginson <rmeggins> |
Component: | Logging | Assignee: | ewolinet |
Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.7.0 | CC: | aos-bugs, ewolinet, rmeggins |
Target Milestone: | --- | ||
Target Release: | 3.8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: |
Feature: When using log throttling for EFK, we create a new pos file for the different throttled inputs.
Reason: Per fluentd recommendation, pos files should not be shared.
Result: When using throttled logging, we expect to see multiple pos files per a throttle input. When throttling is disabled we copy the file positions back into the unified pos file to minimize duplication of records.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-03-28 14:07:14 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
Rich Megginson
2017-09-26 20:07:32 UTC
Blocked by Bug 1532955 Should there is a pos file for each container under /var/log/? Should es-containers.log.pos be deleted? The following pos file are present during v3.9 testing. openshift3/logging-elasticsearch:v3.9.0-0.20.0.0 openshift-elasticsearch-plugin-2.4.4.17__redhat_1-3.el7.noarch # ls /var/log/| grep pos es-containers.log.pos journal.pos No, there may still be a containers.log.pos file that exists, however if you are throttling a specific namespace you should not see any entries for that namespace in the containers.log.pos file. To test this you will need to configure log throttling for Fluentd. You should see a pos file for each throttled namespace you have configured. How could I throttle a specific namespace? could you give me a example? Verified in openshift3/logging-fluentd/images/v3.9.0-0.21.0.0 Once throttle a specific namespace, The pos file is created and the pos pointer are move to this file from es-containers.log.pos -rw-r--r--. 1 root root 1199 Jan 18 05:13 es-container-logging.log.pos -rw-r--r--. 1 root root 164 Jan 18 05:14 es-container-openshift-operations.log.pos -rw-r--r--. 1 root root 2430 Jan 18 05:13 es-containers.log.pos 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://access.redhat.com/errata/RHBA-2018:0489 |