Using Logstash with BindPlane OP
BindPlane OP and the BindPlane Agent can be used to collect data from your Logstash agents. This allows you to start taking advantage of BindPlane OP without the need to re-instrument your collectors at the edge.
Step 1: Update your output stanza of the logstash conf.d files on your Logstash agents
Caveats
BindPlane expects the output from Logstash to be in JSON format. It depends on the codec => json_lines
configuration, such as in the examples below to work as expected.
Example output stanza
This output stanza sends to a BindPlane agent installed on a host with the IP 10.10.1.5, and configured to listen on port 2255 (the default).
Below are a pair of sample logstash conf.d files. After adding these, or modifying the output stanza of existing ones, restart the logstash service.
Config for collecting from /var/log files using the logstash file plugin
Config for collecting from a json formatted log file using the logstash beats plugin
Step 2: Deploy a BindPlane Agent as a Gateway
This is the agent you will be routing data through and is what will be managed by BindPlane OP. In a production environment, this is likely to be a fleet of agents behind a load balancer. See our Collector Sizing and Scaling docs for more details on determining your collector architecture.
Step 3: Build the Configuration
- Create a new configuration
- Add the Logstash Source and configure it to receive from your Logstash agents (as shown below)
- Add a destination of your choice and configure it.
Step 4: Transform the Data
Once you have verified data is flowing through the BindPlane Agent to your destination without issue, you can now start re-routing data to different destinations and inserting processors into your pipeline to reduce the amount of data you are sending.