On This Page

Home / Cribl as Code/ Cribl API/ API Code Examples/Query the Health Endpoint

Query the Health Endpoint

Each Cribl Stream, Cribl Edge, and Cribl Outpost instance exposes a GET /health endpoint that provides information about the status of the server. This endpoint is commonly used with a load balancer to support operational decision-making.

About the Example Request

Replace the variables in the example request with the corresponding information for your Cribl deployment.

For on-prem deployments, to use https in the URL for your request as shown in this example, you must configure Transport Layer Security (TLS).

Health checks on Outpost Nodes must use http instead of https.

Retrieve Server Status Information

The following examples demonstrate requests to the GET /health endpoint in Cribl.Cloud/hybrid and on-prem deployments.

Requests to GET /health in the global context do not require authentication. Requests to GET /health for a Worker or Edge Node (host context) are sent to the Leader, which proxies the call to the Node. These requests for a Node do require authentication with a Bearer token to authorize the proxy.

Replace the variables in the URL with the correct values for your deployment.

Cribl.Cloud and Hybrid (Global)On-Prem (Global)Cribl.Cloud and Hybrid (Node)On-Prem (Node)

The response is a JSON object similar to the following example:

{"status": "healthy","startTime": 1741961168122}

Interpret HTTP Status Codes

In the response header, the /health endpoint returns one of the following HTTP status codes:

HTTP Status CodeMeaning
200 OKThe server is running.
420 Shutting DownThe server is in the process of shutting down or is in standby.

The HTTP status code 200 OK is a healthy response but indicates only that the server is running. It does not mean that all of the instance’s configured Sources are functioning correctly.

Several HTTP-based Sources allow you to enable a Source-level health check endpoint in their Advanced Settings. See the documentation for each Source for more information.