<?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 Powershell Scripted Input not getting ingested to splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-Scripted-Input-not-getting-ingested-to-splunk/m-p/631852#M108287</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please help me identify my issue maybe I'm missing something I don't see.&lt;/P&gt;&lt;P&gt;I created simple powershell script to get data from Certificate Authority server (using certutil command) then package as a splunk application.&lt;/P&gt;&lt;P&gt;After I deployed the app in CA server with Splunk installed, then executed the script manually from powershell ISE, I can see I have an output from console. But during scheduled execution, there's no data in my index. No error in internal logs so I can't identify where is the issue. Any feedback will help. thanks.&lt;/P&gt;&lt;P&gt;Also I already tried other workaround in other thread, still didn't work. (like using .path file, powershell stanza etc..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My .bat file&lt;/P&gt;&lt;P&gt;@ECHO OFF&lt;/P&gt;&lt;P&gt;Powershell.exe -executionpolicy remotesigned -File "%~dpn0.ps1"&lt;/P&gt;&lt;P&gt;inputs.conf&lt;/P&gt;&lt;P&gt;[script://.\bin\scripts\get_ca_issued_certs.bat]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = cert_authority_idx&lt;BR /&gt;sourcetype = ca_issued_certs&lt;BR /&gt;interval = 300&lt;/P&gt;&lt;P&gt;Internal logs:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="97.125px"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN&gt;5:41:24.397 AM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="654.344px"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;02-22-2023&lt;/SPAN&gt; &lt;SPAN class=""&gt;05:41:24.397&lt;/SPAN&gt; &lt;SPAN class=""&gt;-0800&lt;/SPAN&gt; &lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt; [&lt;SPAN class=""&gt;6372&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt;] &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;New&lt;/SPAN&gt; &lt;SPAN class=""&gt;scheduled&lt;/SPAN&gt; &lt;SPAN class=""&gt;exec&lt;/SPAN&gt; &lt;SPAN class=""&gt;process:&lt;/SPAN&gt; "&lt;SPAN class=""&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class=""&gt;Files\Splunk\etc\apps\cert_authority_win_uf\bin\scripts\get_ca_issued_certs.bat"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output when manually executed.&lt;/P&gt;&lt;P&gt;Date=2023-02-22_06:02:00_-08:00,object=Cert Authority,counter=Issued Certs Expiry,RequestID=4,RequesterName=NT AUTHORI&lt;BR /&gt;TY\IUSR,SerialNumber=2a0000000455e56fc1482ef85f000000000004,NotAfter=2/21/2024 7:37 AM,Value=364&lt;/P&gt;&lt;P&gt;Date=2023-02-22_06:02:00_-08:00,object=Cert Authority,counter=Issued Certs Expiry,RequestID=5,RequesterName=NT AUTHORI&lt;BR /&gt;TY\IUSR,SerialNumber=2a000000052914506fdbd37f24000000000005,NotAfter=2/21/2024 7:39 AM,Value=364&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 14:07:35 GMT</pubDate>
    <dc:creator>jmmontejo</dc:creator>
    <dc:date>2023-02-22T14:07:35Z</dc:date>
    <item>
      <title>Powershell Scripted Input not getting ingested to splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-Scripted-Input-not-getting-ingested-to-splunk/m-p/631852#M108287</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please help me identify my issue maybe I'm missing something I don't see.&lt;/P&gt;&lt;P&gt;I created simple powershell script to get data from Certificate Authority server (using certutil command) then package as a splunk application.&lt;/P&gt;&lt;P&gt;After I deployed the app in CA server with Splunk installed, then executed the script manually from powershell ISE, I can see I have an output from console. But during scheduled execution, there's no data in my index. No error in internal logs so I can't identify where is the issue. Any feedback will help. thanks.&lt;/P&gt;&lt;P&gt;Also I already tried other workaround in other thread, still didn't work. (like using .path file, powershell stanza etc..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My .bat file&lt;/P&gt;&lt;P&gt;@ECHO OFF&lt;/P&gt;&lt;P&gt;Powershell.exe -executionpolicy remotesigned -File "%~dpn0.ps1"&lt;/P&gt;&lt;P&gt;inputs.conf&lt;/P&gt;&lt;P&gt;[script://.\bin\scripts\get_ca_issued_certs.bat]&lt;BR /&gt;disabled = 0&lt;BR /&gt;index = cert_authority_idx&lt;BR /&gt;sourcetype = ca_issued_certs&lt;BR /&gt;interval = 300&lt;/P&gt;&lt;P&gt;Internal logs:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="97.125px"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN&gt;5:41:24.397 AM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="654.344px"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;02-22-2023&lt;/SPAN&gt; &lt;SPAN class=""&gt;05:41:24.397&lt;/SPAN&gt; &lt;SPAN class=""&gt;-0800&lt;/SPAN&gt; &lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt; [&lt;SPAN class=""&gt;6372&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt;] &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;New&lt;/SPAN&gt; &lt;SPAN class=""&gt;scheduled&lt;/SPAN&gt; &lt;SPAN class=""&gt;exec&lt;/SPAN&gt; &lt;SPAN class=""&gt;process:&lt;/SPAN&gt; "&lt;SPAN class=""&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class=""&gt;Files\Splunk\etc\apps\cert_authority_win_uf\bin\scripts\get_ca_issued_certs.bat"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output when manually executed.&lt;/P&gt;&lt;P&gt;Date=2023-02-22_06:02:00_-08:00,object=Cert Authority,counter=Issued Certs Expiry,RequestID=4,RequesterName=NT AUTHORI&lt;BR /&gt;TY\IUSR,SerialNumber=2a0000000455e56fc1482ef85f000000000004,NotAfter=2/21/2024 7:37 AM,Value=364&lt;/P&gt;&lt;P&gt;Date=2023-02-22_06:02:00_-08:00,object=Cert Authority,counter=Issued Certs Expiry,RequestID=5,RequesterName=NT AUTHORI&lt;BR /&gt;TY\IUSR,SerialNumber=2a000000052914506fdbd37f24000000000005,NotAfter=2/21/2024 7:39 AM,Value=364&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 14:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-Scripted-Input-not-getting-ingested-to-splunk/m-p/631852#M108287</guid>
      <dc:creator>jmmontejo</dc:creator>
      <dc:date>2023-02-22T14:07:35Z</dc:date>
    </item>
  </channel>
</rss>

