<?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: appendcols and streamstats with alltime in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691451#M235445</link>
    <description>&lt;P&gt;Subsearches are usually limited to 50k events so an alltime subsearch it likely to have been (silently) terminated. Given that your index and source type are the same, try removing the subsearch&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ndx sourcetype=src (device="PM4" OR device="PM2") earliest=0 latest=@d
| bucket _time span=1d
| stats max(eval(if(device="PM4",value,null()))) as PM4Val max(eval(if(device="PM2",value,null()))) as PM2Val by _time index&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 13:32:33 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-06-24T13:32:33Z</dc:date>
    <item>
      <title>appendcols and streamstats with alltime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691444#M235441</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have a search that works for a range of a few days (eg earliest=-7d@d), but when running for alltime it breaks. I suspect this is an issue with appendcols or streamstats? Any pointers would be appreciated.&lt;/P&gt;&lt;P&gt;I'm using this to generate a lookup which I can then search instead of using an expensive alltime.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ndx sourcetype=src (device="PM4") earliest=0 latest=@d
| bucket _time span=1d
| stats max(value) as PM4Val by _time index
| appendcols 
[ search index=ndx sourcetype=src (device="PM2") earliest=0 latest=@d
| bucket _time span=1d
| stats max(value) as PM2Val by _time index
]
| streamstats current=f last(PM4Val) as LastPM4Val last(PM2Val) as LastPM2Val by index
| eval PM4ValDelta = PM4Val - LastPM4Val, PM2ValDelta = PM2Val - LastPM2Val
| table _time, index, PM4Val, PM4ValDelta, PM2Val, PM2ValDelta
| sort index -_time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 13:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691444#M235441</guid>
      <dc:creator>dataisbeautiful</dc:creator>
      <dc:date>2024-06-24T13:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols and streamstats with alltime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691451#M235445</link>
      <description>&lt;P&gt;Subsearches are usually limited to 50k events so an alltime subsearch it likely to have been (silently) terminated. Given that your index and source type are the same, try removing the subsearch&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ndx sourcetype=src (device="PM4" OR device="PM2") earliest=0 latest=@d
| bucket _time span=1d
| stats max(eval(if(device="PM4",value,null()))) as PM4Val max(eval(if(device="PM2",value,null()))) as PM2Val by _time index&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 13:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691451#M235445</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-24T13:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols and streamstats with alltime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691455#M235446</link>
      <description>&lt;P&gt;Doing an EVAL in STATS has made by day &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 13:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691455#M235446</guid>
      <dc:creator>dataisbeautiful</dc:creator>
      <dc:date>2024-06-24T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols and streamstats with alltime</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691474#M235449</link>
      <description>&lt;P&gt;50k is the limit on subsearch when used with &lt;EM&gt;join&lt;/EM&gt; command. The "normal" subsearch limit is much lower - it's 10k results.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-and-streamstats-with-alltime/m-p/691474#M235449</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-06-24T16:56:13Z</dc:date>
    </item>
  </channel>
</rss>

