9 Creating custom plugins
This chapter covers:
- Developing custom plugins using Redis as an example source and target for log events.
- Defining the benefits that having source and target plugins for Redis can bring to Fluentd,
- Using the Fluentd provided utilities to accelerate the plugin development process,
- Acting upon the Fluentd plugin lifecycle and the different functions that need to be implemented for each stage,
- Creating documentation, packaging, and testing of custom plugins.
At various points in the book, we have referred to Fluentd’s support for the development of plugins beyond those from the core product. The extensibility has led to a strong ecosystem of 3rd party plugins to make it easy to capture log events from many different sources and send log events to a great many different systems and data stores. We have also talked about how custom plugins could be an option for connecting to and monitoring esoteric and legacy solutions when things cannot easily or efficiently be achieved with the existing plugins.
In this chapter, we’re going to walk through the process of creating an input and output plugin that makes use of Redis’ list capability. We will take a closer look at Redis and the rationale behind its’ use in a moment.