Skip to content

Commit e0a9257

Browse files
committed
Formatting fix
1 parent cf353f5 commit e0a9257

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

content/en/ninja-workshops/10-advanced-otel/7-transform-data/7-1-configuration.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ weight: 1
66

77
{{% notice title="Exercise" style="green" icon="running" %}}
88

9-
**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.
1110
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.
1211

1312
```yaml
@@ -18,8 +17,7 @@ This configuration ensures that only the relevant resource attributes (`com.splu
1817
- keep_keys(attributes, ["com.splunk.sourcetype", "host.name", "otelcol.service.mode"])
1918
```
2019
21-
**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`.
2321
This configuration extracts the `level` value from the log body, maps it to `severity_text`, and assigns the appropriate `severity_number`:
2422

2523
```yaml
@@ -45,7 +43,7 @@ This configuration extracts the `level` value from the log body, maps it to `sev
4543
- **Map Severity Text**: Assigns severity_text from the log’s level attribute.
4644
- **Assign Severity Numbers**: Converts severity levels into standardized numerical values.
4745

48-
You should have a **SINGLE** `transform` processor containing two context blocks: one for `resource` and one for `log`.
46+
You should have a **single** `transform` processor containing two context blocks: one for `resource` and one for `log`.
4947

5048
This configuration ensures that log severity is correctly extracted, standardized, and structured for efficient processing.
5149

0 commit comments

Comments
 (0)