File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,19 @@ description: Enable hot reload through SIGHUP signal or an HTTP endpoint
44
55# Hot Reload
66
7- Fluent Bit supports the hot reloading feature when enabled via the command line with ` -Y ` or ` --enable-hot-reload ` option.
7+ Fluent Bit supports the hot reloading feature when enabled via the configuration file or command line with ` -Y ` or ` --enable-hot-reload ` option.
88
99## Getting Started
1010
1111To get started with reloading via HTTP, the first step is to enable the HTTP Server from the configuration file:
1212
13- ```
13+ ``` toml
1414[SERVICE ]
1515 HTTP_Server On
1616 HTTP_Listen 0.0.0.0
1717 HTTP_PORT 2020
18-
19- # Other stuff of plugin configurations
18+ Hot_Reload On
19+ ...
2020```
2121
2222The above configuration snippet will enable the HTTP endpoint for hot reloading.
@@ -32,11 +32,10 @@ Hot reloading can be kicked via HTTP endpoints that are:
3232
3333If users don't enable the hot reloading feature, hot reloading via these endpoints will not work.
3434
35- For using curl to reload fluent-bit , users must specify an empty request body as:
35+ For using curl to reload Fluent Bit , users must specify an empty request body as:
3636
37-
38- ``` text
39- $ curl -X POST -d {} localhost:2020/api/v2/reload
37+ ``` shell
38+ curl -X POST -d ' {}' localhost:2020/api/v2/reload
4039```
4140
4241### Via Signal
@@ -48,4 +47,3 @@ Hot reloading also can be kicked via `SIGHUP`.
4847## Limitations
4948
5049The hot reloading feature is currently working on Linux and macOS. Windows is not supported yet.
51-
You can’t perform that action at this time.
0 commit comments