<?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 Performance issue on dashboard : Base search query and data model acceleration assistance required in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Performance-issue-on-dashboard-Base-search-query-and-data-model/m-p/467828#M131693</link>
    <description>&lt;P&gt;Hello Experts&lt;/P&gt;

&lt;P&gt;Actually I am trying to show the usage trends across one application on different platforms (Online, Mobile &amp;amp; other platforms) as different trends as &lt;STRONG&gt;30 days, 7 days and 24 hrs trends&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here are the details:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There are 3 indexes 1a,2b and 3c with many source types. &lt;BR /&gt;
index=1a (ONLINE PLATFORM)&lt;BR /&gt;
In index=1a the field ( say "ClientId" which I required is directly there I am doing the lookup against the file. ( since in the index 1a, both userid and clientId fields are there I Can evaluate the Userid and then join the ClientId through the lookup.&lt;BR /&gt;
Source types are sourcetype="ONLINE_ACTIVITYLOG"&lt;/P&gt;

&lt;P&gt;index=2b (other platform)&lt;BR /&gt;
But in index=2b, I have to evaluate the field "Userid" from different source types and do input lookup and join the "ClientId" from the same input lookup.&lt;BR /&gt;
Source types are :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="PROD_APPLOG",HTTP_USER,  
sourcetype="PROD_APPLOG",UserID,  
sourcetype="PROD_APPLOG",userId,  
sourcetype="PROD_APPLOG",usrLogin,    
sourcetype="PROD_APPLOG",http_user,  
sourcetype="PROD_APPLOG",user_cookie,  
sourcetype="PROD_APPLOG",userID,

sourcetype="PROD1_APPLOG",Http_User,  
sourcetype="PROD1_APPLOG",prod_USER,

sourcetype="PROD_WEBLOG",HTTP_USER,  
sourcetype="PROD_WEBLOG",user_cookie,  
sourcetype="PROD_WEBLOG",userID, 

sourcetype=="F5_APPLOG",http_user,  
sourcetype=="F5_APPLOG",user_cookie,

index=3c (MOBILE PLATFORM)
Source types are:
sourcetype="MOBILE_WEBLOG",HTTP_USER,
sourcetype="MOBILE_APPLOG",user_cookie

Inputlookup Filename: UserId.csv
Inputlookup file format: 
Userid Clientid
User1 Client1
User2 Client2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As mentioned, When I tried to show the trend for 30 days,7 days &amp;amp; 24 hrs (across 12 panels in one dashboard) - the data is not at all loading and performance is very slow.&lt;BR /&gt;
When I verified with few of my Engineering colleagues, they said "&lt;STRONG&gt;I am searching the same query in multiple panels on the dashboard that causing slowness and asking me to CREATE a BASE SEARCH and use that to draw the trend as required&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;As I am fairly new to splunk, &lt;/P&gt;

&lt;HR /&gt;

&lt;UL&gt;
&lt;LI&gt;I am confused how to create a base
search for this issue since it is
across multiple indexes. &lt;/LI&gt;
&lt;LI&gt; Also is the
data model &amp;amp; search base query
concepts are same? &lt;/LI&gt;
&lt;LI&gt; And they are asking
me to accelerate the search once
created the base query&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;***.&lt;/P&gt;

&lt;P&gt;Could you please help me to create search base query for above issue.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;STRONG&gt;ACTUAL QUERY&lt;/STRONG&gt; which I am using across all the panels in the dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= "1a"  OR index="2b"  OR index="3c"

|  eval Platform = case(
index="1a", "Online",
index="2b", "Mobile",
index="3c", "OtherPlatforms")

|  eval Userid= case(  
sourcetype="PROD_APPLOG",HTTP_USER,  
sourcetype="PROD_APPLOG",UserID,  
sourcetype="PROD_APPLOG",userId,  
sourcetype="PROD_APPLOG",usrLogin,    
sourcetype="PROD_APPLOG",http_user,  
sourcetype="PROD_APPLOG",user_cookie,  
sourcetype="PROD_APPLOG",userID,

sourcetype="PROD1_APPLOG",Http_User,  
sourcetype="PROD1_APPLOG",prod_USER,

sourcetype="PROD_WEBLOG",HTTP_USER,  
sourcetype="PROD_WEBLOG",user_cookie,  
sourcetype="PROD_WEBLOG",userID, 

sourcetype=="F5_APPLOG",http_user,  
sourcetype=="F5_APPLOG",user_cookie,

sourcetype="ONLINE_ACTIVITYLOG" AND  ACTIVITY_CATEGORY=="{signin}",USR_LOGIN,

sourcetype="MOBILE_WEBLOG",HTTP_USER,
sourcetype="MOBILE_APPLOG",user_cookie)

| lookup Userid.csv Userid AS Userid output Clientid 

| stats dc(Clientid) as total_clients by date_hour,date_wday,Platform | chart avg(Clientid) over date_hour by Platform
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;only the "| stats dc(Clientid) as total_clients by date_hour,date_wday,Platform | chart avg(Clientid) over date_hour by Platform" -&amp;gt; this part is varying across all panels as I am showing as chart(avg) &amp;amp; dc etc., &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:43:46 GMT</pubDate>
    <dc:creator>gopiven</dc:creator>
    <dc:date>2020-09-30T02:43:46Z</dc:date>
    <item>
      <title>Performance issue on dashboard : Base search query and data model acceleration assistance required</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-issue-on-dashboard-Base-search-query-and-data-model/m-p/467828#M131693</link>
      <description>&lt;P&gt;Hello Experts&lt;/P&gt;

&lt;P&gt;Actually I am trying to show the usage trends across one application on different platforms (Online, Mobile &amp;amp; other platforms) as different trends as &lt;STRONG&gt;30 days, 7 days and 24 hrs trends&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Here are the details:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There are 3 indexes 1a,2b and 3c with many source types. &lt;BR /&gt;
index=1a (ONLINE PLATFORM)&lt;BR /&gt;
In index=1a the field ( say "ClientId" which I required is directly there I am doing the lookup against the file. ( since in the index 1a, both userid and clientId fields are there I Can evaluate the Userid and then join the ClientId through the lookup.&lt;BR /&gt;
Source types are sourcetype="ONLINE_ACTIVITYLOG"&lt;/P&gt;

&lt;P&gt;index=2b (other platform)&lt;BR /&gt;
But in index=2b, I have to evaluate the field "Userid" from different source types and do input lookup and join the "ClientId" from the same input lookup.&lt;BR /&gt;
Source types are :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="PROD_APPLOG",HTTP_USER,  
sourcetype="PROD_APPLOG",UserID,  
sourcetype="PROD_APPLOG",userId,  
sourcetype="PROD_APPLOG",usrLogin,    
sourcetype="PROD_APPLOG",http_user,  
sourcetype="PROD_APPLOG",user_cookie,  
sourcetype="PROD_APPLOG",userID,

sourcetype="PROD1_APPLOG",Http_User,  
sourcetype="PROD1_APPLOG",prod_USER,

sourcetype="PROD_WEBLOG",HTTP_USER,  
sourcetype="PROD_WEBLOG",user_cookie,  
sourcetype="PROD_WEBLOG",userID, 

sourcetype=="F5_APPLOG",http_user,  
sourcetype=="F5_APPLOG",user_cookie,

index=3c (MOBILE PLATFORM)
Source types are:
sourcetype="MOBILE_WEBLOG",HTTP_USER,
sourcetype="MOBILE_APPLOG",user_cookie

Inputlookup Filename: UserId.csv
Inputlookup file format: 
Userid Clientid
User1 Client1
User2 Client2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As mentioned, When I tried to show the trend for 30 days,7 days &amp;amp; 24 hrs (across 12 panels in one dashboard) - the data is not at all loading and performance is very slow.&lt;BR /&gt;
When I verified with few of my Engineering colleagues, they said "&lt;STRONG&gt;I am searching the same query in multiple panels on the dashboard that causing slowness and asking me to CREATE a BASE SEARCH and use that to draw the trend as required&lt;/STRONG&gt;"&lt;/P&gt;

&lt;P&gt;As I am fairly new to splunk, &lt;/P&gt;

&lt;HR /&gt;

&lt;UL&gt;
&lt;LI&gt;I am confused how to create a base
search for this issue since it is
across multiple indexes. &lt;/LI&gt;
&lt;LI&gt; Also is the
data model &amp;amp; search base query
concepts are same? &lt;/LI&gt;
&lt;LI&gt; And they are asking
me to accelerate the search once
created the base query&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;***.&lt;/P&gt;

&lt;P&gt;Could you please help me to create search base query for above issue.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;STRONG&gt;ACTUAL QUERY&lt;/STRONG&gt; which I am using across all the panels in the dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index= "1a"  OR index="2b"  OR index="3c"

|  eval Platform = case(
index="1a", "Online",
index="2b", "Mobile",
index="3c", "OtherPlatforms")

|  eval Userid= case(  
sourcetype="PROD_APPLOG",HTTP_USER,  
sourcetype="PROD_APPLOG",UserID,  
sourcetype="PROD_APPLOG",userId,  
sourcetype="PROD_APPLOG",usrLogin,    
sourcetype="PROD_APPLOG",http_user,  
sourcetype="PROD_APPLOG",user_cookie,  
sourcetype="PROD_APPLOG",userID,

sourcetype="PROD1_APPLOG",Http_User,  
sourcetype="PROD1_APPLOG",prod_USER,

sourcetype="PROD_WEBLOG",HTTP_USER,  
sourcetype="PROD_WEBLOG",user_cookie,  
sourcetype="PROD_WEBLOG",userID, 

sourcetype=="F5_APPLOG",http_user,  
sourcetype=="F5_APPLOG",user_cookie,

sourcetype="ONLINE_ACTIVITYLOG" AND  ACTIVITY_CATEGORY=="{signin}",USR_LOGIN,

sourcetype="MOBILE_WEBLOG",HTTP_USER,
sourcetype="MOBILE_APPLOG",user_cookie)

| lookup Userid.csv Userid AS Userid output Clientid 

| stats dc(Clientid) as total_clients by date_hour,date_wday,Platform | chart avg(Clientid) over date_hour by Platform
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;only the "| stats dc(Clientid) as total_clients by date_hour,date_wday,Platform | chart avg(Clientid) over date_hour by Platform" -&amp;gt; this part is varying across all panels as I am showing as chart(avg) &amp;amp; dc etc., &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-issue-on-dashboard-Base-search-query-and-data-model/m-p/467828#M131693</guid>
      <dc:creator>gopiven</dc:creator>
      <dc:date>2020-09-30T02:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue on dashboard : Base search query and data model acceleration assistance required</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Performance-issue-on-dashboard-Base-search-query-and-data-model/m-p/467829#M131694</link>
      <description>&lt;P&gt;Could someone help me on this please?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 01:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Performance-issue-on-dashboard-Base-search-query-and-data-model/m-p/467829#M131694</guid>
      <dc:creator>gopiven</dc:creator>
      <dc:date>2019-11-04T01:32:57Z</dc:date>
    </item>
  </channel>
</rss>

