Bug 1515448
| Summary: | [3.7] Aggregated Logging replacing all log levels with '3' and '6' after upgrade to 3.5 from 3.4 | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rich Megginson <rmeggins> |
| Component: | Logging | Assignee: | Rich Megginson <rmeggins> |
| Status: | CLOSED ERRATA | QA Contact: | Anping Li <anli> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.7.0 | CC: | anli, antti.niskanen, aos-bugs, jcantril, rmeggins, trankin |
| Target Milestone: | --- | ||
| Target Release: | 3.7.z | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Fluentd was adding the level field with a value of 3 or 6, overwriting any existing level field.
Consequence: The level field set by the application was being removed, and the '3' or '6' value was not useful.
Fix: If there is already a `level` field in the record, then see if it is
a "close" match to one of the canonical `level` field values at
https://github.com/ViaQ/elasticsearch-templates/blob/master/namespaces/_default_.yml#L63
e.g. if `level` is "CRITICAL", convert to "crit", if level
is "WARN" convert to 'warning', etc.
Otherwise, if we cannot use it directly or normalize it, convert
it to its string representation (ruby `to_s` method) and store
the string value in the `level` field.
Result: If the record already has a level field, the value is normalized or preserved, otherwise, a value like `info` or `err` is used.
|
Story Points: | --- |
| Clone Of: | 1515447 | Environment: | |
| Last Closed: | 2018-04-05 09:32:08 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: | |||
| Bug Depends On: | 1514110, 1515447 | ||
| Bug Blocks: | |||
|
Description
Rich Megginson
2017-11-20 19:40:16 UTC
Commits pushed to master at https://github.com/openshift/origin-aggregated-logging https://github.com/openshift/origin-aggregated-logging/commit/ae9dcff602d92285a322674d18d4c42e990ad3e5 Bug 1515448 - [3.7] Aggregated Logging replacing all log levels with '3' and '6' after upgrade to 3.5 from 3.4 https://bugzilla.redhat.com/show_bug.cgi?id=1515448 Use fluent-plugin-viaq_data_model-0.0.12 https://github.com/openshift/origin-aggregated-logging/commit/c7235234d8fcc1eeedfff81725dbf4a15fb81b02 Merge pull request #791 from richm/bug-1515448 Automatic merge from submit-queue. Bug 1515448 - [3.7] Aggregated Logging replacing all log levels with '3' and '6' after upgrade to 3.5 from 3.4 https://bugzilla.redhat.com/show_bug.cgi?id=1515448 Use fluent-plugin-viaq_data_model-0.0.12 /test koji_builds: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=631910 repositories: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:rhaos-3.7-rhel-7-docker-candidate-10416-20171211201451 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:latest brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.7.15 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.7.15-2 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/logging-fluentd:v3.7 This is fixed in https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=631552 logging-fluentd-docker-v3.7.14-2 which is included in https://errata.devel.redhat.com/advisory/31700 RHBA-2017:31700-01 OpenShift Container Platform 3.7.z images update Verified with openshift3/logging-fluentd/images/v3.7.14-5 When level is set in json array. it use its value instead of stream 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:0636 |