Skip to content

Conversation

@JacobPEvans
Copy link
Collaborator

@JacobPEvans JacobPEvans commented Jan 18, 2026

Summary

Adds a single debug output point in the result collection loop to aid troubleshooting.

When debug=True, emits a debug event before each result fetch showing results_uri which contains:

  • uri: Cribl URL
  • job_id: search job id
  • api_limit: Configured API page size limit
  • offset: Current position in result set

Motivation

When investigating search behavior or performance, having visibility into the result collection loop iterations is valuable. This makes it easier to:

  • Verify pagination is working as expected
  • Correlate API calls with result counts
  • Identify any unexpected collection patterns

Implementation

  • Single debug statement before the requests.get() call
  • Uses distinct sourcetype goatsearch:debug for easy filtering
  • Zero overhead when debug=False (conditional branch not taken)
  • Follows existing debug output patterns

Testing

Manual testing with debug=True confirms the debug events are emitted correctly and provide the expected visibility into collection behavior.


🤖 Generated with Claude Code

@JacobPEvans JacobPEvans force-pushed the feat/enhanced-result-collection-debugging branch 2 times, most recently from ecffb85 to 423c800 Compare January 18, 2026 01:00
Add debug output before each result fetch showing:
- Current offset position
- Configured limit (page size)
- Total events collected so far

This provides visibility into the result collection loop when
troubleshooting search behavior. Output uses distinct sourcetype
'goatsearch:debug' for easy filtering.

Zero overhead when debug=False.
@JacobPEvans JacobPEvans force-pushed the feat/enhanced-result-collection-debugging branch from 423c800 to b5abefe Compare January 18, 2026 01:00
@JacobPEvans JacobPEvans changed the base branch from main to develop January 19, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants