concepts / log-json-schema / events / http-response-event

Log Event JSON Schema - event.http_response

Note: Our libraries integrate with frameworks and libraries to log this event automatically.

The http_response event represnts the response of a HTTP request.

Example JSON Structure

This:

Sent 200 in 52.2ms

Gets structured into:

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "event": {
    "http_response": {
      "headers": {
        "content-type": "application/json",
        "x-request-id": "2c3a0b24069af49b3de35b8e8c26765c1dba9ff0"
      },
      "status": 200,
      "request_id": "2c3a0b24069af49b3de35b8e8c26765c1dba9ff0",
      "time_ms": 52.2
    }
  }
}

Field descriptions

NameTypeDescription
headersobjectAn object containing raw header names and values. optional
statusnumberThe status code of the response. required
request_idstringThe unique ID for this outgoing request, useful for request tracing. optional, max-length: 255
time_msnumberThe time taken to respond to the request in milliseconds. required

Using this data

Example queries:

  • Search: http_server_response.status:200
  • Only this event: is:http_server_response

See our doc on searching.

Questions?

Chat with us, just click the talk button in the bottom right of this page.

Chat with us
Sign Up

Log better and solve problems faster, today. Install in under a minute.

Sign Up