The http context adds critical HTTP data within the context of a HTTP request. Any log line written within a single HTTP request will share this context data.

Example JSON Structure

  "context": {
    "http": {
      "method": "GET",
      "path": "/welcome",
      "remote_addr": "",
      "request_id": "2c3a0b24069af49b3de35b8e8c26765c1dba9ff0"

Field descriptions

Name Type Description
method string The request method normalized to uppercase, ex: GET, POST, PUT, DELETE, etc. required
path string The request path. required, max-length: 5000
remote_address string The ipv4 or ipv6 address of the original requestor. optional
request_id string The unique ID of this request, useful for request tracing. optional, max-length: 255

Using this data

Example queries:

  • Full path: context.http.request_id:2c3a0b24069af49b3de35b8e8c26765c1dba9ff0
  • Short path: http.request_id:2c3a0b24069af49b3de35b8e8c26765c1dba9ff0 - Short paths are aliases allowing for simpler access to these fields.
  • Only this event: has:http

See our doc on using context & event data.

Questions? Need help?

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

Chat with us

Start a trial - 15 days free

Log better and solve problems faster, today. Less than 1 minutes to install.

Start a trial