<?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: format my successRate query into a week over week comparison in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550685#M156274</link>
    <description>&lt;P&gt;try with this at the end&amp;nbsp;&amp;nbsp;&lt;BR /&gt;select timerange last 30 days like that&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---&amp;nbsp; ----&amp;nbsp; ---- | bin _time span=1w | stats count&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 19:52:36 GMT</pubDate>
    <dc:creator>sravankaripe</dc:creator>
    <dc:date>2021-05-06T19:52:36Z</dc:date>
    <item>
      <title>format my successRate query into a week over week comparison</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550684#M156273</link>
      <description>&lt;P&gt;i have a working query which is monitoring the success rate based off a value called app_id. i want to extend the current query i have and also show the success rate for each app_id but broken down by currentWeek, lastWeek, 2weeksago success rate percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current query is:&lt;BR /&gt;index=jj3 "TRANSACTIONA" OR "TRANSACTIONB" | rex field=log "\"app_id\": \W(?&amp;lt;app_id&amp;gt;\w+)\W" | rex field=log "\"event_name\": \W(?&amp;lt;event_name&amp;gt;[a-zA-Z-|_|:]+)\W" | eval firstTransaction=if(event_name=="TRANSACTIONA", 1, 0) | eval secondTransaction=if(event_name=="TRANSACTIONB", 1, 0) | stats sum(firstTransaction) as TotalfirstTransaction sum(secondTransaction) as TotalsecondTransaction by app_id | dedup app_id | eval successRate=round(TotalsecondTransaction/TotalfirstTransaction*100, 1)."%" | fillnull successRate | sort - successRate | search NOT successRate=0&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 19:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550684#M156273</guid>
      <dc:creator>billycn20</dc:creator>
      <dc:date>2021-05-06T19:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: format my successRate query into a week over week comparison</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550685#M156274</link>
      <description>&lt;P&gt;try with this at the end&amp;nbsp;&amp;nbsp;&lt;BR /&gt;select timerange last 30 days like that&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---&amp;nbsp; ----&amp;nbsp; ---- | bin _time span=1w | stats count&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 19:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550685#M156274</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2021-05-06T19:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: format my successRate query into a week over week comparison</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550686#M156275</link>
      <description>&lt;P&gt;no, that doesn't seem to provide any desirable results.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 19:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550686#M156275</guid>
      <dc:creator>billycn20</dc:creator>
      <dc:date>2021-05-06T19:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: format my successRate query into a week over week comparison</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550688#M156276</link>
      <description>&lt;P&gt;remove dedup after stats you may get some results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550688#M156276</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2021-05-06T20:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: format my successRate query into a week over week comparison</title>
      <link>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550689#M156277</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;using that suggestion as well, doesn't provide any change in results. my stats actually still looks identical to my original query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;here is the updated query as per your suggestions:&lt;BR /&gt;&lt;BR /&gt;index=jj3 "TRANSACTIONA" OR "TRANSACTIONB" | rex field=log "\"app_id\": \W(?&amp;lt;app_id&amp;gt;\w+)\W" | rex field=log "\"event_name\": \W(?&amp;lt;event_name&amp;gt;[a-zA-Z-|_|:]+)\W" | eval firstTransaction=if(event_name=="TRANSACTIONA", 1, 0) | eval secondTransaction=if(event_name=="TRANSACTIONB", 1, 0) | bin _time span=2w | stats sum(firstTransaction) as TotalfirstTransaction sum(secondTransaction) as TotalsecondTransaction by app_id | eval successRate=round(TotalsecondTransaction/TotalfirstTransaction*100, 1)."%" | fillnull successRate | sort - successRate | search NOT successRate=0&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/format-my-successRate-query-into-a-week-over-week-comparison/m-p/550689#M156277</guid>
      <dc:creator>billycn20</dc:creator>
      <dc:date>2021-05-06T20:11:46Z</dc:date>
    </item>
  </channel>
</rss>

