<?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 find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534060#M150933</link>
    <description>&lt;P&gt;I need to build a query to get count of transactions having multiple 'jId' and time difference greater than 5 mins.&amp;nbsp;&lt;BR /&gt;Want to find 'Applname' which is having&amp;nbsp; 'ASNumber'&amp;nbsp; with multiple 'jId's.&lt;/P&gt;&lt;P&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "\&amp;lt;ASNumber\&amp;gt;(?&amp;lt;ASNumber&amp;gt;[^\&amp;lt;]+)\&amp;lt;[^\&amp;lt;]"&lt;BR /&gt;|stats values(jId) as jId by ASNumber&lt;BR /&gt;|stats earliest(_time) as start latest(_time) as end by jId,sourcetype&lt;BR /&gt;|eval diff=end-start&lt;/P&gt;&lt;P&gt;the stats will be like as below:&lt;BR /&gt;Applname1&amp;nbsp; -&amp;nbsp; 3&lt;BR /&gt;Applname2&amp;nbsp; -&amp;nbsp; 2&lt;BR /&gt;Applname3&amp;nbsp; -&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Can anyone help me on this.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 16:01:56 GMT</pubDate>
    <dc:creator>rkishoreqa</dc:creator>
    <dc:date>2020-12-24T16:01:56Z</dc:date>
    <item>
      <title>How to find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534060#M150933</link>
      <description>&lt;P&gt;I need to build a query to get count of transactions having multiple 'jId' and time difference greater than 5 mins.&amp;nbsp;&lt;BR /&gt;Want to find 'Applname' which is having&amp;nbsp; 'ASNumber'&amp;nbsp; with multiple 'jId's.&lt;/P&gt;&lt;P&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "\&amp;lt;ASNumber\&amp;gt;(?&amp;lt;ASNumber&amp;gt;[^\&amp;lt;]+)\&amp;lt;[^\&amp;lt;]"&lt;BR /&gt;|stats values(jId) as jId by ASNumber&lt;BR /&gt;|stats earliest(_time) as start latest(_time) as end by jId,sourcetype&lt;BR /&gt;|eval diff=end-start&lt;/P&gt;&lt;P&gt;the stats will be like as below:&lt;BR /&gt;Applname1&amp;nbsp; -&amp;nbsp; 3&lt;BR /&gt;Applname2&amp;nbsp; -&amp;nbsp; 2&lt;BR /&gt;Applname3&amp;nbsp; -&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Can anyone help me on this.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 16:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534060#M150933</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2020-12-24T16:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534075#M150937</link>
      <description>&lt;P&gt;An important thing to remember about the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command is that it throws away all fields it doesn't use.&amp;nbsp; In this query, the first &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command discards everything except jId and ASNumber so there is no _time or sourcetype field for the second &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command to use.&amp;nbsp; Try this query as an alternative&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"
|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"
|rex field=_raw "\&amp;lt;ASNumber\&amp;gt;(?&amp;lt;ASNumber&amp;gt;[^\&amp;lt;]+)\&amp;lt;[^\&amp;lt;]"
|eventstats count(jId) as jIdcount by ASNumber
|where jIdcount &amp;gt; 1
|stats range(_time) as diff, first(ASNumber) as ASNumber by jId&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 20:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534075#M150937</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-24T20:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534259#M150979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;richgalloway,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get the count of 'ASNumber'&amp;nbsp; in a new column.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 17:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534259#M150979</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2020-12-28T17:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534261#M150980</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"
|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"
|rex field=_raw "\&amp;lt;ASNumber\&amp;gt;(?&amp;lt;ASNumber&amp;gt;[^\&amp;lt;]+)\&amp;lt;[^\&amp;lt;]"
|eventstats count(jId) as jIdcount by ASNumber
|where jIdcount &amp;gt; 1
|stats range(_time) as diff, first(ASNumber) as ASNumber, count(ASNumber) as count by jId&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Dec 2020 18:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534261#M150980</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-28T18:13:38Z</dc:date>
    </item>
    <item>
      <title>How to find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534379#M151001</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Based on your suggestion I prepared queries for two different apps as below.&amp;nbsp; Now I need to combine these two and get a single stats table.&lt;/P&gt;&lt;P&gt;Stats table like as :&amp;nbsp;&lt;/P&gt;&lt;P&gt;jId&amp;nbsp; Applname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;diff&amp;nbsp; &amp;nbsp;ASNumber - StNumber -&amp;nbsp; count&lt;/P&gt;&lt;P&gt;xy&amp;nbsp; &amp;nbsp; &amp;nbsp;app1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 983723&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;2&lt;BR /&gt;uw&amp;nbsp; &amp;nbsp; app2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;98&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; 377813&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&lt;U&gt;Query 1&lt;/U&gt;:&lt;BR /&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "\&amp;lt;ASNumber\&amp;gt;(?&amp;lt;ASNumber&amp;gt;[^\&amp;lt;]+)\&amp;lt;[^\&amp;lt;]"&lt;BR /&gt;|eventstats count(jId) as jIdcount by ASNumber&lt;BR /&gt;|where jIdcount &amp;gt; 1&lt;BR /&gt;|stats range(_time) as diff, first(ASNumber) as ASNumber, count(ASNumber) as count by jId,Applname&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;Query 2&lt;/U&gt;:&lt;BR /&gt;&lt;SPAN&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "StNumber\":\"(?P&amp;lt;StNumber&amp;gt;.[^\"\,\"]*)"&lt;BR /&gt;|eventstats count(jId) as jIdcount by StNumber&lt;BR /&gt;|where jIdcount &amp;gt; 1&lt;BR /&gt;|stats range(_time) as diff, first(StNumber) as StNumber,count(StNumber) as count by jId,Applname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 16:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534379#M151001</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2020-12-29T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to find count of transactions with unique id having more than 2 jobid's and ran more than 5 mins</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534478#M151041</link>
      <description>&lt;P&gt;I prepared the below query to fetch the values from multiple apps and apply stats on it.&amp;nbsp; &amp;nbsp;I just added 4 queries into one by using the 'append', but not simplified.&amp;nbsp; I did't understood how to apply 'append' on eventstats and stats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me on this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index="tibcodev"&lt;BR /&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "SNumber\":\"(?P&amp;lt;SNumber&amp;gt;.[^\"\,\"]*)"&lt;BR /&gt;|eventstats count(jId) as jIdcount by SNumber&lt;BR /&gt;|where jIdcount &amp;gt; 1&lt;BR /&gt;|stats range(_time) as diff, first(SNumber) as SNumber,count(SNumber) as count by jId,Applname&lt;BR /&gt;|append [search index="tibcodev"&lt;BR /&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "\&amp;lt;ASNumber\&amp;gt;(?&amp;lt;ASNumber&amp;gt;[^\&amp;lt;]+)\&amp;lt;[^\&amp;lt;]"&lt;BR /&gt;|eventstats count(jId) as jIdcount by ASNumber&lt;BR /&gt;|where jIdcount &amp;gt; 1&lt;BR /&gt;|stats range(_time) as diff, first(ASNumber) as ASNumber,count(ASNumber) as count by jId,Applname]&lt;BR /&gt;|append [search index="tibcodev"&lt;BR /&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "CNumber\":\"(?P&amp;lt;CNumber&amp;gt;.[^\"\,\"]*)"&lt;BR /&gt;|eventstats count(jId) as jIdcount by CNumber&lt;BR /&gt;|where jIdcount &amp;gt; 1&lt;BR /&gt;|stats range(_time) as diff, first(CNumber) as CNumber,count(CNumber) as count by jId,Applname]&lt;BR /&gt;|append [search index="tibcodev"&lt;BR /&gt;|rex field=_raw "ApplicationName:\s+\[(?P&amp;lt;Applname&amp;gt;.*)];"&lt;BR /&gt;|rex field=_raw "jobId: (?&amp;lt;jId&amp;gt;\w+);"&lt;BR /&gt;|rex field=_raw "PNumber\":\"(?P&amp;lt;PNumber&amp;gt;.[^\"\,\"]*)"&lt;BR /&gt;|eventstats count(jId) as jIdcount by PNumber&lt;BR /&gt;|where jIdcount &amp;gt; 1&lt;BR /&gt;|stats range(_time) as diff, first(PNumber) as PNumber, count(PNumber) as count by jId,Applname]&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 13:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-count-of-transactions-with-unique-id-having-more/m-p/534478#M151041</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2020-12-30T13:27:58Z</dc:date>
    </item>
  </channel>
</rss>

