Logs contain rich information about the state and behavior of a system or an application. Each system/application generates the logs whenever an event occurs, and the frequency, amount of information, and format of the information it logs varies from one system/application to another. With so much information at our disposal, collecting them, extracting the relevant information from them, and analyzing them in near real time can be a daunting task.
In the previous chapters, we have already explored how Elasticsearch, with its rich aggregation features, assists in analyzing huge amounts of data in near real time. Before analysis can be performed, we need a tool which can assist/ease the process of collecting logs, extracting the relevant information from them, and pushing them to Elasticsearch.
In this chapter, we will be exploring Logstash...