API Reference
POST
elasticsearch-logsGet Elasticsearch Logs
Get Elasticsearch Logs is a POST request to https://api.sharkcluster.com/elasticsearch-logs in the Server Management section of the SharkCluster API. Fetches the recent system logs for the Elasticsearch service using journalctl. It takes 1 parameter, 1 required (server_id).
Request URL
POST
https://api.sharkcluster.com/elasticsearch-logsHow do you call Get Elasticsearch Logs?
- 1Send a POST request to https://api.sharkcluster.com/elasticsearch-logs.
- 2Include the required parameter: server_id.
Request parameters
| Parameter | Type | Description |
|---|---|---|
server_idRequired | string | The unique identifier or Instance ID of the server. |
What does Get Elasticsearch Logs return?
A failed call explains the problem in the body, for example "Error description (e.g., Server not found)".
Related Server Management endpoints
Stuck on an integration?
Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.