Skip to content

Commit e3fce5a

Browse files
agup006gitbook-bot
authored andcommitted
GitBook: [1.6] 6 pages and one asset modified
1 parent a31c91d commit e3fce5a

File tree

7 files changed

+28
-16
lines changed

7 files changed

+28
-16
lines changed

.gitbook/assets/image.png

162 KB
Loading

administration/configuring-fluent-bit/configuration-file.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ The following configuration file example demonstrates how to collect CPU metrics
177177
Match my*cpu
178178
```
179179

180+
## Visualize <a id="config_include_file"></a>
181+
182+
You can also visualize Fluent Bit INPUT, FILTER, and OUTPUT configuration via [https://config.calyptia.com](https://config.calyptia.com)
183+
184+
![](../../.gitbook/assets/image.png)
185+
180186
## Include File <a id="config_include_file"></a>
181187

182188
To avoid complicated long configuration files is better to split specific parts in different files and call them \(include\) from one main file.

installation/docker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ Alpine Linux uses Musl C library instead of Glibc. Musl is not fully compatible
8686
Our Docker containers images are deployed thousands of times per day, we take security and stability very seriously.
8787

8888
The _latest_ tag _most of the time_ points to the latest stable image. When we release a major update to Fluent Bit like for example from v1.3.x to v1.4.0, we don't move _latest_ tag until 2 weeks after the release. That give us extra time to verify with our community that everything works as expected.
89+

installation/windows.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,4 @@ To halt the Fluent Bit service, just execute the "stop" command.
128128
```text
129129
% sc.exe stop fluent-bit
130130
```
131+

installation/yocto-embedded-linux.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ It's strongly recommended to always use the stable release of Fluent Bit recipe
1414
## Fluent Bit and other architectures
1515

1616
Fluent Bit &gt;= v1.1.x fully supports x86\_64, x86, arm32v7 and arm64v8.
17+

pipeline/inputs/statsd.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ Content:
77
* [Configuration Parameters](statsd.md#config)
88
* [Configuration Examples](statsd.md#config_example)
99

10-
## Configuration Parameters {#config}
10+
## Configuration Parameters <a id="config"></a>
1111

1212
The plugin supports the following configuration parameters:
1313

14-
| Key | Description | Default |
15-
| :------- | :--------------------------------------- | :------ |
16-
| Listen | Listener network interface. | 0.0.0.0 |
17-
| Port | UDP port where listening for connections | 8125 |
14+
| Key | Description | Default |
15+
| :--- | :--- | :--- |
16+
| Listen | Listener network interface. | 0.0.0.0 |
17+
| Port | UDP port where listening for connections | 8125 |
1818

19-
## Configuration Examples {#config_example}
19+
## Configuration Examples <a id="config_example"></a>
2020

2121
Here is a configuration example.
2222

@@ -40,5 +40,8 @@ echo "active:99|g" | nc -q0 -u 127.0.0.1 8125
4040

4141
Fluent Bit will produce the following records:
4242

43-
[0] statsd.0: [1574905088.971380537, {"type"=>"counter", "bucket"=>"click", "value"=>10.000000, "sample_rate"=>0.100000}]
44-
[0] statsd.0: [1574905141.863344517, {"type"=>"gauge", "bucket"=>"active", "value"=>99.000000, "incremental"=>0}]
43+
```text
44+
[0] statsd.0: [1574905088.971380537, {"type"=>"counter", "bucket"=>"click", "value"=>10.000000, "sample_rate"=>0.100000}]
45+
[0] statsd.0: [1574905141.863344517, {"type"=>"gauge", "bucket"=>"active", "value"=>99.000000, "incremental"=>0}]
46+
```
47+

pipeline/inputs/tail.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ In your main configuration file append the following _Input_ & _Output_ sections
8181

8282
### Multi-line example
8383

84-
When using multi-line configuration you need to first specify `Multiline On` in the configuration and use the `Parser_Firstline` and additional parser parameters `Parser_N` if needed. If we are trying to read the following Java Stacktrace as a single event
84+
When using multi-line configuration you need to first specify `Multiline On` in the configuration and use the `Parser_Firstline` and additional parser parameters `Parser_N` if needed. If we are trying to read the following Java Stacktrace as a single event
8585

8686
```text
8787
Dec 14 06:41:08 Exception in thread "main" java.lang.RuntimeException: Something has gone wrong, aborting!
@@ -92,7 +92,7 @@ Dec 14 06:41:08 Exception in thread "main" java.lang.RuntimeException: Something
9292
at com.myproject.module.MyProject.main(MyProject.java:6)
9393
```
9494

95-
We need to specify a `Parser_Firstline` parameter that matches the first line of a multi-line event. Once a match is made Fluent Bit will read all future lines until another match with `Parser_Firstline` is made .
95+
We need to specify a `Parser_Firstline` parameter that matches the first line of a multi-line event. Once a match is made Fluent Bit will read all future lines until another match with `Parser_Firstline` is made .
9696

9797
In the case above we can use the following parser, that extracts the Time as `time` and the remaining portion of the multiline as `log`
9898

@@ -115,7 +115,7 @@ If we want to further parse the entire event we can add additional parsers with
115115
Regex /(?<time>Dec \d+ \d+\:\d+\:\d+)(?<message>.*)/
116116
Time_Key time
117117
Time_Format %b %d %H:%M:%S
118-
118+
119119
[INPUT]
120120
Name tail
121121
Multiline On
@@ -127,14 +127,14 @@ If we want to further parse the entire event we can add additional parsers with
127127
Match *
128128
```
129129

130-
Our output will be as follows.
130+
Our output will be as follows.
131131

132132
```text
133133
[0] tail.0: [1607928428.466041977, {"message"=>"Exception in thread "main" java.lang.RuntimeException: Something has gone wrong, aborting!
134-
at com.myproject.module.MyProject.badMethod(MyProject.java:22)
135-
at com.myproject.module.MyProject.oneMoreMethod(MyProject.java:18)
136-
at com.myproject.module.MyProject.anotherMethod(MyProject.java:14)
137-
at com.myproject.module.MyProject.someMethod(MyProject.java:10)", "message"=>"at com.myproject.module.MyProject.main(MyProject.java:6)"}]
134+
at com.myproject.module.MyProject.badMethod(MyProject.java:22)
135+
at com.myproject.module.MyProject.oneMoreMethod(MyProject.java:18)
136+
at com.myproject.module.MyProject.anotherMethod(MyProject.java:14)
137+
at com.myproject.module.MyProject.someMethod(MyProject.java:10)", "message"=>"at com.myproject.module.MyProject.main(MyProject.java:6)"}]
138138
```
139139

140140
## Tailing files keeping state <a id="keep_state"></a>

0 commit comments

Comments
 (0)