From 36267a16e7c38b4e663ceb406428afded790205f Mon Sep 17 00:00:00 2001 From: Bar Date: Mon, 8 Apr 2024 16:40:37 +0300 Subject: [PATCH] update windowseventlog files --- resources/otel/receivers/filelog.yaml | 8 ++++---- resources/otel/receivers/windowseventlog_application.yaml | 2 +- resources/otel/receivers/windowseventlog_security.yaml | 4 ++-- resources/otel/receivers/windowseventlog_system.yaml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/otel/receivers/filelog.yaml b/resources/otel/receivers/filelog.yaml index e4fceb660..2c2e8a5e4 100644 --- a/resources/otel/receivers/filelog.yaml +++ b/resources/otel/receivers/filelog.yaml @@ -9,7 +9,7 @@ mac_run: | fi done - set_yaml_file_field_value "$OTEL_RECEIVERS_DIR/filelog.yaml" '.receiver.filelog/NAME.attributes.type' "$LOGS_TYPE" + set_yaml_file_field_value "$OTEL_RECEIVERS_DIR/filelog.yaml" '.receiver.filelog/NAME.resource.type' "$LOGS_TYPE" if [[ $? -ne 0 ]]; then echo -e "error setting type to filelog receiver: $(get_task_error_message)" >"$TASK_ERROR_FILE" return 3 @@ -26,7 +26,7 @@ linux_run: | fi done - set_yaml_file_field_value "$OTEL_RECEIVERS_DIR/filelog.yaml" '.receiver.filelog/NAME.attributes.type' "$LOGS_TYPE" + set_yaml_file_field_value "$OTEL_RECEIVERS_DIR/filelog.yaml" '.receiver.filelog/NAME.resource.type' "$LOGS_TYPE" if [[ $? -ne 0 ]]; then echo -e "error setting type to filelog receiver: $(get_task_error_message)" >"$TASK_ERROR_FILE" return 3 @@ -60,7 +60,7 @@ windows_run: | } } - $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\filelog.yaml" '.receiver.filelog/NAME.attributes.type' $LogsType + $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\filelog.yaml" '.receiver.filelog/NAME.resource.type' $LogsType if ($Err.Count -ne 0) { Write-Output "error setting type to filelog receiver: $($Err[0])" return 4 @@ -77,5 +77,5 @@ receiver: - type: move from: attributes["log.file.path"] to: attributes["log_file_path"] - attributes: + resource: type: diff --git a/resources/otel/receivers/windowseventlog_application.yaml b/resources/otel/receivers/windowseventlog_application.yaml index f53960d71..904532308 100644 --- a/resources/otel/receivers/windowseventlog_application.yaml +++ b/resources/otel/receivers/windowseventlog_application.yaml @@ -20,7 +20,7 @@ windows_run: | return 1 } - $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\windowseventlog_application.yaml" '.receiver.windowseventlog/application/NAME.attributes.type' $LogsType + $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\windowseventlog_application.yaml" '.receiver.windowseventlog/application/NAME.resource.type' $LogsType if ($Err.Count -ne 0) { Write-Output "error setting type to windowseventlog/application receiver: $($Err[0])" return 3 diff --git a/resources/otel/receivers/windowseventlog_security.yaml b/resources/otel/receivers/windowseventlog_security.yaml index 6f8de4e2a..e79189f16 100644 --- a/resources/otel/receivers/windowseventlog_security.yaml +++ b/resources/otel/receivers/windowseventlog_security.yaml @@ -20,7 +20,7 @@ windows_run: | return 1 } - $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\windowseventlog_security.yaml" '.receiver.windowseventlog/security/NAME.attributes.type' $LogsType + $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\windowseventlog_security.yaml" '.receiver.windowseventlog/security/NAME.resource.type' $LogsType if ($Err.Count -ne 0) { Write-Output "error setting type to windowseventlog/security receiver: $($Err[0])" return 2 @@ -29,5 +29,5 @@ windows_run: | receiver: windowseventlog/security/NAME: channel: Security - attributes: + resource: type: \ No newline at end of file diff --git a/resources/otel/receivers/windowseventlog_system.yaml b/resources/otel/receivers/windowseventlog_system.yaml index ff2ca71b0..f39ffb1dc 100644 --- a/resources/otel/receivers/windowseventlog_system.yaml +++ b/resources/otel/receivers/windowseventlog_system.yaml @@ -20,7 +20,7 @@ windows_run: | return 1 } - $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\windowseventlog_system.yaml" '.receiver.windowseventlog/system/NAME.attributes.type' $LogsType + $local:Err = Set-YamlFileFieldValue "$LogzioTempDir\resources\otel\receivers\windowseventlog_system.yaml" '.receiver.windowseventlog/system/NAME.resource.type' $LogsType if ($Err.Count -ne 0) { Write-Output "error setting type to windowseventlog/system receiver: $($Err[0])" return 2 @@ -29,5 +29,5 @@ windows_run: | receiver: windowseventlog/system/NAME: channel: System - attributes: + resource: type: \ No newline at end of file