<?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 How to add the results of a chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117312#M31238</link>
    <description>&lt;P&gt;source=XXXXX | lookup customer_journey.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction "Serial Number" | stats latest("Availability ") as "Success Rate (%)" latest(HTTP_br__Errors) as "Number of Failed" latest("Page Time _sec") as "Response Time (Secs)" latest("Total Hits") as "Count"  by Transaction, "Serial Number" |eval(Transaction="| convert num("Total Hits") num("Number of Failed")| sort "Serial Number" | table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count"&lt;/P&gt;

&lt;P&gt;Result &lt;BR /&gt;
Transaction↕             Success Rate (%)↕           Response Time (Secs)↕              Count↕ &lt;BR /&gt;
 Login Start                 99.22                         1.31&lt;BR /&gt;
 Login Result  Success           100                         2.19&lt;BR /&gt;
 Login Result wrong username | pwd  99.97                      0.8&lt;/P&gt;

&lt;P&gt;i want to add the results of the chart . can anyone pls help&lt;/P&gt;

&lt;P&gt;Login transaction should include sum of "login start" and "Login Result  Success" Response Times, i.e. 1.31 + 2.19 = 3.5&lt;BR /&gt;
Login Wrong User Name/Pwd transaction should include sum of "login start" and "Login Wrong User Name/Pwd" Response Times, i.e. 1.31  + 0.8= 2.1&lt;/P&gt;

&lt;P&gt;can anyone pls help on me to get the results &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:31:54 GMT</pubDate>
    <dc:creator>realajay89</dc:creator>
    <dc:date>2020-09-28T17:31:54Z</dc:date>
    <item>
      <title>How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117312#M31238</link>
      <description>&lt;P&gt;source=XXXXX | lookup customer_journey.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction "Serial Number" | stats latest("Availability ") as "Success Rate (%)" latest(HTTP_br__Errors) as "Number of Failed" latest("Page Time _sec") as "Response Time (Secs)" latest("Total Hits") as "Count"  by Transaction, "Serial Number" |eval(Transaction="| convert num("Total Hits") num("Number of Failed")| sort "Serial Number" | table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count"&lt;/P&gt;

&lt;P&gt;Result &lt;BR /&gt;
Transaction↕             Success Rate (%)↕           Response Time (Secs)↕              Count↕ &lt;BR /&gt;
 Login Start                 99.22                         1.31&lt;BR /&gt;
 Login Result  Success           100                         2.19&lt;BR /&gt;
 Login Result wrong username | pwd  99.97                      0.8&lt;/P&gt;

&lt;P&gt;i want to add the results of the chart . can anyone pls help&lt;/P&gt;

&lt;P&gt;Login transaction should include sum of "login start" and "Login Result  Success" Response Times, i.e. 1.31 + 2.19 = 3.5&lt;BR /&gt;
Login Wrong User Name/Pwd transaction should include sum of "login start" and "Login Wrong User Name/Pwd" Response Times, i.e. 1.31  + 0.8= 2.1&lt;/P&gt;

&lt;P&gt;can anyone pls help on me to get the results &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117312#M31238</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2020-09-28T17:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117313#M31239</link>
      <description>&lt;P&gt;The main issue here is that the values you want to sum are stored in one column in individual lines, and not in multiple columns side by side within one line.&lt;/P&gt;

&lt;P&gt;However, you can try to calculate the sum of the values in lines "Login Start" and "Login Result Success" using the following approach:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| your search | table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count" 
| rename "Response Time (Secs)" AS SUM
| stats sum(eval(if(Transaction="Login Start" OR Transaction="Login Result  Success",SUM,null()))) as MyResult
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that I have rename the column with response time only the avoid filed names including spaces, since it might cause issue for calculations.&lt;/P&gt;

&lt;P&gt;Once you have that, you can do the same for the other pair of values.&lt;/P&gt;

&lt;P&gt;Putting both searches then into sub-searches with &lt;CODE&gt;| append [subsearch]&lt;/CODE&gt; will append those results to the existing table.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 16:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117313#M31239</guid>
      <dc:creator>norbert_hamel</dc:creator>
      <dc:date>2014-09-10T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117314#M31240</link>
      <description>&lt;P&gt;Thanks for help but im not sure how to use the result MyResult in to the main search . can u pls guide me through it . at the end of subsearch "---SUM,null()))) as myresult1] . how it can modified to link to the main search ??&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 12:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117314#M31240</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2014-09-11T12:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117315#M31241</link>
      <description>&lt;P&gt;subsearch 1 &lt;BR /&gt;
apped[search source="HP_RUM_Metonline_July.csv" | lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction  | stats latest("Page Time _sec") as "Response Time (Secs)" by Transaction  | rename "Response Time (Secs)" AS SUM&lt;BR /&gt;
| stats sum(eval(if(Transaction="Login Start" OR Transaction="Login Result  Success",SUM,null()))) as myresult1]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117315#M31241</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2020-09-28T17:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117316#M31242</link>
      <description>&lt;P&gt;Could you perhaps post the original search you are running? I am not sure if the snippet in the first post is exactly the search you are working on. Then I will try to complete this...&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 12:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117316#M31242</guid>
      <dc:creator>norbert_hamel</dc:creator>
      <dc:date>2014-09-11T12:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117317#M31243</link>
      <description>&lt;P&gt;Basic search &lt;/P&gt;

&lt;P&gt;source="HP_RUM_Metonline_July.csv" | lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction "Serial Number" | stats latest("Availability ") as "Success Rate (%)" latest(HTTP_br__Errors) as "Number of Failed" latest("Page Time _sec") as "Response Time (Secs)" latest("Total Hits") as "Count"  by Transaction, "Serial Number" | sort "Serial Number"| convert num("Total Hits") num("Number of Failed") | table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117317#M31243</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2020-09-28T17:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117318#M31244</link>
      <description>&lt;P&gt;subsearch 1 &lt;BR /&gt;
search source="HP_RUM_Metonline_July.csv" | lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction  | stats latest("Page Time _sec") as "Response Time (Secs)" by Transaction  | rename "Response Time (Secs)" AS SUM&lt;BR /&gt;
| stats sum(eval(if(Transaction="Login Start" OR Transaction="Login Result  Success",SUM,null()))) as myresult1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117318#M31244</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2020-09-28T17:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117319#M31245</link>
      <description>&lt;P&gt;subsearch 2 &lt;/P&gt;

&lt;P&gt;source="HP_RUM_Metonline_July.csv" | lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction  | stats latest("Page Time _sec") as "Response Time (Secs)"  by Transaction| rename "Response Time (Secs)" AS SUM&lt;BR /&gt;
| stats sum(eval(if(Transaction="Login Start" OR Transaction="Login Result wrong username | pwd",SUM,null()))) as myresult2&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117319#M31245</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2020-09-28T17:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117320#M31246</link>
      <description>&lt;P&gt;im not able to return the results from sub searches(myresult 1 and my result2 ) to the main Basic search&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 13:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117320#M31246</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2014-09-11T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117321#M31247</link>
      <description>&lt;P&gt;The abstract structure of the search is the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;my basic search&amp;gt;

| append 
[ search &amp;lt;my basic search&amp;gt;
| rename column header to "SUM" in order to avoid spaces
| stats sum(eval(if(&amp;lt;condition 1&amp;gt;,SUM,null()))) as SUM
| eval Transaction="Sum for condition 1" ]

| append 
[ search &amp;lt;my basic search&amp;gt;
| rename column header to "SUM" in order to avoid spaces
| stats sum(eval(if(&amp;lt;condition 2&amp;gt;,SUM,null()))) as SUM
| eval Transaction="Sum for condition 2" ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Means you have one basic search, then you append exactly the same search with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| append [ search &amp;lt;my basic search&amp;gt; ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you need to extend the appended searches to do 3 things:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;rename the field / column header of the required values so that is does not contain spaces, in this example "SUM".&lt;/LI&gt;
&lt;LI&gt;perform the conditional summary using the SUM field. This result has to share the same name, means SUM in this example.&lt;/LI&gt;
&lt;LI&gt;create a new field transaction for this result so that you can see in the table what this value is telling you.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The complete search could then read like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="HP_RUM_Metonline_July.csv" 
| lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction "Serial Number" 
| stats latest("Availability ") as "Success Rate (%)" latest(HTTP_br__Errors) as "Number of Failed" latest("Page Time _sec") as "Response Time (Secs)" latest("Total Hits") as "Count"  by Transaction, "Serial Number" 
| sort "Serial Number"
| convert num("Total Hits") num("Number of Failed") 
| table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count"

| append [ search source="HP_RUM_Metonline_July.csv" 
| lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction "Serial Number" 
| stats latest("Availability ") as "Success Rate (%)" latest(HTTP_br__Errors) as "Number of Failed" latest("Page Time _sec") as "Response Time (Secs)" latest("Total Hits") as "Count"  by Transaction, "Serial Number" 
| sort "Serial Number"
| convert num("Total Hits") num("Number of Failed") 
| table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count"
| rename "Response Time (Secs)" AS SUM
| stats sum(eval(if(Transaction="Login Start" OR Transaction="Login Result  Success",SUM,null()))) as SUM 
| eval Transaction="Sum of Login Start and Login Result  Success" ]

| append [ search source="HP_RUM_Metonline_July.csv" 
| lookup customer_journey_metonline_ResponseTime.csv "Page Name" as "Page Name" output "Customer Journey Name" as Transaction "Serial Number" 
| stats latest("Availability ") as "Success Rate (%)" latest(HTTP_br__Errors) as "Number of Failed" latest("Page Time _sec") as "Response Time (Secs)" latest("Total Hits") as "Count"  by Transaction, "Serial Number" 
| sort "Serial Number"
| convert num("Total Hits") num("Number of Failed") 
| table "Transaction" "Success Rate (%)" "Response Time (Secs)" "Count"
| rename "Response Time (Secs)" AS SUM
| stats sum(eval(if(Transaction="Login Start" OR Transaction="Login Result wrong username | pwd",SUM,null()))) as SUM 
| eval Transaction="Sum of Login Start and Login Result  Success" ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Maybe you can later on strip out some parts of the appended search, but just for the matter of completeness I have kept it here.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2014 15:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117321#M31247</guid>
      <dc:creator>norbert_hamel</dc:creator>
      <dc:date>2014-09-11T15:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117322#M31248</link>
      <description>&lt;P&gt;Thanks norbert . really appreciate it .. just a final modification. the results coming in a new column named SUM  instead of in response time column and in a  new row instead of replacing the existing columns . Let me help in making this happen.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 10:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117322#M31248</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2014-09-12T10:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117323#M31249</link>
      <description>&lt;P&gt;Transaction        Success Rate (%)   Response Time (Secs)     Count    SUM&lt;BR /&gt;
Login Start  99.92       1.21      1,613,652&lt;BR /&gt;&lt;BR /&gt;
Login Result  Success   100 1.53    1,296,572&lt;BR /&gt;&lt;BR /&gt;
Login Result wrong username | pwd   100 0.76    206,189 &lt;BR /&gt;
View/ Update Account Profile    99.37   0.7 1,371,481&lt;BR /&gt;&lt;BR /&gt;
View Policy/ Holdings   100 3.14    556,889 &lt;BR /&gt;
Register For Online Access  100 6.67    883 &lt;BR /&gt;
View Product Detail 100 1.22    34,818&lt;BR /&gt;&lt;BR /&gt;
Sum of Login Start and Login Result  Success                    2.74&lt;BR /&gt;
Sum of Login Start and Login Result  Success                     1.97&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 10:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117323#M31249</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2014-09-12T10:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117324#M31250</link>
      <description>&lt;P&gt;the above is my output . ideally according to the query u gave me Login start and Login Result success has to be replaced with new ones . but this is not happening . instead a new colums names SUM is being included in the chat . can you help pls&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117324#M31250</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2014-09-12T12:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add the results of a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117325#M31251</link>
      <description>&lt;P&gt;Transaction↕ Success Rate (%)↕ Response Time (Secs)↕ Count↕&lt;/P&gt;

&lt;P&gt;Login Start 99.22               1.31&lt;/P&gt;

&lt;P&gt;Login Result Success 100                   3.5&lt;/P&gt;

&lt;P&gt;Login Result wrong username/pwd 99.97     2.1&lt;/P&gt;

&lt;P&gt;i wish the output is in this form&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:13:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-the-results-of-a-chart/m-p/117325#M31251</guid>
      <dc:creator>realajay89</dc:creator>
      <dc:date>2014-09-12T13:13:54Z</dc:date>
    </item>
  </channel>
</rss>

