Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automatic support for V2 search endpoints #127

Merged
merged 5 commits into from
Oct 2, 2024
Merged

Conversation

fantavlik
Copy link
Collaborator

Upgrade to v2.0.0 of splunk-sdk-javascript which provides automatic support for v2 search endpoints. For export endpoints (which aren't supported by the SDK at this time) use the SDK to determine which endpoint should be used based on the Splunk version from the /services/server/info endpoint (service.getInfo()).

@fantavlik
Copy link
Collaborator Author

cc: @thilles I modified your changes to use the Javascript SDK to determine Splunk version, then fallback to deprecated search endpoints if version isn't determined or if using older (8.x for example) versions that don't yet support search V2 APIs. FYI I've tested this on a local Splunk 9.3.0 deployment but not an older deployment.

@JasonConger
Copy link
Collaborator

Good to go

@JasonConger JasonConger merged commit 0ae5673 into master Oct 2, 2024
6 checks passed
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.

3 participants