# Send logs to Better Stack using Fluent Bit 

## Start logging to Better Stack

### 1. Install

Install [Fluent Bit](https://docs.fluentbit.io/manual/installation/getting-started-with-fluent-bit) on your server.

### 2. Set up inputs

Install and configure [Fluent Bit input plugins](https://docs.fluentbit.io/manual/pipeline/inputs).

### 3. Set up output

Modify your Fluent Bit output configuration to send logs to Better Stack:

```text
[label /etc/fluent-bit/fluent-bit.conf]
[SERVICE]
    flush  1

[INPUT]
    name tail
    path /var/log/syslog
  
[OUTPUT]
    name    http
    match   *
    tls     On
    host    $INGESTING_HOST
    port    443
    uri     /fluentbit
    header  Authorization Bearer $SOURCE_TOKEN
    header  Content-Type application/msgpack
    format  msgpack
    retry_limit 5
```

### 4. Restart

Restart the Fluent Bit service to reload the configuration:

```bash
[label Restart the service]
sudo systemctl restart fluent-bit
```

You should see your logs in [Logs → Live tail](https://telemetry.betterstack.com/team/0/tail ";_blank").

## Need help?

Please let us know at hello@betterstack.com.  
We're happy to help! 🙏

## Additional information

Want to learn more about **configuring Fluent Bit** inputs and outputs?  
Check out the [official documentation](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/configuration-file).