Logstash Configuration File Structure

A Logstash configuration file contains three sections for specifying each type of plugin we want to use. The three sections are input, filter, and output. Consider the following example:

input { 
 
      } 
filter { 
 
      } 
output { 
 
      } 

Each section contains the configuration for single or multiple plugins. To configure a plugin, provide the plugin name inside the section, followed by the settings or parameters of that plugin. It is specified in terms of key => value pair. For each section, if you define multiple plugins, then the order of execution is the order in which they appear in the configuration file. Each plugin has its own set of settings, which needs to be used with the plugin name.

Note

The => sign is an assignment ...

Get Mastering Elastic Stack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.