<?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: Filter Based on click in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140879#M38976</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;a followup question based on the query which you suggested.&lt;BR /&gt;
We have a panel with the following query and it shows the Avg_Response_Time column just fine&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG"  PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment"   | chart avg(Latency) as Avg_Response_Time count over TransactionStatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I used the query which you suggested and try to add the column for Avg_Response_Time it shows a blank column, any suggestions about integrating/overlaying Avg_Response_Time.&lt;/P&gt;

&lt;P&gt;Your Query:&lt;BR /&gt;
index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats latest(TransactionStatus) AS FinalStatus BY CorrelationId | chart count BY FinalStatus&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:54:51 GMT</pubDate>
    <dc:creator>athorat</dc:creator>
    <dc:date>2020-09-29T06:54:51Z</dc:date>
    <item>
      <title>Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140873#M38970</link>
      <description>&lt;P&gt;We have a query which is using join condition to filter data and we have a graph resulting into three columns&lt;BR /&gt;
Fail|Succcess| Success_v_Invalid&lt;/P&gt;

&lt;P&gt;When I click on the Fail bar it should display the events only for Failed Results.&lt;BR /&gt;
Right now it shows the entire list of events.&lt;BR /&gt;
How can we restrict or narrow it down.&lt;/P&gt;

&lt;P&gt;Query Used&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment"  TransactionStatus=FAIL   | join type=left CorrelationId [search index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment"  TransactionStatus !=FAIL]  | search TransactionStatus=FAIL  TransactionStatus=FAIL | append [search index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment"  TransactionStatus !=FAIL] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140873#M38970</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2020-09-29T06:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140874#M38971</link>
      <description>&lt;P&gt;Try ditching &lt;CODE&gt;join&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats values(*) AS * dc(TransactionStatus) AS numTS latest(TransactionStatus) AS FinalStatus BY CorrelationId | eval myStatus=case(numTS==1 AND FinalStatus!="Fail", "Alls Good", FinalStatus!="Fail", "Ends Good", 1==1, "Fail") | stats count by myStatus
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jul 2015 21:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140874#M38971</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-28T21:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140875#M38972</link>
      <description>&lt;P&gt;We have three statuses &lt;BR /&gt;
Success, Success_Voucher_Invalid and Failed.&lt;BR /&gt;
The query which you modified appears to be correct but it was adding Failed and Success Count&lt;/P&gt;

&lt;P&gt;I have changed the query to the following and this appears to bring the correct count with status.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats values(*) AS * dc(TransactionStatus) AS numTS latest(TransactionStatus) AS FinalStatus BY CorrelationId | eval myStatus=case(numTS==1 AND FinalStatus="FAIL", "FAILED", FinalStatus="SUCCESS_VOUCHER_INVALID", "SUCCESS_VOUCHER_INVALID", FinalStatus="SUCCESS", "SUCCESS", 1==1, "Fail") | stats count by myStatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would be great if you can explain how that ditching join was worked out... &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140875#M38972</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2020-09-29T06:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140876#M38973</link>
      <description>&lt;P&gt;Your original search was curiously over-complicated so I made some assumptions about why that was so but it seems thay maybe this much simpler search will do what you need:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats latest(TransactionStatus) AS FinalStatus BY CorrelationId | chart count BY FinalStatus
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jul 2015 22:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140876#M38973</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-28T22:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140877#M38974</link>
      <description>&lt;P&gt;When you use &lt;CODE&gt;join&lt;/CODE&gt; (and other &lt;CODE&gt;subsearch&lt;/CODE&gt;-based commands) Splunk usually (always?) loses the click/drilldown capability.  I assume because there is no (reliable) way to figure out where to insert the clicked clause because the search ia composed of more than one search.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 22:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140877#M38974</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-28T22:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140878#M38975</link>
      <description>&lt;P&gt;aaah, that query looks/sounds way to simple &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;
Well the logic was when the transaction for Insurance Device fails  it is reprocessed manually and the same policy with the same corelationid turns to success &lt;BR /&gt;
So we have two events with same policy and corelationid but 2 diff status. Hence we thought of joining data based on corelationid, filter the data out and list only the real/current failed status.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 23:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140878#M38975</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-07-28T23:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140879#M38976</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;a followup question based on the query which you suggested.&lt;BR /&gt;
We have a panel with the following query and it shows the Avg_Response_Time column just fine&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG"  PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment"   | chart avg(Latency) as Avg_Response_Time count over TransactionStatus
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I used the query which you suggested and try to add the column for Avg_Response_Time it shows a blank column, any suggestions about integrating/overlaying Avg_Response_Time.&lt;/P&gt;

&lt;P&gt;Your Query:&lt;BR /&gt;
index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats latest(TransactionStatus) AS FinalStatus BY CorrelationId | chart count BY FinalStatus&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140879#M38976</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2020-09-29T06:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140880#M38977</link>
      <description>&lt;P&gt;The only reason for &lt;CODE&gt;Avg_Response_Time&lt;/CODE&gt; to not be created is because field &lt;CODE&gt;Latency&lt;/CODE&gt; either does not exist (check spelling/capitalization) or it has non-numeric (NaN) values or the events where it does exist and have non-numeric values do not have a non-null &lt;CODE&gt;TransactionStatus&lt;/CODE&gt; field.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 19:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140880#M38977</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-03T19:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140881#M38978</link>
      <description>&lt;P&gt;It does exist and the spelling is correct. It gets results into some of the other panels.&lt;/P&gt;

&lt;P&gt;May be this is not the right way?&lt;/P&gt;

&lt;P&gt;index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats latest(TransactionStatus) AS FinalStatus BY CorrelationId   |stats avg(Latency) as Avg_Response_Time count by FinalStatus&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140881#M38978</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2020-09-29T06:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140882#M38979</link>
      <description>&lt;P&gt;I see the problem (I did not notice the stacked stats); try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="dpa" sourcetype="DP:PROD:SYSLOG" PROXYNAME="UBIAPI" URI="/vehicle/DeviceFullFillment" | stats latest(TransactionStatus) AS FinalStatus avg(Latency) as Avg_Response_Time BY CorrelationId
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Aug 2015 20:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140882#M38979</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-03T20:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140883#M38980</link>
      <description>&lt;P&gt;I had tried a similar variation but and it gives the same error :&lt;BR /&gt;
Error in 'stats' command. The argument 'stats' is invalid.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 20:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140883#M38980</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-08-03T20:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140884#M38981</link>
      <description>&lt;P&gt;Sorry, I had an extra word in there and have re-edited it.  Try it now.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 20:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140884#M38981</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-03T20:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Based on click</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140885#M38982</link>
      <description>&lt;P&gt;oh, Well I will stick to the original query for time being,&lt;/P&gt;

&lt;P&gt;The original query solves the problem by creating two columns "TransactionStatus "and  "count"&lt;/P&gt;

&lt;P&gt;and wanted to add another column to this existing panel.&lt;BR /&gt;
This one shows all transaction status instead of the count by correlation id.&lt;BR /&gt;
I cannot add pictures here to make more sense to what I am trying to say.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 21:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-Based-on-click/m-p/140885#M38982</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-08-03T21:08:30Z</dc:date>
    </item>
  </channel>
</rss>

