<?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: Appending Searched parsing output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518667#M145938</link>
    <description>&lt;P&gt;top routingkey=0 # this is wrong.&lt;/P&gt;&lt;P&gt;|top routingkey limit=0 # supposed to be.&lt;/P&gt;&lt;P&gt;check&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt;&amp;nbsp; answer properly.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 12:11:35 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-09-09T12:11:35Z</dc:date>
    <item>
      <title>Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/515906#M144885</link>
      <description>&lt;P&gt;I m using append query multiple times for different searches for same index.&lt;/P&gt;&lt;P&gt;Its parsing my job. Please advise solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1598316994041.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10484i734A27623CC2F039/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1598316994041.png" alt="Manasi25_0-1598316994041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 00:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/515906#M144885</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-25T00:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/515936#M144896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224603"&gt;@Manasi25&lt;/a&gt;&amp;nbsp;append is an expensive query in terms of search time. Could you please share details on what you are trying to achieve with your query.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 06:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/515936#M144896</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-25T06:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/515951#M144902</link>
      <description>&lt;P&gt;can you specify index or sourcetype or source in append search? this will limit search to that particular index or sourcetype or source and performance will improve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;your sub search used in append :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search  routingKey=routingCLBT_Infrastructure_Operations  # this will return only one routingKey

