Skip to content

trivial: Fix X-Splunk-Request-Channel header logic in batch requests#77

Open
vladosentinelus wants to merge 1 commit intonatesmalley:mainfrom
vladosentinelus:vlado/hec-headers
Open

trivial: Fix X-Splunk-Request-Channel header logic in batch requests#77
vladosentinelus wants to merge 1 commit intonatesmalley:mainfrom
vladosentinelus:vlado/hec-headers

Conversation

@vladosentinelus
Copy link
Contributor

  • Only add X-Splunk-Request-Channel header for raw endpoint requests (/raw)
  • Remove header from JSON endpoint requests (/event) to prevent HEC rejection
  • Add missing uuid import to fix undefined name error
  • Maintain consistency with send_one() function behavior

Fixes critical logic error where batch JSON requests were incorrectly receiving the raw endpoint header.

- Only add X-Splunk-Request-Channel header for raw endpoint requests (/raw)
- Remove header from JSON endpoint requests (/event) to prevent HEC rejection
- Add missing uuid import to fix undefined name error
- Maintain consistency with send_one() function behavior

Fixes critical logic error where batch JSON requests were incorrectly receiving the raw endpoint header.
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