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 dmitryax requested review from a team as code owners April 1, 2024 22:46
@dmitryax dmitryax force-pushed the remove-log-severity branch from b46c632 to 60fb418 Compare April 1, 2024 23:01
@dmitryax
Copy link
Contributor Author

dmitryax commented Apr 1, 2024

linkChecked fix #4584

@dmitryax dmitryax force-pushed the remove-log-severity branch from 60fb418 to 2904a06 Compare April 1, 2024 23:13
@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 force-pushed the remove-log-severity branch from 2904a06 to 847e37e Compare April 1, 2024 23:43
@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.

2 participants