Skip to content

Commit

Permalink
Add type globally & Fix log file path & name attributes location
Browse files Browse the repository at this point in the history
- The log type: `agent-windows` will be added to all logs and not per receiver
- Bug where the log file attributes weren't sent in the resource log was fixed.
  • Loading branch information
ralongit committed May 5, 2024
1 parent 7e7b0d5 commit 6058536
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
7 changes: 5 additions & 2 deletions resources/otel/processors/resource_agent.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
resource/agent:
attributes:
- key: logzio_agent_version
value: v1.1.21
action: upsert
value: v1.1.32
action: upsert
- key: type
value: agent-windows
action: upsert
6 changes: 2 additions & 4 deletions resources/otel/receivers/filelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ receiver:
operators:
- type: move
from: attributes["log.file.name"]
to: attributes["log_file_name"]
to: resource["log_file_name"]
- type: move
from: attributes["log.file.path"]
to: attributes["log_file_path"]
resource:
type:
to: resource["log_file_path"]
4 changes: 1 addition & 3 deletions resources/otel/receivers/windowseventlog_application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,4 @@ windows_run: |
receiver:
windowseventlog/application/NAME:
channel: Application
exclude_providers: []
resource:
type:
exclude_providers: []
4 changes: 1 addition & 3 deletions resources/otel/receivers/windowseventlog_security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ windows_run: |
}
receiver:
windowseventlog/security/NAME:
channel: Security
resource:
type:
channel: Security
4 changes: 1 addition & 3 deletions resources/otel/receivers/windowseventlog_system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ windows_run: |
}
receiver:
windowseventlog/system/NAME:
channel: System
resource:
type:
channel: System

0 comments on commit 6058536

Please sign in to comment.