-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated opentelemetry-collector version * Fix Empty Fields in event_data for Application Channel Logs Enhanced log processing for the application channel by flattening event_data and correcting field names with regex. This solution addresses issues with empty fields in event_data, ensuring more consistent and readable log entries. Changes include deep flattening and pattern replacement to standardize data field names.
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
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
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,8 @@ | ||
transform: | ||
error_mode: ignore | ||
log_statements: | ||
- context: log | ||
statements: | ||
- flatten(body["event_data"], depth=1) | ||
- flatten(body["event_data"], depth=2) | ||
- replace_all_patterns(body["event_data"], "key", "data.([0-9]).", "data_$$1") |
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