<?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: Per-user initial values for a shared dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472196#M31001</link>
    <description>&lt;P&gt;Can the default value for a dashboard input be expressed like this -- as a result of a search?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 20:21:33 GMT</pubDate>
    <dc:creator>unitedmarsupial</dc:creator>
    <dc:date>2019-12-23T20:21:33Z</dc:date>
    <item>
      <title>Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472194#M30999</link>
      <description>&lt;P&gt;We've created some shared dashboards we like, but different people would prefer different initial values for some of the inputs (like time-range).&lt;/P&gt;

&lt;P&gt;Is it possible for the initial value to be different depending on the logged-in user's name?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 18:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472194#M30999</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2019-12-23T18:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472195#M31000</link>
      <description>&lt;P&gt;I suppose you could run a search to return the current logged on user something like this:&lt;BR /&gt;
index=_internal [ rest /services/authentication/current-context/context splunk_server=local| fields + username | rename username as user ]&lt;BR /&gt;
Then do a lookup for the user on a lookup table where you store all the variable settings for the dashboard and finally run the query to produce the data for the dashboard.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472195#M31000</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2020-09-30T03:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472196#M31001</link>
      <description>&lt;P&gt;Can the default value for a dashboard input be expressed like this -- as a result of a search?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472196#M31001</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2019-12-23T20:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472197#M31002</link>
      <description>&lt;P&gt;I guess it might not change the default value, technically, but it would run the search with the users desired values, as if it was a default. &lt;BR /&gt;
A better search for the current logged on user:&lt;BR /&gt;
| rest /services/authentication/current-context splunk_server=local&lt;BR /&gt;
username is the field you would use to perform the lookup...&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472197#M31002</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-12-23T20:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472198#M31003</link>
      <description>&lt;P&gt;Just a thought,  I would recommend creating and using the kv store to update and retain all settings by user  &lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472198#M31003</guid>
      <dc:creator>spammenot66</dc:creator>
      <dc:date>2019-12-23T20:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472199#M31004</link>
      <description>&lt;P&gt;@unitedmarsupials refer to one of my older answers on similar lines which finds out current logged in user and loads config for the same. I have used lookup in the example for Simplicity but ideally KV Store should be used: &lt;A href="https://answers.splunk.com/answers/682893/creating-an-about-this-dashboard-popup-modal-view.html"&gt;https://answers.splunk.com/answers/682893/creating-an-about-this-dashboard-popup-modal-view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 23:25:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472199#M31004</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-12-23T23:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Per-user initial values for a shared dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472200#M31005</link>
      <description>&lt;P&gt;Yes, have a &lt;CODE&gt;base search&lt;/CODE&gt; that nothing uses like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest/services/authentication/current-context splunk_server=local
| table username realname email
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then have a &lt;CODE&gt;done&lt;/CODE&gt; section like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="$result.username$==&amp;amp;quot;some_username_here&amp;amp;quot;"&amp;gt;
    &amp;lt;set token="init_token_here"&amp;gt;value for some user&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition match="$result.username$==&amp;amp;quot;other_username_here&amp;amp;quot;"&amp;gt;
    &amp;lt;set token="init_token_here"&amp;gt;value for other user&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition&amp;gt;
    &amp;lt;set token="init_token_here"&amp;gt;default value here&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Jan 2020 20:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Per-user-initial-values-for-a-shared-dashboard/m-p/472200#M31005</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-01-02T20:20:31Z</dc:date>
    </item>
  </channel>
</rss>

