Skip to content

Commit 4e27ab6

Browse files
Merge pull request #124 from kube-logging/flow-examples-1
Include some of the example yamls into the docs
2 parents 6d3b4ab + d39931e commit 4e27ab6

File tree

2 files changed

+68
-10
lines changed

2 files changed

+68
-10
lines changed

content/docs/examples/_index.md

+46-10
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,60 @@ title: Examples
33
weight: 330
44
---
55

6-
## Detailed examples for specific outputs
6+
## Flow examples
77

8+
The following examples show some simple flows. For more examples that use filters, see {{% xref "/docs/examples/filters-in-flows.md" %}}.
89

10+
### Flow with a single output
911

10-
## Filter examples in Flows
12+
This Flow sends every message with the `app: nginx` label to the output called `forward-output-sample`.
1113

12-
YAML files for simple logging flows with filter examples.
14+
{{< include-code "logging_flow_single_output.yaml" "yaml" >}}
1315

14-
### GeoIP filter
16+
### Flow with multiple outputs
1517

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.
1719

18-
### Parser and tag normalizer
20+
{{< include-code "logging_flow_multiple_output.yaml" "yaml" >}}
1921

20-
{{< include-code "logging_flow_with_filters.yaml" "yaml" >}}
22+
## Logging examples
2123

22-
### Dedot filter
24+
Simple [Logging]({{< relref "/docs/logging-infrastructure/logging.md" >}}) definition with default values.
2325

24-
{{< include-code "logging_flow_with_dedot.yaml" "yaml" >}}
26+
{{< include-code "logging_logging_simple.yaml" "yaml" >}}
2527

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" >}}
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Filter examples in Flows
3+
weight: 10
4+
---
5+
6+
YAML files for simple logging flows with filter examples.
7+
8+
## GeoIP filter
9+
10+
{{< include-code "logging_flow_geoip.yaml" "yaml" >}}
11+
12+
## Parser and tag normalizer
13+
14+
{{< include-code "logging_flow_with_filters.yaml" "yaml" >}}
15+
16+
## Dedot filter
17+
18+
{{< include-code "logging_flow_with_dedot.yaml" "yaml" >}}
19+
20+
## Multiple format
21+
22+
{{< include-code "logging_flow_with_multi_format.yaml" "yaml" >}}

0 commit comments

Comments
 (0)