@@ -6,7 +6,7 @@ This processor differs from the stream processor interface that runs after filte
66
77{% hint style="info" %}
88
9- Only [ YAML configuration files] ( ../administration/configuring-fluent-bit/yaml/README.md ) support processors.
9+ Only [ YAML configuration files] ( ../../ administration/configuring-fluent-bit/yaml/README.md ) support processors.
1010
1111{% endhint %}
1212
@@ -25,19 +25,19 @@ The following example generates a sample message with the keys `key` and `http.u
2525
2626``` yaml
2727pipeline :
28- inputs :
29- - name : dummy
30- dummy : ' {"key1": "123.4", "http.url": "https://fluentbit.io/search?q=docs"}'
31-
32- processors :
33- logs :
34- - name : sql
35- query : " SELECT http.url FROM STREAM;"
36-
37- outputs :
38- - name : stdout
39- match : ' *'
40- format : json_lines
28+ inputs :
29+ - name : dummy
30+ dummy : ' {"key1": "123.4", "http.url": "https://fluentbit.io/search?q=docs"}'
31+
32+ processors :
33+ logs :
34+ - name : sql
35+ query : " SELECT http.url FROM STREAM;"
36+
37+ outputs :
38+ - name : stdout
39+ match : ' *'
40+ format : json_lines
4141` ` `
4242
4343{% endtab %}
@@ -52,24 +52,24 @@ The following example is similar to the previous example, but additionally extra
5252
5353` ` ` yaml
5454pipeline:
55- inputs:
56- - name: dummy
57- dummy: '{"key1": "123.4", "http.url": "https://fluentbit.io/search?q=docs"}'
58-
59- processors:
60- logs:
61- - name: content_modifier
62- action: extract
63- key: "http.url"
64- pattern: ^(?<http_protocol>https?):\/\/ (?<http_domain>[^\/ \? ]+)(?<http_path>\/ [^?]*)?(?:\? (?<http_query_params>.*))?
65-
66- - name: sql
67- query: "SELECT http_domain FROM STREAM;"
68-
69- outputs:
70- - name : stdout
71- match: '*'
72- format: json_lines
55+ inputs:
56+ - name: dummy
57+ dummy: '{"key1": "123.4", "http.url": "https://fluentbit.io/search?q=docs"}'
58+
59+ processors:
60+ logs:
61+ - name: content_modifier
62+ action: extract
63+ key: "http.url"
64+ pattern: ^(?<http_protocol>https?):\/\/ (?<http_domain>[^\/ \? ]+)(?<http_path>\/ [^?]*)?(?:\? (?<http_query_params>.*))?
65+
66+ - name: sql
67+ query: "SELECT http_domain FROM STREAM;"
68+
69+ outputs:
70+ - name : stdout
71+ match: '*'
72+ format: json_lines
7373` ` `
7474
7575{% endtab %}
@@ -82,4 +82,4 @@ The resulting output resembles the following:
8282 "date": 1711059261.630668,
8383 "http_domain": "fluentbit.io"
8484}
85- ` ` `
85+ ` ` `
0 commit comments