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
Configure and launch the fly.io logs shipper, configured for the highlight log drain.

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.

# spin up the fly log shipper image fly launch --image ghcr.io/superfly/fly-log-shipper:latest
Copy
# 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. # this tells to log shipper to send data to highlight. fly secrets set HIGHLIGHT_PROJECT_ID=<YOUR_PROJECT_ID>
Copy
2
Verify your backend logs are being recorded.

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