Send logs to Better Stack using Logstash

Start logging to Better Stack

1. Install

Install Logstash  on your server.

2. Set up inputs

Install and set up Logstash input plugins .

3. Set up output

Modify the Logstash output configuration to send logs to Better Stack:

Output configuration
input {
   # Configure your input plugins here

output {
  http {
    url => ""
    http_method => "post"
    headers => {
      "Authorization" => "Bearer $SOURCE_TOKEN"
    format => "json"

4. Restart

Restart the Logstash service:

Restart the service
sudo systemctl restart logstash.service

You should see your logs in Better Stack → Live tail .

Need help?

Please let us know at
We're happy to help! 🙏