Using Logstash with Bindplane
Step 1: Update your output stanza of the logstash conf.d files on your Logstash agents
Caveats
Example output stanza
output {
tcp {
codec => json_lines # this is required otherwise it will send everything in a single line
host => "10.10.1.5"
port => 2255
}
}Config for collecting from /var/log files using the logstash file plugin
# Sample Logstash configuration for creating a simple
# file -> logstash -> otel
input {
file {
id => "logstash_var_log_plugin"
path => ["/var/log/messages", "/var/log/*", "/var/log/**/*"]
exclude => ["*.gz", "*.journal", "daemon.log", "logstash*.log"]
}
}
output {
tcp {
codec => json_lines # this is required otherwise it will send everything in a single line
host => "localhost"
port => 2255
}
}Config for collecting from a json formatted log file using the logstash beats plugin
Step 2: Deploy a Bindplane Collector as a Gateway
Step 3: Build the Configuration

Step 4: Transform the Data

Was this helpful?