Skip to content

Commit

Permalink
Refactor receiver configs and update transformation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bardabun committed Apr 8, 2024
1 parent 5a9c841 commit 09c94ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/otel/processors/transform_application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ transform/application:
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")
- replace_all_patterns(body["event_data"], "key", "^data.([0-9A-Za-z]+).", "data_$${1}_") # Transforms 'data.<dynamic_part>.' keys. If <dynamic_part> is not empty, it formats as 'data_0_TargetUserName:"Administrator"'. Otherwise, it appears as 'data_0_:"Administrator"'.
2 changes: 1 addition & 1 deletion resources/otel/receivers/windowseventlog_application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ receiver:
windowseventlog/application/NAME:
channel: Application
exclude_providers: []
attributes:
resource:
type:

0 comments on commit 09c94ef

Please sign in to comment.