You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Configure the `transform` processor** and name it `/logs`.
10
-
By using the `-context: resource` key we are targeting the **resourceLog** attributes of logs.
9
+
**Configure the `transform` processor** and name it `/logs`: By using the `-context: resource` key we are targeting the **resourceLog** attributes of logs.
11
10
This configuration ensures that only the relevant resource attributes (`com.splunk.sourcetype`, `host.name`, `otelcol.service.mode`) are retained, improving log efficiency and reducing unnecessary metadata.
12
11
13
12
```yaml
@@ -18,8 +17,7 @@ This configuration ensures that only the relevant resource attributes (`com.splu
**Adding a Context Block for Log Severity Mapping**:
22
-
To properly set the `severity_text` and `severity_number` fields of a log record, we add another log `context` block within `log_statements`.
20
+
**Adding a Context Block for Log Severity Mapping**: To properly set the `severity_text` and `severity_number` fields of a log record, we add another log `context` block within `log_statements`.
23
21
This configuration extracts the `level` value from the log body, maps it to `severity_text`, and assigns the appropriate `severity_number`:
24
22
25
23
```yaml
@@ -45,7 +43,7 @@ This configuration extracts the `level` value from the log body, maps it to `sev
45
43
- **Map Severity Text**: Assigns severity_text from the log’s level attribute.
0 commit comments