Symptom
A Cribl Stream REST Collector returns 200 OK for a Trellix /api/v1/stats request but produces no events. The expected output is one JSON event containing summary statistics.
Job Inspector reports Events discovered: 0 and Bytes In: 0.
The same request returns data when run with cURL outside Cribl Stream.
Environment
- Cribl Stream REST Collector
- Trellix
/api/v1/statsendpoint
Resolution
- Navigate to Data > Sources.
- Select REST from the source tiles or Collectors tab.
- Select the REST Collector that calls
/api/v1/stats. - In Results, locate Event Breaker rulesets.
- Replace the JSON Array breaker with the passthrough/do-not-break ruleset used in your environment, such as
Cribl - Do Not Break Rulesetif it exists. - Click Save.
- Click Run in the collector's Preview tab.
- Verify that the response appears as one JSON event.
Cause
This can occur because the REST response is a nested JSON object, but the configured json_array parser expects an array. The parser produces 0 results while the HTTP request returns 200 OK.
Additional Information
See REST / API Endpoint Collector for REST Collector and Event Breaker settings.
