Star us on GitHub
Star
Menu

Fly.io NATS Log Shipper

Learn how to setup Highlight log ingestion on [Fly.io](https://fly.io/blog/shipping-logs/). As a prerequisite, we assume you already have an application deployed on Fly.io and `flyctl` configured locally.
1
Spin up the highlight.io logs shipper alongside your fly.io deployment.

Clone our sample fly-logs-shipper fork that configures the highlight-io vector logs drain. Launching an empty app first is a workaround until our logs shipper is merged with the main one.

git clone git@github.com:highlight/fly-log-shipper.git
Copy
cd fly-log-shipper
Copy
mv fly.toml fly.toml.temp
Copy
fly launch
Copy
mv fly.toml.temp fly.toml
Copy
2
Configure and launch the logs shipper.

No other work is needed on the side of your application, as fly apps are already sending monitoring information back to fly which we can read. Check out the README.md for more details.

# set the org for your deployment fly secrets set ORG=personal
Copy
# give the logs shipper access to other containers' logs fly secrets set ACCESS_TOKEN=$(fly auth token)
Copy
# set to configure your highlight project fly secrets set HIGHLIGHT_PROJECT_ID=<YOUR_PROJECT_ID>
Copy
fly launch
Copy
3
Verify your backend logs are being recorded.

Visit the highlight logs portal and check that backend logs are coming in.