Install Logstash on your server.
Install and set up Logstash input plugins.
Modify the Logstash output configuration to send logs to Better Stack:
input {
# Configure your input plugins here
}
output {
http {
url => "https://$INGESTING_HOST"
http_method => "post"
headers => {
"Authorization" => "Bearer $SOURCE_TOKEN"
}
format => "json"
}
}
Restart the Logstash service:
sudo systemctl restart logstash.service
You should see your logs in Better Stack → Live tail.
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.