<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running SPL via Visual Studio Code in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686595#M1737</link>
    <description>&lt;P&gt;This works on my laptop (macOS + Splunk 9.2.1)&lt;/P&gt;&lt;P&gt;See details from here&amp;nbsp;&lt;A href="https://marketplace.visualstudio.com/items?itemName=Splunk.splunk" target="_blank"&gt;https://marketplace.visualstudio.com/items?itemName=Splunk.splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have set next values on settings.json&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Splunk Rest Url -- &lt;A href="https://localhost:8089" target="_blank"&gt;https://localhost:8089&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Token auth has enabled and I have generate own token for this&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then just create file e.g. Splunk-SPL-test.splnb&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal | stats count by component&lt;/LI-CODE&gt;&lt;P&gt;Run it and you see events and can select also visualisation etc.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2024 15:57:44 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2024-05-06T15:57:44Z</dc:date>
    <item>
      <title>Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/679195#M1698</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I use Microsoft's Visual Studio Code as code locker for my spl, xml, and json Splunk code. Does anyone have&amp;nbsp; experience running spl code from VSC? I have the Live Server extension installed and enabled. However, it opens into directory listing within Chrome. When I drilldown to the spl file instead of running the code it downloads the file.&lt;BR /&gt;&lt;BR /&gt;Thanks and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 19:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/679195#M1698</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-02-29T19:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686368#M1734</link>
      <description>&lt;P&gt;I guess no one else is doing this?&lt;BR /&gt;Thanks and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 17:48:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686368#M1734</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-05-03T17:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686375#M1735</link>
      <description>I have used it in some cases. I need to check how I have configured it when back on my laptop.</description>
      <pubDate>Fri, 03 May 2024 18:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686375#M1735</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-03T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686376#M1736</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;.&lt;BR /&gt;&lt;SPAN&gt;Much appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;God bless.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 18:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686376#M1736</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-05-03T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686595#M1737</link>
      <description>&lt;P&gt;This works on my laptop (macOS + Splunk 9.2.1)&lt;/P&gt;&lt;P&gt;See details from here&amp;nbsp;&lt;A href="https://marketplace.visualstudio.com/items?itemName=Splunk.splunk" target="_blank"&gt;https://marketplace.visualstudio.com/items?itemName=Splunk.splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have set next values on settings.json&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Splunk Rest Url -- &lt;A href="https://localhost:8089" target="_blank"&gt;https://localhost:8089&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Token auth has enabled and I have generate own token for this&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then just create file e.g. Splunk-SPL-test.splnb&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal | stats count by component&lt;/LI-CODE&gt;&lt;P&gt;Run it and you see events and can select also visualisation etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 15:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/686595#M1737</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-06T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687210#M1738</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; made your suggested changes, including created a new token. Unforutnately, it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARN: call not properly authenticated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is zeero usable info on the Internet about this error. Plus, when I run a Wireshark capture the token and other info indicates the authentication is not leaving my PC. The issue appears to be within VSCode and the Splunk Extension.&lt;/P&gt;&lt;P&gt;Thanks and God bless.&amp;nbsp;&lt;BR /&gt;Genesius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 17:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687210#M1738</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-05-10T17:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687214#M1739</link>
      <description>&lt;P&gt;I have the latest(?) Splunk VSCode extension on my splunk instance. That instance is on my laptop too. If you are trying to use remote instance you must use correct node name and port on settings.json instead of localhost.&lt;/P&gt;&lt;P&gt;I'm not sure if I have run this against another splunk instances or only towards my on dev/test at the same node than running viscode.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 18:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687214#M1739</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-10T18:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687226#M1740</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&lt;/P&gt;&lt;P&gt;This is my &lt;STRONG&gt;settings.json.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "liveServer.settings.AdvanceCustomBrowserCmdLine":"chrome",
    "editor.fontSize": 24,
    "workbench.editor.enablePreview": false,
    "splunk.commands.splunkRestUrl": "https://&amp;lt;SERVER_NAME&amp;gt;:8089",
    "splunk.commands.token": "&amp;lt;TOKEN&amp;gt;",
    "splunk.reports.SplunkSearchHead": "https://&amp;lt;SERVER_NAME&amp;gt;:8080",
    "notebook.lineNumbers": "on",
    "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash"
        },
        "Windows PowerShell": {
            "path": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash",
    "files.exclude": {
        "**/.git": false
    },
    "workbench.colorTheme": "Visual Studio Dark",
    "workbench.iconTheme": "vscode-icons",
    "liveServer.settings.donotShowInfoMsg": true,
    "workbench.commandPalette.history": 500,
    "settingsSync.ignoredSettings": [
        
    ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran&amp;nbsp; &lt;STRONG&gt;lsof -i | grep 8089 on the Splunk server and its listening.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; lsof -i | grep 8089
splunkd   62692 splunk   29u  IPv4 581627143      0t0  TCP &amp;lt;SERVER_NAME&amp;gt;:59190-&amp;gt;&amp;lt;SERVER_NAME&amp;gt;:8089 (ESTABLISHED)
java      66146 splunk   84u  IPv4 927511885      0t0  TCP localhost:43216-&amp;gt;localhost:8089 (ESTABLISHED)
splunkd   86761 splunk    4u  IPv4 317159394      0t0  TCP *:8089 (LISTEN)
splunkd   86761 splunk  151u  IPv4 927515713      0t0  TCP localhost:8089-&amp;gt;localhost:43216 (ESTABLISHED)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran&amp;nbsp;netstat -ano | find /i "8089"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TCP 0.0.0.0:8089 0.0.0.0:0 LISTENING 6080&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ran my splnb file in VSC, and reran the netstat command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  TCP    0.0.0.0:8089           0.0.0.0:0              LISTENING       6080
  TCP    10.37.112.133:29160    10.100.47.105:8089     TIME_WAIT       0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No I know an attempt was made.&lt;/P&gt;&lt;P&gt;I started a Wireshark trace and reran my splnb file.&lt;/P&gt;&lt;P&gt;The TLS handshake, certs, etc. seem to exchange without any issue. However, once my laptop sends application data, the Splunk server responds with "Encrypted Alert" My laptop responds to the "Encrypted Alert" with one of its own. Then a 4-way graceful disconnect.&lt;/P&gt;&lt;P&gt;How do I find out on the Splunk server what caused it to send an Encypted Alert?&lt;BR /&gt;&lt;BR /&gt;My SPL is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal | stats count by component&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. It is late here. Enjoy your weekend and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 21:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687226#M1740</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-05-10T21:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687606#M1743</link>
      <description>Is your SH running on port 8080 or default 8000?&lt;BR /&gt;You should look if there is anything on your splunk server logs. Check also other than splunkd.log!&lt;BR /&gt;You have also latest version of TA for vscode on your splunk server?</description>
      <pubDate>Wed, 15 May 2024 10:49:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687606#M1743</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-15T10:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687621#M1744</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to my url in the GUI, SH is running 8080.&lt;/P&gt;&lt;P&gt;I will check the Splunkserver logs.&lt;/P&gt;&lt;P&gt;The TA is not installed. However, based on the doc below for the TA is it necessary&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The Splunk Add-on for Microsoft Visual Studio Code provideexits support for debugging user Python code contained in apps, add-ons, &lt;STRONG&gt;custom search commands&lt;/STRONG&gt;, custom REST handlers, modular visualizations, or any user Python code run within Splunk Enterprise."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is the VSC .&lt;STRONG&gt;splnb&lt;/STRONG&gt; is not python code. But is it considered a &lt;STRONG&gt;custom search command&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Thanks and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 15 May 2024 13:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687621#M1744</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-05-15T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687628#M1745</link>
      <description>I don't know for sure, but I think that those are basically jupyter playbooks which are using python?&lt;BR /&gt;You can easily check this by installing that TA/App into your splunk server and check if it start to work after that?</description>
      <pubDate>Wed, 15 May 2024 14:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/687628#M1745</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-05-15T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/688645#M1762</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It has been a crazy week. And now I'm going on vacation. We'll take this up again in June.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for all your help and God bless,&lt;BR /&gt;Genesius&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 19:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/688645#M1762</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2024-05-24T19:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Running SPL via Visual Studio Code</title>
      <link>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/698819#M1866</link>
      <description>&lt;P&gt;Did you ever figure out what the issue was? I am having the same issue with VSCode and the API, however it did work at one point earlier this year and has now stopped working. I don't know exactly when because it has not been a regular thing to use VSCode to search our Splunk Cloud.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 17:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Running-SPL-via-Visual-Studio-Code/m-p/698819#M1866</guid>
      <dc:creator>lhillscu</dc:creator>
      <dc:date>2024-09-11T17:34:12Z</dc:date>
    </item>
  </channel>
</rss>

