#
Koyeb Logs
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-exporter
image with "Tag"v1.0.0-webhook
Add environment variables to the new app
Add the following environment variables:
Replace
BASELIME_API_KEY
with your publicBASELIME_API_KEY
KOYEB_TOKEN
with the Koyeb API Key generated in the first stepapp-name
with the name of your Koyeb appservice-name
with the name of the service within your Koyeb app you want to stream logs to Baselime.
Get your public BASELIME_API_KEY
from the Baselime console
- Deploy the logger service.
Once the service is deployed logs from your Koyeb application will be available to query in the Baselime console.