<?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: keep original sourcetype in summary index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45448#M8512</link>
    <description>&lt;P&gt;This does not seem to work for me. No matter what I do I can't get the Splunk to use the orgin sourcetype when reading from the summary index.&lt;/P&gt;

&lt;P&gt;This is the command that is stored in Manager » Searches and reports  » View Recent  » "latest" : &lt;/P&gt;

&lt;P&gt;index="pdns" | search "google" | eval orig_sourcetype=sourcetype | summaryindex spool=t uselb=t addtime=t index="testalarms" file="google_645699260.stash_new" name="google" marker=""&lt;/P&gt;

&lt;P&gt;I have also tried updating props.conf:&lt;/P&gt;

&lt;P&gt;[source::/opt/splunk/var/spool/splunk/*]&lt;BR /&gt;
sourcetype = pdns2&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;[stash]&lt;BR /&gt;
sourcetype = pdns2&lt;BR /&gt;
priority = 101&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:22:11 GMT</pubDate>
    <dc:creator>grodaas</dc:creator>
    <dc:date>2020-09-28T12:22:11Z</dc:date>
    <item>
      <title>How to keep original sourcetype in summary index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45446#M8510</link>
      <description>&lt;P&gt;I have multiple scheduled searches that run on large indexes and save the results to a summary index. There is no aggregation in the searches, only filtering. An example search would be something like "index=http google.com".&lt;/P&gt;
&lt;P&gt;My problem is that when I save the search to the summary index the sourcetype is changed to "stash". I would like to keep the old sourcetype. Is there a way to tell Splunk to keep the original sourcetype?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 16:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45446#M8510</guid>
      <dc:creator>grodaas</dc:creator>
      <dc:date>2022-03-01T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45447#M8511</link>
      <description>&lt;P&gt;A workaround for this could be simply doing something like this&lt;/P&gt;

&lt;P&gt;index=http google.com | eval orig_sourcetype=sourcetype&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2012 14:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45447#M8511</guid>
      <dc:creator>johandk</dc:creator>
      <dc:date>2012-08-28T14:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45448#M8512</link>
      <description>&lt;P&gt;This does not seem to work for me. No matter what I do I can't get the Splunk to use the orgin sourcetype when reading from the summary index.&lt;/P&gt;

&lt;P&gt;This is the command that is stored in Manager » Searches and reports  » View Recent  » "latest" : &lt;/P&gt;

&lt;P&gt;index="pdns" | search "google" | eval orig_sourcetype=sourcetype | summaryindex spool=t uselb=t addtime=t index="testalarms" file="google_645699260.stash_new" name="google" marker=""&lt;/P&gt;

&lt;P&gt;I have also tried updating props.conf:&lt;/P&gt;

&lt;P&gt;[source::/opt/splunk/var/spool/splunk/*]&lt;BR /&gt;
sourcetype = pdns2&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;[stash]&lt;BR /&gt;
sourcetype = pdns2&lt;BR /&gt;
priority = 101&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45448#M8512</guid>
      <dc:creator>grodaas</dc:creator>
      <dc:date>2020-09-28T12:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45449#M8513</link>
      <description>&lt;P&gt;This does not work for me either. I posted a question about it yesterday. any use of the collect command throws your stuff into "stash". How convenient.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 14:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45449#M8513</guid>
      <dc:creator>Tipmoose</dc:creator>
      <dc:date>2013-06-27T14:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45450#M8514</link>
      <description>&lt;P&gt;Summary Indexing by default change the sourcetype to stash. This is how splunk knows that data is already in splunk and your summary data will not be account for your additional license.&lt;BR /&gt;
You can change the sourcetype, but remember the data will go against your license.&lt;BR /&gt;
I guess one of the practices is to re-use the source field and set it to sourcetype for summary indexes.&lt;BR /&gt;
For example :&lt;BR /&gt;
    index=xyz result=success | stats count .... | collect index=summary source=sourcetype&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 04:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/45450#M8514</guid>
      <dc:creator>jagadeeshm</dc:creator>
      <dc:date>2016-11-08T04:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/569699#M101008</link>
      <description>&lt;P&gt;Add following lines in savedsearches.conf under the stanza for saved search you create&lt;/P&gt;&lt;P&gt;&lt;SPAN class="blob-code-inner blob-code-marker"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; action.summary_index.sourcetype = cerner:millennium:audit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="blob-code-inner blob-code-marker"&gt;or add new filed under summary index&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ss026381_0-1633439979532.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16278i079ACA1A7379302B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ss026381_0-1633439979532.png" alt="ss026381_0-1633439979532.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ss026381_0-1633439979532.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/569699#M101008</guid>
      <dc:creator>ss026381</dc:creator>
      <dc:date>2021-10-05T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/569704#M101009</link>
      <description>&lt;P&gt;Any particular reason for doing the filtering into it's own index/sourcetype combination?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/569704#M101009</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-10-05T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: keep original sourcetype in summary index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/587037#M103144</link>
      <description>&lt;P&gt;| collect index='indexname' sourcetype='sourcetypename'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works fine..i&amp;nbsp; just tried it&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 15:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-keep-original-sourcetype-in-summary-index/m-p/587037#M103144</guid>
      <dc:creator>jfuller19</dc:creator>
      <dc:date>2022-03-01T15:23:00Z</dc:date>
    </item>
  </channel>
</rss>

