Fluentd has eight (8) types of plugins:
​Input​
​Parser​
​Filter​
​Output​
​Formatter​
​Storage​
​Service Discovery​
​Buffer​
This article gives an overview of Storage Plugin.
Sometimes, the input/filter/output plugin needs to save its internal state in memory, storage, or key-value store. Fluentd has a pluggable system called Storage that lets a plugin store and reuse its internal state as key-value pairs.
For an input, an output, and filter plugin that supports Storage, the <storage>
directive can be used to store key-value pair into a key-value store such as a JSON file, MongoDB, Redis, etc.
Here is an example with in_sample
:
<source>@type sampletag docs.fluentd.storage<storage awesome_path>@type my_custom_storage</storage></source>
​local
​
​in_sample
​
If this article is incorrect or outdated, or omits critical information, please let us know. Fluentd is an open-source project under Cloud Native Computing Foundation (CNCF). All components are available under the Apache 2 License.