-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[exporter/datasetexporter] Various improvements and fixes for the Dat…
…aSet Log Exporter plugin (#23672) # Related issue #20660 ## Remove OtelExporter - Log - prefix from all the DataSet event message fields This prefix was added in the past for testing purposes, but it's not desired. ## Correctly handle LogRecord severity The code has been updated to correctly map ``LogRecord.SeverityNumber`` and ``LogRecord.SeverityText`` field value to the DataSet event log event severity (https://app.scalyr.com/help/parsing-logs#specialAttrs, https://github.com/scalyr/logstash-output-scalyr/blob/master/lib/logstash/outputs/scalyr.rb#L70) Redundant `severity.number` and `severity.text` attribute has also been removed from DataSet event. ## Remove redundant flags and flags.is_sampled attribute I removed redundant `flags` and `flags.is_sampled` attribute from the DataSet events. DataSet doesn't do anything with those fields and they are also redundant - if event is ingested into DataSet and displayed in the UI this means it has already been sampled so `flags.is_sampled` tells us no new information. --------- Co-authored-by: tomas.zdara <tomas.zdara@sentinelone.com>
- Loading branch information
1 parent
f3e4755
commit 72098b5
Showing
3 changed files
with
310 additions
and
27 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.chloggen/dataset-exporter-various-improvements-and-fixes.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
# If your change doesn't affect end users, such as a test fix or a tooling change, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: exporter/datasetexporter | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Correctly map LogRecord severity to DataSet severity, remove redundant DataSet event message field prefix (OtelExporter - Log -) and remove redundant DataSet event fields (flags, flags.is_sampled)." | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [20660, 23672] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.