<?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: Windows Scripted Input specify index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612104#M105960</link>
    <description>&lt;P class="lia-align-left"&gt;yes it does exist and it's of a right type ...&lt;/P&gt;&lt;P class="lia-align-left"&gt;Forgot to mention, i'm using splunk 8.2.1&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 13:30:25 GMT</pubDate>
    <dc:creator>Viorel</dc:creator>
    <dc:date>2022-09-06T13:30:25Z</dc:date>
    <item>
      <title>Windows Scripted Input specify index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612097#M105958</link>
      <description>&lt;P&gt;I am probably overengineering this but this is the only way I could get a script to execute on UF, via a deployed application's bin folder &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a .path file which executes powershell.exe -command "&amp;amp; 'path_to_ps1_script'" and it's placed, as stated, in myapp\bin\scripts folder&lt;/P&gt;&lt;P&gt;The PS1 script, returns a valid JSON.&lt;/P&gt;&lt;P&gt;The app's inputs.conf stanza:&lt;/P&gt;&lt;P&gt;[script://$SPLUNK_HOME\etc\apps\&amp;lt;my app&amp;gt;\bin\scripts\myscript.path]&lt;BR /&gt;disabled=false&lt;BR /&gt;interval=60&lt;BR /&gt;sourcetype=my_source_type&lt;BR /&gt;source=my_source&lt;BR /&gt;send_index_as_argument_for_path=false&lt;BR /&gt;index=my_index&lt;/P&gt;&lt;P&gt;As soon as I put index=my_index in my stanza, the data is not being indexed for some reason.&lt;/P&gt;&lt;P&gt;If I remove the index, the data is indexed into the default "main" index, however i'm looking for a solution to send that data to an index I specify&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 12:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612097#M105958</guid>
      <dc:creator>Viorel</dc:creator>
      <dc:date>2022-09-06T12:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Scripted Input specify index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612101#M105959</link>
      <description>&lt;P&gt;Does my_index exist on the indexers and is it the right type?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 12:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612101#M105959</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-06T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Scripted Input specify index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612104#M105960</link>
      <description>&lt;P class="lia-align-left"&gt;yes it does exist and it's of a right type ...&lt;/P&gt;&lt;P class="lia-align-left"&gt;Forgot to mention, i'm using splunk 8.2.1&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612104#M105960</guid>
      <dc:creator>Viorel</dc:creator>
      <dc:date>2022-09-06T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Scripted Input specify index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612106#M105961</link>
      <description>&lt;P&gt;Well... it should work so it's strange that it doesn't.&lt;/P&gt;&lt;P&gt;Do you have any related errors in _internal (from either your UF or your downstream idxs/HFs)?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612106#M105961</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-09-06T13:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Scripted Input specify index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612117#M105962</link>
      <description>&lt;P&gt;Remove these from the inputs.conf&lt;/P&gt;&lt;P&gt;source=my_source&lt;BR /&gt;send_index_as_argument_for_path=false&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 15:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612117#M105962</guid>
      <dc:creator>matt8679</dc:creator>
      <dc:date>2022-09-06T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Scripted Input specify index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612201#M105966</link>
      <description>&lt;P&gt;For some reason, deleting the index from the indexer server and then re-creating it, fixed the issue.&lt;/P&gt;&lt;P&gt;Thank you all for your suggestions&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 07:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-Scripted-Input-specify-index/m-p/612201#M105966</guid>
      <dc:creator>Viorel</dc:creator>
      <dc:date>2022-09-07T07:18:37Z</dc:date>
    </item>
  </channel>
</rss>

