<?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: Need to modify the search by eliminating append commands.is it possible? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580944#M202392</link>
    <description>&lt;P&gt;Are you sure it's &lt;FONT face="courier new,courier"&gt;append&lt;/FONT&gt; that's taking more time and not &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt;?&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt; command tends to be more inefficient.&amp;nbsp; Perhaps this will be a quicker way to plot volume.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (A,B) sourcetype IN (A,B) earliest=-12h latest=@m
| bin span=30m _time
```Count transactions by counting the number of unique UUID values```
| stats dc(UUID) by _time
| eval ReportKey="Today"
| append [search index IN (A,B) sourcetype IN (A,B) earliest=-12h-1w latest=@m-1w
  | bin span=30m _time
  | stats dc(UUID) by _time
  | eval ReportKey="LastWeek"
  | eval _time=_time+60*60*24*7] 
| timechart span=30m count as Volume by ReportKey &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 13:16:41 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-01-13T13:16:41Z</dc:date>
    <item>
      <title>Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580941#M202390</link>
      <description>&lt;P&gt;index IN (A,B) sourcetype IN (A,B) earliest=-12h latest=@m&lt;BR /&gt;| transaction UUID keepevicted=true&lt;BR /&gt;| eval ReportKey="Today"&lt;BR /&gt;| append [search index IN (A,B) sourcetype IN (A,B) earliest=-12h-1w latest=@m-1w&lt;BR /&gt;| transaction UUID keepevicted=true&lt;BR /&gt;| eval ReportKey="LastWeek"&lt;BR /&gt;| eval _time=_time+60*60*24*7]&amp;nbsp;&lt;BR /&gt;| timechart span=30m count(linecount) as Volume by ReportKey | fields _time,Today,LastWeek&lt;BR /&gt;&lt;BR /&gt;as this search taking more time to load so i am trying to modify the search can you please me with this.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Veerendra&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580941#M202390</guid>
      <dc:creator>Veeru</dc:creator>
      <dc:date>2022-01-13T13:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580944#M202392</link>
      <description>&lt;P&gt;Are you sure it's &lt;FONT face="courier new,courier"&gt;append&lt;/FONT&gt; that's taking more time and not &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt;?&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt; command tends to be more inefficient.&amp;nbsp; Perhaps this will be a quicker way to plot volume.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (A,B) sourcetype IN (A,B) earliest=-12h latest=@m
| bin span=30m _time
```Count transactions by counting the number of unique UUID values```
| stats dc(UUID) by _time
| eval ReportKey="Today"
| append [search index IN (A,B) sourcetype IN (A,B) earliest=-12h-1w latest=@m-1w
  | bin span=30m _time
  | stats dc(UUID) by _time
  | eval ReportKey="LastWeek"
  | eval _time=_time+60*60*24*7] 
| timechart span=30m count as Volume by ReportKey &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:16:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580944#M202392</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-13T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580946#M202393</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that gives me 0 count,it’s not giving me the exact results&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 13:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580946#M202393</guid>
      <dc:creator>Veeru</dc:creator>
      <dc:date>2022-01-13T13:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580981#M202406</link>
      <description>&lt;P&gt;Let's break it down a little.&amp;nbsp; Does this part produce correct results?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (A,B) sourcetype IN (A,B) earliest=-12h latest=@m
| bin span=30m _time
| stats dc(UUID) by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/580981#M202406</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-13T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/581299#M202521</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Till stats count(uuid) is working but i want &amp;nbsp;by reportkey&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 09:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/581299#M202521</guid>
      <dc:creator>Veeru</dc:creator>
      <dc:date>2022-01-17T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/581302#M202522</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for reply&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;index IN (A,B) sourcetype IN (A,B) earliest=-12h latest=@m
| bin span=30m _time
| stats dc(UUID) by _time&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;this giving exact results but &amp;nbsp;when i append with but search i.e&lt;/P&gt;&lt;P&gt;index in (a,b) sourcetype in (a,b) earliest=-12h latest=@m&lt;/P&gt;&lt;P&gt;|bin span =30m _time&lt;/P&gt;&lt;P&gt;|stats dc(Uuid) as today &amp;nbsp;by _time&lt;/P&gt;&lt;P&gt;|append[ |search&amp;nbsp;&lt;SPAN&gt;index in (a,b) sourcetype in (a,b) earliest=-12h -1w latest=@m-1w&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|eval _time=_time+60*60*24*14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;|bin span =30m _time&lt;/P&gt;&lt;P&gt;|stats dc(Uuid) as lastweek by _time] |fields today,lastweek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this query for today i am geeting exact output but for lastweek i am getting 0 results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;&lt;P&gt;veeru&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 10:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/581302#M202522</guid>
      <dc:creator>Veeru</dc:creator>
      <dc:date>2022-01-17T10:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to modify the search by eliminating append commands.is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/581372#M202543</link>
      <description>&lt;P&gt;The "&lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt;" keyword must be capitalized.&amp;nbsp; Also, consider using the &lt;FONT face="courier new,courier"&gt;relative_time&lt;/FONT&gt; function instead of maths.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (a,b) sourcetype in (a,b) earliest=-12h latest=@m
|bin span =30m _time
|stats dc(Uuid) as today  by _time
|append[ |search index IN (a,b) sourcetype in (a,b) earliest=-12h -1w latest=@m-1w
  |eval _time=relative_time(_time, "+1w")
  |bin span =30m _time
  |stats dc(Uuid) as lastweek by _time] 
|fields today,lastweek&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 17:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-modify-the-search-by-eliminating-append-commands-is-it/m-p/581372#M202543</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-17T17:57:05Z</dc:date>
    </item>
  </channel>
</rss>

