<?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: active users by region query in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729192#M6564</link>
    <description>&lt;P&gt;Hi Amr&lt;/P&gt;

&lt;P&gt;Within AppD inside the Mobile App records it used the "closed" field inside the mobile_session_records to determine if a session is active or not&lt;/P&gt;

&lt;P&gt;To view the data in a graphical over time format you can use the below, can adjust the series time depending on the timeframe.&lt;/P&gt;
&lt;P&gt;SELECT series(eventTimestamp, "120m"), georegion, count(*) AS "Active Sessions" FROM mobile_session_records WHERE closed = false&lt;/P&gt;

&lt;P&gt;To view it as a single count in table format&lt;/P&gt;
&lt;P&gt;SELECT georegion, count(*) AS "Active Sessions" FROM mobile_session_records WHERE closed = false&lt;/P&gt;

&lt;P&gt;As it uses the field "closed" to check if a session is open or not, you will only ever see the current open sessions, and it won't show you a historical view of open sessions as you see in the Session Tab&lt;/P&gt;

&lt;P&gt;If you want that type of view, you will need to create metrics that will store the "Active Sessions" data for you to show in the dashboard&lt;/P&gt;

&lt;P&gt;Ciao&lt;/P&gt;</description>
    <pubDate>Sun, 18 Apr 2021 12:22:32 GMT</pubDate>
    <dc:creator>Morelz</dc:creator>
    <dc:date>2021-04-18T12:22:32Z</dc:date>
    <item>
      <title>active users by region query</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729191#M6563</link>
      <description>&lt;P&gt;hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get active users count per region for my mobile application , I used the following query :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select georegion,distinctcount(cguid) from mobile_snapshots&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;where (geocountry='xxx' and mobileappversion='xxxx' and appkey='xxxxx')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it returned non-logic numbers , the returned number is not the same as the active users per region widget in the sessions tab&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I need to know the query of the active users per region widget in the session tab , in order to use it in dashboards so is the&amp;nbsp;query that&amp;nbsp;I used is wrong or&amp;nbsp;I missed something &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 18 Apr 2021 11:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729191#M6563</guid>
      <dc:creator>Amr_Elsayed</dc:creator>
      <dc:date>2021-04-18T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: active users by region query</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729192#M6564</link>
      <description>&lt;P&gt;Hi Amr&lt;/P&gt;

&lt;P&gt;Within AppD inside the Mobile App records it used the "closed" field inside the mobile_session_records to determine if a session is active or not&lt;/P&gt;

&lt;P&gt;To view the data in a graphical over time format you can use the below, can adjust the series time depending on the timeframe.&lt;/P&gt;
&lt;P&gt;SELECT series(eventTimestamp, "120m"), georegion, count(*) AS "Active Sessions" FROM mobile_session_records WHERE closed = false&lt;/P&gt;

&lt;P&gt;To view it as a single count in table format&lt;/P&gt;
&lt;P&gt;SELECT georegion, count(*) AS "Active Sessions" FROM mobile_session_records WHERE closed = false&lt;/P&gt;

&lt;P&gt;As it uses the field "closed" to check if a session is open or not, you will only ever see the current open sessions, and it won't show you a historical view of open sessions as you see in the Session Tab&lt;/P&gt;

&lt;P&gt;If you want that type of view, you will need to create metrics that will store the "Active Sessions" data for you to show in the dashboard&lt;/P&gt;

&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 12:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729192#M6564</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2021-04-18T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: active users by region query</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729193#M6565</link>
      <description>&lt;P&gt;hello Mario ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response , I really appreciate it&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it is not the case , I don't want to get the count of active sessions . I want to get the unique count of application users not sessions .&lt;/P&gt;&lt;P&gt;I need to know how many users install and uses the application.&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;I have 100 k &amp;nbsp;sessions but I'm sure that users of my app are less than that as it only published for potential 20 k users , so I need to know how many users out of these 20 k uses the app&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is provided in session tab in active users widget&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 14:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729193#M6565</guid>
      <dc:creator>Amr_Elsayed</dc:creator>
      <dc:date>2021-04-18T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: active users by region query</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729194#M6566</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;you can use the below query to get the active unique users&lt;/P&gt;&lt;P&gt;SELECT distinctcount(agentID) FROM mobile_session_records&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Mudassir Mir&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 12:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/active-users-by-region-query/m-p/729194#M6566</guid>
      <dc:creator>Mudassir_mir2</dc:creator>
      <dc:date>2022-10-05T12:27:20Z</dc:date>
    </item>
  </channel>
</rss>

