<?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: What to do when appendcols command can't handle larger counts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349781#M103528</link>
    <description>&lt;P&gt;You need to summarize data per hour (which implies you will reduce daily events from 30K*24 to 24). Then you will be able to run subsearches like appendcol without dropping data.&lt;/P&gt;

&lt;P&gt;Refer to sitimechart and collect commands on Splunk documentation for your reference.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sitimechart"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sitimechart&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 21:32:26 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-03-09T21:32:26Z</dc:date>
    <item>
      <title>What to do when appendcols command can't handle larger counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349780#M103527</link>
      <description>&lt;P&gt;We need to determine a 30 day average based on the count of two events, a request and a response. The issue is that each generate upward of 30K each...hourly. The search below works great for short durations, but once the duration increases, the count data from the appendcols is all over the map.&lt;BR /&gt;
Any ideas would be greatly appreciated!!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah blah blah 
| search field="A Response*"  
| timechart span=1h count as response  
| appendcols [ search field="A Request*"   
| timechart span=1h count as request ]  
| eval reciprocal=round(response/request,2)*100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349780#M103527</guid>
      <dc:creator>f5x6kb8</dc:creator>
      <dc:date>2017-03-09T17:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: What to do when appendcols command can't handle larger counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349781#M103528</link>
      <description>&lt;P&gt;You need to summarize data per hour (which implies you will reduce daily events from 30K*24 to 24). Then you will be able to run subsearches like appendcol without dropping data.&lt;/P&gt;

&lt;P&gt;Refer to sitimechart and collect commands on Splunk documentation for your reference.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sitimechart"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Sitimechart&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349781#M103528</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-09T21:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: What to do when appendcols command can't handle larger counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349782#M103529</link>
      <description>&lt;P&gt;and/or it may be possible to avoid the appendcols altogether. We can have a look if you can share full search of yours.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349782#M103529</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-09T21:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: What to do when appendcols command can't handle larger counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349783#M103530</link>
      <description>&lt;P&gt;Eliminate appendcols by just processing the data once for both types.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=blah blah blah 
 | search field="A Response*" OR field="A Request*"
 | bin _time span=1h
 | eval request=if(like(field,"A Request%"),1,0)
 | eval response=if(like(field,"A Response%"),1,0)
 | timechart span=1h sum(request) as request, sum(response) as response  
 | eval reciprocal=round(response/request,2)*100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search might also be written like this.  not sure which is more efficient, and not sure whether the  &lt;CODE&gt;.*&lt;/CODE&gt; on the end is needed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | regex field="^A Re(sponse|quest).*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Mar 2017 23:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349783#M103530</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-09T23:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: What to do when appendcols command can't handle larger counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349784#M103531</link>
      <description>&lt;P&gt;Worked like a charm! Thank you very much for taking the time. Have a Great Weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 13:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-to-do-when-appendcols-command-can-t-handle-larger-counts/m-p/349784#M103531</guid>
      <dc:creator>f5x6kb8</dc:creator>
      <dc:date>2017-03-10T13:25:56Z</dc:date>
    </item>
  </channel>
</rss>

