Plugin Helper: Inject
The inject
plugin helper injects values into events according to the configuration.
Here is an example:
For more details, see Inject section.
Methods
inject_values_to_record(tag, time, record)
inject_values_to_record(tag, time, record)
This method injects values to the given record and returns the new record.
tag
: the tag of the eventtime
: event timestamprecord
: event record
Example:
inject_values_to_event_stream(tag, es)
inject_values_to_event_stream(tag, es)
This method injects values into the given event stream and returns the new event stream.
tag
: the tag of the eventes
: event stream
Example:
Plugins using inject
inject
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.
Last updated