Logtail
What is Logtail?
Get help
Book a demo
System Status
Searchβ¦
Getting started
βοΈ Sources
JavaScript
Python
Ruby
PHP
.NET
Java
Heroku
Render
Kubernetes
Docker
Dokku
Cloudflare
HTTP REST API
Nginx
Apache2
Redis
MongoDB
PostgreSQL
MySQL
Ubuntu
π
Integrations
Slack
ποΈ Log forwarding
Vector (recommended)
Fluent Bit
Logstash
Fluentd
Syslog
π§
API
Getting Started
Sources API
Query API
π
How-to Guides
GeoIP map visualization
AWS S3-compatible archive
String + JSON format
Live Tail Query Language
Tutorials
Powered By
GitBook
Logstash
Forward your logs to Logtail with Logstash.
Setting up Logstash is very straightforward:
1.
Install Logstash on your platform according to
the guidelines
.
2.
Install and set up
Logstash input plugins
to suit your needs (e.g.,
Syslog
).
3.
Modify the Logstash
output
configuration to start sending logs to your Logtail source. A basic configuration that forwards logs from all inputs to a single Logtail source could look like this:
/etc/logstash/conf.d/example.conf
input
{
# configure your input plugins here
}
β
output
{
http
{
url
=>
"https://in.logtail.com/"
http_method
=>
"post"
headers
=>
{
"Authorization"
=>
"Bearer YOUR_LOGTAIL_SOURCE_TOKEN"
}
format
=>
"json"
}
}
Make sure to replace
YOUR_LOGTAIL_SOURCE_TOKEN
with your own source token from Logtail.com.
4.
Restart the Logstash service
:
sudo systemctl restart logstash.service
You should start seeing your logs in
Logtail
π
ποΈ Log forwarding - Previous
Fluent Bit
Next - ποΈ Log forwarding
Fluentd
Last modified
1yr ago
Copy link