DataCater / datacater

The developer-friendly ETL platform for transforming data in real-time. Based on Apache Kafka® and Kubernetes®.
https://datacater.io
Other
82 stars 4 forks source link

Restrict number of lines returned by /api/alpha/deployments/{uuid}/logs #46

Closed flippingbits closed 1 year ago

flippingbits commented 1 year ago

It seems that the /api/alpha/deployments/{uuid}/logs endpoint returns all logs of the deployment. We should restrict it to the last X lines to prevent performance issues in both the server and the client.

We should make X configurable both via a query parameter (e.g., /api/alpha/deployments/{uuid}/logs?limit=X) and a configuration property in the application.yml.