Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Special field 'level' get rendered with the numeric value and not with syslogLevelToHuman() #1630

Closed
meixger opened this issue Oct 2, 2015 · 1 comment

Comments

@meixger
Copy link

meixger commented Oct 2, 2015

In the search result view and message detail view the special field 'level' get rendered with the numeric value from message.fields and not message.formatted_fields.

e.g. instead of Error [3] only 3 will be rendered.

Seems that the formatted value will be overridden by

possiblyHighlight(fieldName) {
    // No highlighting for the message details view.
    return this.props.message.fields[fieldName]; // <-- fields or formatted_fields ??
}

in https://github.com/Graylog2/graylog2-web-interface/blob/61f19aef35e4405c2a9866dd63b4eec073d6c04c/javascript/src/components/search/MessageShow.jsx#L9

@meixger
Copy link
Author

meixger commented Jun 21, 2016

seems the way to go in v2 is to add an extractor and use the converter 'Syslog Level From PRI'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant