<?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: Issue w/ 'timechart' and 'transactions' in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Issue-w-timechart-and-transactions/m-p/104765#M27159</link>
    <description>&lt;P&gt;try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats min(closed_txn) as alwaysfailed by USERID
    | timechart count
                count(eval(closed_txn=0)) as failed
                dc(USERID) as totalusers_count
                dc(eval(alwaysfailed=0)) as usersalwaysfailed_count
    | eval failedloading_pct = failed/count
    | eval failedusers_pct = usersalwaysfailed/totalusers
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Nov 2011 00:14:16 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-11-07T00:14:16Z</dc:date>
    <item>
      <title>Issue w/ 'timechart' and 'transactions'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-w-timechart-and-transactions/m-p/104764#M27158</link>
      <description>&lt;P&gt;I've set up a transaction to determine successful login using the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;index=main sourcetype=TELEM | transaction SESSIONID startswith="LOGIN" endswith="LOADCOMPLETE" keepevicted=true | search TELEMTAG="LOGIN"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;..that seem to accurately give me all logins that succeed or fail, and I've been able to extract the login failure rate using the following:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_| timechart span=1h eval(count(eval(closed_txn=0)) / count * 100) as "Failed Loading %"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Here is where I am hitting my snag:&lt;/P&gt;

&lt;P&gt;In addition to the failure rate, I'd also like to be able to determine the percentage of &lt;STRONG&gt;users that were unable to login&lt;/STRONG&gt;. Which is to say:&lt;/P&gt;

&lt;P&gt;Get the number of users (&lt;STRONG&gt;USERID&lt;/STRONG&gt;) who have transactions that only ever fail (closed_tnx 1 and only 1). I've been able to get the desired result using a series of piped stats functions, but I'd ideally like to combine the two numbers on the same report.&lt;/P&gt;

&lt;P&gt;I appreciate that both results are using different keys to count by, but I am hoping there may be a way to combine the results w/o having to do the search twice (it is a fairly lengthy search).&lt;/P&gt;

&lt;P&gt;Any pointers?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-w-timechart-and-transactions/m-p/104764#M27158</guid>
      <dc:creator>rowshambow</dc:creator>
      <dc:date>2020-09-28T10:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue w/ 'timechart' and 'transactions'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-w-timechart-and-transactions/m-p/104765#M27159</link>
      <description>&lt;P&gt;try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats min(closed_txn) as alwaysfailed by USERID
    | timechart count
                count(eval(closed_txn=0)) as failed
                dc(USERID) as totalusers_count
                dc(eval(alwaysfailed=0)) as usersalwaysfailed_count
    | eval failedloading_pct = failed/count
    | eval failedusers_pct = usersalwaysfailed/totalusers
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Nov 2011 00:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-w-timechart-and-transactions/m-p/104765#M27159</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-11-07T00:14:16Z</dc:date>
    </item>
  </channel>
</rss>

