Koyeb is a serverless platform that enables you to run applications without having to manage servers and infrastructure. You can stream your Koyeb services logs to Baselime using their log exporter.
Streaming logs from Koyeb to Baselime required a Koyeb API Key and a Koyeb Logger service.
Generate your Koyeb API Key
Generate your Koyeb API Key in 4 steps:
- Select the organisation you want to add logging to.
- Navigate to "Organization Settings"
- Select "API" from left-hand menu
- Create new API key and copy it for later
Create a logger service
Create a Logger service in Koyeb. This service will stream logs from your Koyeb services in real-time to Baselime.
- Create a new Docker App in Koyeb
- Use the
koyeb/log-exporterimage with "Tag"
Add environment variables to the new app
Add the following environment variables:
|Variable Name||Variable Value|
BASELIME_API_KEYwith your public
KOYEB_TOKENwith the Koyeb API Key generated in the first step
app-namewith the name of your Koyeb app
service-namewith the name of the service within your Koyeb app you want to stream logs to Baselime.
- Deploy the logger service.
Once the service is deployed logs from your Koyeb application will be available to query in the Baselime console.