Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XDR

JSON formatting and character escaping (self-help)

Ensure your JSON is well-formed and doesn't include unescaped backslashes and control characters.

JSON data sent to the HTTP collector must be well-formed. Every payload is parsed on ingestion, and any payload that is not valid JSON is rejected and dropped rather than accepted. This is the most common cause of ingestion failure for custom collectors.

Common ingestion issues

The two most common causes of invalid payloads are:

  • Unescaped backslashes inside strings: For example, a Windows path such as C:\Users\name must be written as C:\\Users\\name.

  • Unescaped control characters: Characters such as tabs, carriage returns, or newlines embedded directly in a string value must be escaped as \t, \r, or \n .

Local validation (demo collector)

To help you confirm your data is correctly formatted before sending it to production, we provide a small, self-contained demo collector you can download and run locally. It is a minimal HTTP server that accepts a payload similar to how the real collector would and returns the specific parser error for invalid JSON.

Open

Last updated

Was this helpful?