<?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: How can I preserver original fields in a summary index? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256770#M2258</link>
    <description>&lt;P&gt;Hi joy,&lt;/P&gt;

&lt;P&gt;This must be due to the fact that your field extractions are applied to the sourcetype given to the _raw indexed data . I think if you try to run your query  in the search app using &lt;CODE&gt;| collect index="summaryIndex"&lt;/CODE&gt;, the fields are there.&lt;/P&gt;

&lt;P&gt;To fix this, try to recreate your field extraction regex's to also be applied to a sourcetype of  ''application''.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2016 13:15:56 GMT</pubDate>
    <dc:creator>ngatchasandra</dc:creator>
    <dc:date>2016-01-28T13:15:56Z</dc:date>
    <item>
      <title>How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256768#M2256</link>
      <description>&lt;P&gt;When I summary index, my data's original fields are lost. &lt;BR /&gt;
How can I preserve original fields in a Summary Index? &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 12:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256768#M2256</guid>
      <dc:creator>joydeep741</dc:creator>
      <dc:date>2016-01-28T12:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256769#M2257</link>
      <description>&lt;P&gt;Hi joydeep41&lt;BR /&gt;
Can you share what search you are running where you can't see the original fields? I summary search would typically end with a summarizing command like stats or timechart and not raw data. The meta data fields (source, sourcetype etc.)  should get the "original_" prefix added to them.&lt;/P&gt;

&lt;P&gt;j&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 13:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256769#M2257</guid>
      <dc:creator>jbjerke_splunk</dc:creator>
      <dc:date>2016-01-28T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256770#M2258</link>
      <description>&lt;P&gt;Hi joy,&lt;/P&gt;

&lt;P&gt;This must be due to the fact that your field extractions are applied to the sourcetype given to the _raw indexed data . I think if you try to run your query  in the search app using &lt;CODE&gt;| collect index="summaryIndex"&lt;/CODE&gt;, the fields are there.&lt;/P&gt;

&lt;P&gt;To fix this, try to recreate your field extraction regex's to also be applied to a sourcetype of  ''application''.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 13:15:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256770#M2258</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2016-01-28T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256771#M2259</link>
      <description>&lt;OL&gt;
&lt;LI&gt;“Original Search Query” : Before summary indexing 
Query searches raw data of last one day (yesterday’s data) :&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;index=dotcom_odin &lt;BR /&gt;
sourcetype="odin_ws_access"&lt;BR /&gt;&lt;BR /&gt;
| eval host_sourcetype= host+"_"+sourcetype&lt;BR /&gt;
| timechart span=5m count as "Requests" by host_sourcetype limit=100&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; INDEX POPULATING SEARCH :-&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;index=dotcom_odin &lt;BR /&gt;
sourcetype="odin_ws_access"&lt;BR /&gt;
| eval host_sourcetype= host+"_"+sourcetype&lt;BR /&gt;
| sitimechart span=5m count as "Requests" by host_sourcetype limit=100&lt;/P&gt;

&lt;P&gt;After the summary index is complete I see all my original fields lost. I want to use them in queries. Is there a way to preserve them in summary index ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256771#M2259</guid>
      <dc:creator>joydeep741</dc:creator>
      <dc:date>2020-09-29T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256772#M2260</link>
      <description>&lt;OL&gt;
&lt;LI&gt;“Original Search Query” : Before summary indexing 
Query searches raw data of last one day (yesterday’s data) :&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;index=dotcom_odin &lt;BR /&gt;
sourcetype="odin_ws_access"&lt;BR /&gt;&lt;BR /&gt;
| eval host_sourcetype= host+"_"+sourcetype&lt;BR /&gt;
| timechart span=5m count as "Requests" by host_sourcetype limit=100&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; INDEX POPULATING SEARCH :-&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;index=dotcom_odin &lt;BR /&gt;
sourcetype="odin_ws_access"&lt;BR /&gt;
| eval host_sourcetype= host+"_"+sourcetype&lt;BR /&gt;
| sitimechart span=5m count as "Requests" by host_sourcetype limit=100&lt;/P&gt;

&lt;P&gt;After the summary index is complete I see all my original fields lost. I want to use them in queries. Is there a way to preserve them in summary index ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256772#M2260</guid>
      <dc:creator>joydeep741</dc:creator>
      <dc:date>2020-09-29T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256773#M2261</link>
      <description>&lt;P&gt;Hi joy&lt;/P&gt;

&lt;P&gt;The stats command above would only have two fields: &lt;STRONG&gt;Requests&lt;/STRONG&gt; and &lt;STRONG&gt;host_sourcetype&lt;/STRONG&gt; . These are the only fields created by that search. Which other fields are you expecting to see? &lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 14:05:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256773#M2261</guid>
      <dc:creator>jbjerke_splunk</dc:creator>
      <dc:date>2016-01-28T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256774#M2262</link>
      <description>&lt;P&gt;One option is to prepend the original fields before sending to the summary index...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| foreach _* *
    [| eval orig_&amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt;=&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(You may want to only prepend the fields you actually need, and which get overwritten, e.g. host, source, sourcetype, instead of &lt;CODE&gt;_* *&lt;/CODE&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 02:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256774#M2262</guid>
      <dc:creator>wrighke</dc:creator>
      <dc:date>2019-11-05T02:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I preserver original fields in a summary index?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256775#M2263</link>
      <description>&lt;P&gt;That is how it is supposed to work.  The &lt;CODE&gt;summary&lt;/CODE&gt; part means just that.  It only saves the fields that are present in your final results and even then, some, like &lt;CODE&gt;host&lt;/CODE&gt; are overridden and moved to &lt;CODE&gt;orig_*&lt;/CODE&gt; values like &lt;CODE&gt;orig_host&lt;/CODE&gt;.   If you need the &lt;CODE&gt;fields&lt;/CODE&gt; then you must preserver then through to the end of your search results.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 03:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-preserver-original-fields-in-a-summary-index/m-p/256775#M2263</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-05T03:31:02Z</dc:date>
    </item>
  </channel>
</rss>

