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
Fixing indentation for Processors docs code examples needing to be 2 space standardized. Fixes#1969. (#1970)
* Fixing code example indent standards for conditional processing processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for conditional processing processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for content modifier processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for filters processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for filters processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for labels processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for metrics selector processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for opentelemetry envelope processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for smapling processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
* Fixing code example indent standards for SQL processor doc. Part of issue #1969.
Signed-off-by: Eric D. Schabell <[email protected]>
---------
Signed-off-by: Eric D. Schabell <[email protected]>
@@ -9,8 +9,8 @@ Conditional processing is available in Fluent Bit version 4.0 and greater.
9
9
You can turn a standard processor into a conditional processor by adding a `condition` block to the processor's YAML configuration settings.
10
10
11
11
{% hint style="info" %}
12
-
- Only [YAML configuration files](../administration/configuring-fluent-bit/yaml/README.md) support processors, including conditional processors.
13
-
- Conditional processing isn't supported if you're using a [filter as a processor](../pipeline/processors/filters).
12
+
- Only [YAML configuration files](../../administration/configuring-fluent-bit/yaml/README.md) support processors, including conditional processors.
13
+
- Conditional processing isn't supported if you're using a [filter as a processor](../filters).
14
14
{% endhint %}
15
15
16
16
These `condition` blocks use the following syntax:
@@ -20,22 +20,23 @@ These `condition` blocks use the following syntax:
20
20
21
21
```yaml
22
22
pipeline:
23
-
inputs:
23
+
inputs:
24
24
<...>
25
-
processors:
26
-
logs:
27
-
- name: processor_name
28
-
<...>
29
-
condition:
30
-
op: {and|or}
31
-
rules:
32
-
- field: {field_name1}
33
-
op: {comparison_operator}
34
-
value: {comparison_value1}
35
-
- field: {field_name2}
36
-
op: {comparison_operator}
37
-
value: {comparison_value2}
38
-
<...>
25
+
26
+
processors:
27
+
logs:
28
+
- name: processor_name
29
+
<...>
30
+
condition:
31
+
op: {and|or}
32
+
rules:
33
+
- field: {field_name1}
34
+
op: {comparison_operator}
35
+
value: {comparison_value1}
36
+
- field: {field_name2}
37
+
op: {comparison_operator}
38
+
value: {comparison_value2}
39
+
<...>
39
40
```
40
41
41
42
{% endtab %}
@@ -62,10 +63,11 @@ Each item in the `condition.rules` array must include values for the following p
62
63
63
64
Rules are evaluated against each log that passes through your data pipeline. For example, given a rule with these parameters:
64
65
65
-
```
66
-
- field: "$status"
67
-
op: eq
68
-
value: 200
66
+
```yaml
67
+
rules:
68
+
- field: "$status"
69
+
op: eq
70
+
value: 200
69
71
```
70
72
71
73
This rule evaluates to `true` for a log that contains the string `'status':200`, but evaluates to `false` for a log that contains the string `'status':403`.
@@ -102,23 +104,23 @@ This example applies a condition that only processes logs that contain the strin
This configuration adds an `alert` field to error logs from critical services, and adds a `paging_required` field to errors that contain specific critical patterns.
276
+
This configuration adds an `alert` field to error logs from critical services, and adds a `paging_required` field to errors that contain specific critical patterns.
0 commit comments