3 Using Fluentd to capture log events
This chapter covers
- Configuration of log file inputs
- Configuration to handle log file rotation
- The impact of stop and start during file reading
- Parsing log events
- Using parsers to get more meaning out of log events
- Self-monitoring and the API for remote monitoring
With the conceptual and architecture foundations, setup, and having run a very simple configuration, we’re ready to start looking at the capture of log events in more detail. Within the book, we are limiting the code shown to the segments that are significant to the matter in hand. However, the complete configuration can be seen if you look at the file being referenced in the downloads. If you’re enthusiastic you can start by using the Chapter3/Fluentd/no-source-config.conf configuration file and incorporate the new pieces into it as we go, otherwise follow along with the complete configurations. Also, we have provided some exercises and questions, so as you progress through the chapters you can test your understanding. The answers to the questions and exercises are provided at the end of each chapter, along with the downloads including the worked answer of the exercises.