<?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: Returning the count of unique brower applications being monitored on the controller in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718277#M897</link>
    <description>&lt;P&gt;Hi Jesse&lt;/P&gt;

&lt;P&gt;As you noticed when you use the following query as a metric&lt;/P&gt;
&lt;P&gt;SELECT distinctcount(appkey) FROM browser_records&lt;/P&gt;

&lt;P&gt;It will give you a count of the number of apps that have received data in the last 5 minutes only, if there is no data in the last 5 minutes for any of the applications, it will not show and count those.&lt;/P&gt;

&lt;P&gt;If any of the apps don't have any data it wont give you anything&lt;/P&gt;

&lt;P&gt;What you can do to bypass this is to add a condition e.g where I put a condition that it counts all data that's less than the year 2040, or you can build a condition to just check what data timestamps is less than now()&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SELECT distinctcount(appkey) FROM browser_records WHERE eventTimestamp &amp;lt; 2232636067000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This forces the query to check all data in the analytics cluster, not just the last 5 minutes&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;However, depending on how long you store your analytical data, e.g if you only store data for 2 weeks, and one of the applications does not have any reported data in analytics, that app will not be counted as there is no data for it.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;Hope I am making sense&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 16:50:44 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2020-09-30T16:50:44Z</dc:date>
    <item>
      <title>Returning the count of unique browser applications being monitored on the controller</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718276#M896</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to create a metric that returns the amount of browser applications being monitored on the controller.&lt;BR /&gt;&lt;BR /&gt;I have tried to do this using a distinct count of the app key, although my query is returning 1 instead of the amount of browser apps.&lt;BR /&gt;&lt;BR /&gt;Here are the queries I have tried:&lt;BR /&gt;SELECT distinctcount(appkey) FROM browser_records&lt;BR /&gt;SELECT distinctcount(appkey) FROM web_session_records&lt;BR /&gt;&lt;BR /&gt;If anyone knows of a way or can point me in the right direction, I would greatly appreciate it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jesse&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718276#M896</guid>
      <dc:creator>Jesse_Charlton</dc:creator>
      <dc:date>2020-09-30T05:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Returning the count of unique brower applications being monitored on the controller</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718277#M897</link>
      <description>&lt;P&gt;Hi Jesse&lt;/P&gt;

&lt;P&gt;As you noticed when you use the following query as a metric&lt;/P&gt;
&lt;P&gt;SELECT distinctcount(appkey) FROM browser_records&lt;/P&gt;

&lt;P&gt;It will give you a count of the number of apps that have received data in the last 5 minutes only, if there is no data in the last 5 minutes for any of the applications, it will not show and count those.&lt;/P&gt;

&lt;P&gt;If any of the apps don't have any data it wont give you anything&lt;/P&gt;

&lt;P&gt;What you can do to bypass this is to add a condition e.g where I put a condition that it counts all data that's less than the year 2040, or you can build a condition to just check what data timestamps is less than now()&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SELECT distinctcount(appkey) FROM browser_records WHERE eventTimestamp &amp;lt; 2232636067000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This forces the query to check all data in the analytics cluster, not just the last 5 minutes&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;However, depending on how long you store your analytical data, e.g if you only store data for 2 weeks, and one of the applications does not have any reported data in analytics, that app will not be counted as there is no data for it.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;Hope I am making sense&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718277#M897</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2020-09-30T16:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Returning the count of unique brower applications being monitored on the controller</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718278#M898</link>
      <description>&lt;P&gt;Hi Mario&lt;BR /&gt;&lt;BR /&gt;You are making sense and have been very helpful. I like the method you've shown of using the timestamp condtion to check all the data.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help,&lt;BR /&gt;Jesse&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 00:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Returning-the-count-of-unique-browser-applications-being/m-p/718278#M898</guid>
      <dc:creator>Jesse_Charlton</dc:creator>
      <dc:date>2020-10-01T00:34:58Z</dc:date>
    </item>
  </channel>
</rss>

