Streaming and Filtering

Use events to stream logger output. Add follow as a presence flag to keep following new data.

1curl "https://api.hola.cloud/v1/loggers/logger_xyz789/events?follow" \
2  -H "Api-Key: LOGGER_API_KEY" \
3  -H "Api-Secret: LOGGER_API_SECRET"

Use regex to filter streamed data.

1curl "https://api.hola.cloud/v1/loggers/logger_xyz789/filter?regex=error|critical" \
2  -H "Api-Key: LOGGER_API_KEY" \
3  -H "Api-Secret: LOGGER_API_SECRET"

Comments

Leave a comment