@@ -3,24 +3,60 @@ title: Examples
3
3
weight : 330
4
4
---
5
5
6
- ## Detailed examples for specific outputs
6
+ ## Flow examples
7
7
8
+ The following examples show some simple flows. For more examples that use filters, see {{% xref "/docs/examples/filters-in-flows.md" %}}.
8
9
10
+ ### Flow with a single output
9
11
10
- ## Filter examples in Flows
12
+ This Flow sends every message with the ` app: nginx ` label to the output called ` forward-output-sample ` .
11
13
12
- YAML files for simple logging flows with filter examples.
14
+ {{< include-code "logging_flow_single_output.yaml" "yaml" >}}
13
15
14
- ### GeoIP filter
16
+ ### Flow with multiple outputs
15
17
16
- {{< include-code "logging_flow_geoip.yaml" "yaml" >}}
18
+ This Flow sends every message with the ` app: nginx ` label to the ` gcs-output-sample ` and ` s3-output-example ` outputs.
17
19
18
- ### Parser and tag normalizer
20
+ {{< include-code "logging_flow_multiple_output.yaml" "yaml" >}}
19
21
20
- {{< include-code "logging_flow_with_filters.yaml" "yaml" >}}
22
+ ## Logging examples
21
23
22
- ### Dedot filter
24
+ Simple [ Logging ] ({{< relref "/docs/logging-infrastructure/logging.md" >}}) definition with default values.
23
25
24
- {{< include-code "logging_flow_with_dedot .yaml" "yaml" >}}
26
+ {{< include-code "logging_logging_simple .yaml" "yaml" >}}
25
27
26
- <!-- FIXME group and list other yamls, add descriptions to the examples, link reference docs -->
28
+ ### Logging with TLS
29
+
30
+ Simple [ Logging] ({{< relref "/docs/logging-infrastructure/logging.md" >}}) definition with [ TLS encryption enabled] ({{< relref "/docs/logging-infrastructure/tls.md" >}}).
31
+
32
+ {{< include-code "logging_logging_tls.yaml" "yaml" >}}
33
+
34
+ ## Output examples
35
+
36
+ ### Simple file output
37
+
38
+ Defines a [ file output] ({{< relref "/docs/configuration/plugins/outputs/file.md" >}}) with timestamped log files.
39
+
40
+ {{< include-code "logging_output_file.yaml" "yaml" >}}
41
+
42
+ ### Drop messages into dev/null output
43
+
44
+ Creates a dev/null output that can be the destination of messages you want to drop explicitly.
45
+
46
+ {{< warning >}}Messages sent to this output are irrevocably lost forever.{{< /warning >}}
47
+
48
+ {{< include-code "logging_output_null.yaml" "yaml" >}}
49
+
50
+ ### S3 output
51
+
52
+ Defines an [ Amazon S3 output] ({{< relref "/docs/configuration/plugins/outputs/s3.md" >}}) to store your logs in a bucket.
53
+
54
+ {{< include-code "logging_output_s3.yaml" "yaml" >}}
55
+
56
+ <!-- FIXME group and list other yamls, add descriptions to the examples, link reference docs -->
57
+
58
+ ### GCS output
59
+
60
+ Defines a [ Google Cloud Storage output] ({{< relref "/docs/configuration/plugins/outputs/gcs.md" >}}) to store your logs.
61
+
62
+ {{< include-code "logging_output_s3.yaml" "yaml" >}}
0 commit comments