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
Copy file name to clipboardExpand all lines: docs/user/filter-and-process/ottl-transform-and-filter/ottl-transform.md
+57-1Lines changed: 57 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ Use transformations to modify telemetry data as it flows through a pipeline. You
7
7
You define these rules in the `transform` section of your Telemetry pipeline's `spec`.
8
8
9
9
Each rule in the `transform` list contains:
10
+
10
11
-`statements`: One or more OTTL functions that modify the data. These are the actions that you want to perform.
11
12
-`conditions` (optional): One or more OTTL conditions that must be met. If you provide conditions, the statements only run on data that matches at least one of the conditions.
If your application writes logs to stdout in a custom format, you can use a series of OTTL statements to parse these logs into structured data, so you can easily query and analyze them in your observability backend. The following example parses the payload and enriches core attributes:
60
+
61
+
```yaml
62
+
# In your LogPipeline spec
63
+
spec:
64
+
input:
65
+
application:
66
+
enabled: true
67
+
output:
68
+
otlp:
69
+
endpoint:
70
+
value: http://traces.example.com:4317
71
+
transform:
72
+
# Try to parse the body as custom parser (default spring boot logback)
73
+
# 2025-11-12T14:40:36.828Z INFO 1 --- [demo] [ main] c.e.restservice.RestServiceApplication : Started Application
0 commit comments