<?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: Post processing summarized data in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Post-processing-summarized-data/m-p/46573#M2295</link>
    <description>&lt;P&gt;Strange. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats sum(Households)&lt;/CODE&gt;  should work,  that is unless the main search is completely empty. &lt;/P&gt;

&lt;P&gt;What 'illegal' message did that return?  Can you paste it in? &lt;/P&gt;

&lt;P&gt;As to the second postProcess,  &lt;CODE&gt;timechart span=1d sum(play_seconds_val) by ServiceName useother="f" -&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Well this wont work because the final results for your base search doesn't have a field called play_seconds_val.  You renamed it to PlaySeconds. &lt;/P&gt;

&lt;P&gt;And the third postProcess,  for one thing there's a typo  -- &lt;CODE&gt;PlaySecnds&lt;/CODE&gt; instead of &lt;CODE&gt;PlaySeconds&lt;/CODE&gt;, and for a second problem indeed you need to have a function argument like distinct_count()  or sum() or max().  You can't just specify raw field names. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:10:24 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2020-09-28T12:10:24Z</dc:date>
    <item>
      <title>Post processing summarized data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Post-processing-summarized-data/m-p/46572#M2294</link>
      <description>&lt;P&gt;I have the following search which outputs summarized data in 4 hours chunks perfectly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="MySocket" NOT ServiceName="Private Service"| eval search = if(eventtype="search",CounterValue,0)|eval browse = if(eventtype="browse",CounterValue,0)|eval tracks = if(eventtype="tracks",CounterValue,0)|eval play_seconds_val = if(eventtype="play_seconds",CounterValue,0)| eval play_error_val = if(eventtype="play_errors",CounterValue,0) | eval play_error_adj_val = if(eventtype="play_error_adjusted",CounterValue,0)| eval play_errors_total = play_error_val - play_error_adj_val | eval browse_errors=if(eventtype="browse_error",CounterValue, 0) |  eval search_errors=if(eventtype="search_error",CounterValue, 0)| eval other_errors = search_errors + browse_errors|bin _time span=4h | stats sum(search) as Search sum(browse) as Browse sum(tracks) as Tracks sum(play_seconds_val) as PlaySeconds sum(other_errors) as OtherErros sum(play_errors_total) as PlayErrorsTotal distinct_count(HouseholdId) as Households by _time ServiceName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However when I try to use HiddenPostProcess with this to generate different charts and single value fields I am getting invalid field errors.&lt;/P&gt;

&lt;P&gt;Here are a couple examples of what I am trying to do with prost process:&lt;BR /&gt;
&lt;CODE&gt;stats sum(Households)&lt;/CODE&gt; - this is for a single value field it fails saying illegal &lt;BR /&gt;
&lt;CODE&gt;timechart span=1d sum(play_seconds_val) by ServiceName useother="f"&lt;/CODE&gt; - for a chart, produces no results&lt;BR /&gt;
&lt;CODE&gt;timechart span=1d PlaySecnds by ServiceName useother="f"&lt;/CODE&gt; - for a chart, errors saying it must be in the form &lt;CODE&gt;&amp;lt;func&amp;gt;(&amp;lt;field&amp;gt;)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I cannot do the summarization step in post processing because the search will return more than 10,000 results.  Does anyone have any idea how to accomplish this? &lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Keith&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Post-processing-summarized-data/m-p/46572#M2294</guid>
      <dc:creator>kjcorbin</dc:creator>
      <dc:date>2011-07-21T17:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Post processing summarized data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Post-processing-summarized-data/m-p/46573#M2295</link>
      <description>&lt;P&gt;Strange. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;stats sum(Households)&lt;/CODE&gt;  should work,  that is unless the main search is completely empty. &lt;/P&gt;

&lt;P&gt;What 'illegal' message did that return?  Can you paste it in? &lt;/P&gt;

&lt;P&gt;As to the second postProcess,  &lt;CODE&gt;timechart span=1d sum(play_seconds_val) by ServiceName useother="f" -&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Well this wont work because the final results for your base search doesn't have a field called play_seconds_val.  You renamed it to PlaySeconds. &lt;/P&gt;

&lt;P&gt;And the third postProcess,  for one thing there's a typo  -- &lt;CODE&gt;PlaySecnds&lt;/CODE&gt; instead of &lt;CODE&gt;PlaySeconds&lt;/CODE&gt;, and for a second problem indeed you need to have a function argument like distinct_count()  or sum() or max().  You can't just specify raw field names. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Post-processing-summarized-data/m-p/46573#M2295</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T12:10:24Z</dc:date>
    </item>
  </channel>
</rss>

