<?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 Can we index data to Splunk which is from custom search command? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474932#M85855</link>
    <description>&lt;P&gt;Hello all,&lt;BR /&gt;I have an add-on with written a custom search command and I wanted to know in How can I push the results of a custom search command into 'my_index', and how I can associate an index with a sourcetype?&lt;/P&gt;
&lt;P&gt;Please, help me.&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 19:38:59 GMT</pubDate>
    <dc:creator>loginsoftresear</dc:creator>
    <dc:date>2020-06-08T19:38:59Z</dc:date>
    <item>
      <title>Can we index data to Splunk which is from custom search command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474932#M85855</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;I have an add-on with written a custom search command and I wanted to know in How can I push the results of a custom search command into 'my_index', and how I can associate an index with a sourcetype?&lt;/P&gt;
&lt;P&gt;Please, help me.&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 19:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474932#M85855</guid>
      <dc:creator>loginsoftresear</dc:creator>
      <dc:date>2020-06-08T19:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can we index data to Splunk which is from custom search command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474933#M85856</link>
      <description>&lt;P&gt;You can try to use the collect command at the end of your search to push the results into an index much like you would do with summary indexing.&lt;/P&gt;

&lt;P&gt;From docs:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2001/SearchReference/Collect"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2001/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What do you mean with "associate an index with a sourcetype"?&lt;BR /&gt;
You can have multiple sourcetypes per index (e.g a lot of customers index a lot of data sources to index=main) and the same sourcetypes in multiple indexes (e.g some user might split data with the same sourcetpye per index based on data geo location).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474933#M85856</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2020-04-10T19:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we index data to Splunk which is from custom search command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474934#M85857</link>
      <description>&lt;P&gt;There are several methods.  If your records are already being assigned a specific sourcetype, then the standard one would be to key on the sourcetype to set the index.  That would look something like this.&lt;/P&gt;

&lt;P&gt;in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[some_sourcetype]
TRANSFORMS-index1 = set_index_1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [set_index_1]
 REGEX    = . 
 DEST_KEY = _MetaData:Index 
 FORMAT   = some_index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2020 19:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474934#M85857</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-04-10T19:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we index data to Splunk which is from custom search command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474935#M85858</link>
      <description>&lt;P&gt;It is pushing to summary index, can I push it normal index which I already have?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 05:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-index-data-to-Splunk-which-is-from-custom-search-command/m-p/474935#M85858</guid>
      <dc:creator>loginsoftresear</dc:creator>
      <dc:date>2020-04-13T05:15:38Z</dc:date>
    </item>
  </channel>
</rss>

