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 ability to dispatch SPL2 via SPL2 Notebooks #85

Merged
merged 6 commits into from
Jun 8, 2023

Conversation

fantavlik
Copy link
Collaborator

Building off the existing SPL Notes feature, provide new functionality to execute SPL2 as search jobs (for Splunk deployments supporting the /services/search/spl2-module-dispatch endpoint), and view results.

To try this out:

  • Configure the following two Extension Settings to point to a Splunk deployment which supports /services/search/spl2-module-dispatch:
    • Splunk Rest Url
    • Token
  • Open any file with the .spl2nb extension or files named modules.json.

SPL2 Notes

I also drafted this Wiki page to add once this work merges: https://github.com/fantavlik/vscode-extension-splunk/wiki/Splunk-Notebooks

@fantavlik fantavlik requested a review from JasonConger June 5, 2023 23:20
@@ -11,19 +11,17 @@ import {
import { splunkMessagesToOutputItems } from './utils';

export class SplunkController {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes to this file were simply to make it easier to extend/inherit this class to reuse most of the code in here.

out/notebooks/splunk.ts Outdated Show resolved Hide resolved
out/extension.js Outdated Show resolved Hide resolved
out/extension.js Outdated Show resolved Hide resolved
Add support for notebook commands
Fix job status updates for in-progress jobs
Add better error handling for dispatch responses
@abambharoliya
Copy link

@fantavlik this MR LGTM! I don't have approve permission.

@JasonConger JasonConger merged commit bed1888 into splunk:spl2 Jun 8, 2023
@fantavlik fantavlik mentioned this pull request Jun 30, 2023
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