| top limit=50 routingKey # you will only get one result with 3 headers routingKey count percent and percent is 100% here since you have applied filter already and routingKey has only one at the moment.
| stats sum(count) as count, avg(percent) as percent # it has no effect 
| eval routingKey="CLBT" # creating field and assigning static value.&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I would suggest below search in append command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| append [search index=&amp;lt;specify_index&amp;gt; 
| stats count by routingKey
| eventstats sum(count) as total
| eval percent=round((count/total)*100,2)
| search routingKey=routingCLBT_Infrastructure_Operations 
| eval routingKey="CLBT"]&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 25 Aug 2020 07:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/515951#M144902</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-25T07:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516176#M145030</link>
      <description>&lt;P&gt;Hello, Thanks for help !&lt;/P&gt;&lt;P&gt;But , i have multiple routingKey's for one Output. So how can I modify this? Below is example which I have run for my report.I need addtotals for all with count and percent(avg) --Below results parsing my output. I have "IA- IJ" field values.&lt;/P&gt;&lt;P&gt;index=victorops&amp;nbsp;&lt;BR /&gt;routingKey=routingA OR routingKey=routingB OR routingKey=routingKeyC OR routingKey=routingKeyD OR routingKey=routingE | top limit=50 routingKey&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent&lt;/P&gt;&lt;P&gt;| eval routingKey = "IA"&lt;/P&gt;&lt;P&gt;| append [ search routingKey=routingAA OR routingAB OR routingKey=routingAC OR routingKey=routingAD OR routingKey=routingAE | top limit=50 routingKey&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent&lt;/P&gt;&lt;P&gt;|eval routingKey = "IB" ]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;|&amp;nbsp; addcoltotals labelfield=routingKey label=Total&lt;/P&gt;&lt;P&gt;| table routingKey, count, percent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 01:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516176#M145030</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-26T01:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516398#M145105</link>
      <description>&lt;P&gt;index=victorops&lt;BR /&gt;| stats count by routingKey&lt;BR /&gt;| rex field=routingKey mode=sed "s/routing([A-Z]+).*/\1/"&lt;BR /&gt;| eventstats sum(count) as total&lt;BR /&gt;| eval perc = round( count / total * 100 ,2 )&lt;BR /&gt;| appendpipe [| stats sum(count) as Count avg(perc) as Percent&amp;nbsp;&lt;BR /&gt;| eval routingKey="Total"]&lt;BR /&gt;| table routingKey Count Percent&lt;BR /&gt;| rename routingKey = "Product Name"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 21:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516398#M145105</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-26T21:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516417#M145116</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;These query gives the output all my routingKey in ascending order.&lt;/P&gt;&lt;P&gt;I need below --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product Name&amp;nbsp; Count&amp;nbsp; Percent (avg)&lt;/P&gt;&lt;P&gt;IA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50%&lt;/P&gt;&lt;P&gt;IB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30%&lt;/P&gt;&lt;P&gt;IC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.5%&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0%&lt;/P&gt;&lt;P&gt;Each product name has different routingKey.&lt;/P&gt;&lt;P&gt;Output should be -- i need avg for percent in TOTAL row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1598494151925.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10530i534BDEB6E354D219/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1598494151925.png" alt="Manasi25_0-1598494151925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 02:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516417#M145116</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-27T02:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516479#M145161</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224603"&gt;@Manasi25&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is nothing about logs. what do you think making the query?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 10:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516479#M145161</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-27T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516486#M145165</link>
      <description>&lt;P&gt;index=victorops&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;routingKey=routingA OR routingKey=routingB OR routingKey=routingKeyC OR routingKey=routingKeyD OR routingKey=routingE | top limit=50 routingKey&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent&lt;/P&gt;&lt;P&gt;| eval routingKey = "IA"&lt;/P&gt;&lt;P&gt;| append [ search routingKey=routingAA OR routingAB OR routingKey=routingAC OR routingKey=routingAD OR routingKey=routingAE | top limit=50 routingKey&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent&lt;/P&gt;&lt;P&gt;|eval routingKey = "IB" ]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;|&amp;nbsp; addcoltotals labelfield=routingKey label=Total&lt;/P&gt;&lt;P&gt;| table routingKey, count, percent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above resulted below --&lt;/P&gt;&lt;P&gt;Product Name&amp;nbsp; &amp;nbsp; &amp;nbsp;Count&amp;nbsp; &amp;nbsp; Percent&lt;/P&gt;&lt;P&gt;IA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.25&lt;/P&gt;&lt;P&gt;IB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;90&amp;nbsp; &amp;nbsp;(Sum of routigKey)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15.125 (avg) ----I need this as average&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But while running above query, its parsing my output. Plz advise&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 11:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516486#M145165</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-27T11:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516602#M145202</link>
      <description>&lt;P&gt;appendpipe is enough.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 20:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516602#M145202</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-27T20:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516888#M145303</link>
      <description>&lt;P&gt;Its parsing my output as I have number of routingKey to append.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 03:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/516888#M145303</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-30T03:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518415#M145784</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;Below you which you given solution, parsing my output. Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1599563146917.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10709i5D94449CF6A166ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1599563146917.png" alt="Manasi25_0-1599563146917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 11:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518415#M145784</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-09-08T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518570#M145889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224603"&gt;@Manasi25&lt;/a&gt;&amp;nbsp;, one question- why you need so many appends? Can you try something like below, it will be quick and I think gives the same output.&lt;/P&gt;&lt;P&gt;You have to include all the routing keys below, I have just added two sets and accordingly update the case statement as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=victorops routingKey=routingA OR routingKey=routingB OR routingKey=routingKeyC OR routingKey=routingKeyD OR routingKey=routingE OR routingKey=routingAA OR routingAB OR routingKey=routingAC OR routingKey=routingAD OR routingKey=routingAE 
| eval routingKey=case(routingKey="routingA" OR routingKey="routingB" OR routingKey="routingKeyC" OR routingKey="routingKeyD" OR routingKey="routingE","IA",routingKey="routingAA" OR "routingAB" OR routingKey="routingAC" OR routingKey="routingAD" OR routingKey="routingAE","IB",1=1,"other") 
| top routingKey limit=0 
| addcoltotals labelfield=routingKey label=Total&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 22:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518570#M145889</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-09-08T22:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518664#M145937</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given query resulted below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1599653357733.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10743i2FC021D537677AF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1599653357733.png" alt="Manasi25_0-1599653357733.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:09:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518664#M145937</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-09-09T12:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending Searched parsing output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518667#M145938</link>
      <description>&lt;P&gt;top routingkey=0 # this is wrong.&lt;/P&gt;&lt;P&gt;|top routingkey limit=0 # supposed to be.&lt;/P&gt;&lt;P&gt;check&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/215670"&gt;@Nisha18789&lt;/a&gt;&amp;nbsp; answer properly.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appending-Searched-parsing-output/m-p/518667#M145938</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-09T12:11:35Z</dc:date>
    </item>
  </channel>
</rss>

