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
Fluent Bit
Forward your logs to Logtail with Fluent Bit.
Setting up Fluent Bit is very straightforward:
1.
Install Fluent Bit on your server according to
the guidelines
.
2.
Install and set up
Fluent Bit input plugins
to suit your needs (e.g.,
Syslog
).
3.
Modify the Fluent Bit
[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/td-agent-bit/td-agent-bit.conf
[
SERVICE
]
flush
1
β
[
INPUT
]
name
tail
path /var/log/syslog
[
OUTPUT
]
name http
match *
tls On
host
in.logtail.com
port
443
uri /
header Authorization Bearer YOUR_LOGTAIL_SOURCE_TOKEN
header Content-Type application/msgpack
format
msgpack
retry_limit
5
Make sure to replace
YOUR_LOGTAIL_SOURCE_TOKEN
with your own source token from Logtail.com.
You can learn more about Fluent Bit configuration from the
official manual
.
4. Once you're happy with the configuration restart the Fluent Bit service:
sudo service td-agent-bit restart
You should start seeing your logs in
Logtail
π
ποΈ Log forwarding - Previous
Vector (recommended)
Next - ποΈ Log forwarding
Logstash
Last modified
1yr ago
Copy link