This article explains how Fluentd
handles HTTP RPC.
HTTP RPC is one way of managing fluentd instance. Several provided RPCs are replacement of signals. The response body is JSON format.
On signal unsupported environment, e.g. Windows, you can use RPC instead of signals.
RPC is off by default. If you want to enable RPC, set rpc_endpoint
in <system>
section.
<system>rpc_endpoint 127.0.0.1:24444</system>
After that, you can access to RPC like below.
$ curl http://127.0.0.1:24444/api/plugins.flushBuffers{"ok":true}
Replacement of signal's SIGINT. Stop the daemon.
Replacement of signal's SIGTERM. Stop the daemon.
Replacement of signal's SIGUSR1. Flushes buffered messages.
Replacement of signal's SIGHUP. reload configuration.
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is a open source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.