Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/discovery] Remove severity_text from log evaluation statement config #4583

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Apr 1, 2024

Remove severity_text field from statements config and emitted logs.

This is needed for moving from discovery logs to entity events. The value from the severity_text field is just added as severity text to emitted log message which is not being used by the discovery config provider. Even if the evaluated log record has it's own log level, it will be overridden by the severity_text value set in the statement. And all the discovery statements have "info" values set in the severity_text field.

Later, we might want to add a level field in the statement that would be used to filter logs by a specific level, but it's not how the severity_text used right now.

@dmitryax
Copy link
Contributor Author

dmitryax commented Apr 1, 2024

linkChecked fix #4584

@dmitryax dmitryax changed the title [discovery/receiver] Remove severity_text [discovery/receiver] Remove severity_text from log evaluation statement config Apr 1, 2024
Remove severity_text field from statements config and emitted logs.

This is needed for moving from discovery logs to entity events. The value from the severity_text field is just added as severity text to emitted log message which is not being used by the discovery config provider. Even if the evaluated log record has it's own log level, it will be overridden by the severity_text value set in the statement. And all the discovery statements have "info" values set in the severity_text field.

Later, we might want to add a `level` field in the statement that would be used to filter logs by a specific level, but it's not how the severity_text used right now.
@dmitryax dmitryax changed the title [discovery/receiver] Remove severity_text from log evaluation statement config [receiver/discovery] Remove severity_text from log evaluation statement config Apr 1, 2024
@dmitryax dmitryax merged commit 27da309 into main Apr 2, 2024
110 checks passed
@dmitryax dmitryax deleted the remove-log-severity branch April 2, 2024 00:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants