Dashboards & Visualizations

Refreshing the dashboard using the browser refresh button, breaks it. Have used selectFirstChoice and unset token, so there might be something there.

moizmmz
Path Finder

Hi,

I have a dashboard that uses values from a manually uploaded data source file to dynamically display data in Splunk through a dashboard.

Here's a copy of my code:

<form>
      <label>Matches</label>
      <description>Dashboard instruction: Say you're on Match A and you want updated stats. Use the input selection to switch to Match B and then switch back to Match A. You will get the updated stats. With this, if you then want to view another match's stats, they'll also show perfectly. Basically, DO NOT use the browser refresh button.</description>
      <fieldset submitButton="false" autoRun="false">
        <input type="dropdown" token="match">
          <label>Select Match</label>
          <fieldForLabel>match</fieldForLabel>
          <fieldForValue>match</fieldForValue>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" |dedup match</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
          <default>Match A</default>
          <initialValue>Match A</initialValue>
        </input>
        <input depends="$hidden$" type="dropdown" token="st1" searchWhenChanged="true">
          <label>Match Start Time</label>
          <fieldForLabel>match_start_time</fieldForLabel>
          <fieldForValue>match_start_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"|dedup match_start_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="et1" searchWhenChanged="true">
          <label>Match End Time</label>
          <fieldForLabel>match_end_time</fieldForLabel>
          <fieldForValue>match_end_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" |dedup match_end_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="st2">
          <label>Match360_start_time</label>
          <fieldForLabel>match360_start_time</fieldForLabel>
          <fieldForValue>match360_start_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | dedup match360_start_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="et2">
          <label>Match360_end_time</label>
          <fieldForLabel>match360_end_time</fieldForLabel>
          <fieldForValue>match360_end_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | dedup match360_end_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="st3">
          <label>Matchtac_start_time</label>
          <fieldForLabel>matchtac_start_time</fieldForLabel>
          <fieldForValue>matchtac_start_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | dedup  matchtac_start_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="et3">
          <label>Matchtac_end_time</label>
          <fieldForLabel>matchtac_end_time</fieldForLabel>
          <fieldForValue>matchtac_end_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | dedup  matchtac_end_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="st4">
          <label>Matchtuhd_start_time</label>
          <fieldForLabel>matchuhd_start_time</fieldForLabel>
          <fieldForValue>matchuhd_start_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | dedup matchuhd_start_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="et4">
          <label>Matchtuhd_end_time</label>
          <fieldForLabel>matchuhd_end_time</fieldForLabel>
          <fieldForValue>matchuhd_end_time</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | dedup matchuhd_end_time</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="mf1" searchWhenChanged="true">
          <label>Match Feeds</label>
          <fieldForLabel>match_feeds</fieldForLabel>
          <fieldForValue>match_feeds</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"| dedup match_feeds</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="mf2" searchWhenChanged="true">
          <label>Match 360 Feeds</label>
          <fieldForLabel>match360_feeds</fieldForLabel>
          <fieldForValue>match360_feeds</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"| dedup match360_feeds</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="mf3" searchWhenChanged="true">
          <label>Match Tactical Feeds</label>
          <fieldForLabel>matchtac_feeds</fieldForLabel>
          <fieldForValue>matchtac_feeds</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"| dedup matchtac_feeds</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="mf4" searchWhenChanged="true">
          <label>Match UHD Feeds</label>
          <fieldForLabel>matchuhd_feeds</fieldForLabel>
          <fieldForValue>matchuhd_feeds</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"| dedup matchuhd_feeds</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="mf7" searchWhenChanged="true">
          <label>Total Feeds</label>
          <fieldForLabel>total_feeds</fieldForLabel>
          <fieldForValue>total_feeds</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"| dedup total_feeds</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
        <input depends="$hidden$" type="dropdown" token="mf8" searchWhenChanged="true">
          <label>Bonus Feeds</label>
          <fieldForLabel>bonus_feeds</fieldForLabel>
          <fieldForValue>bonus_feeds</fieldForValue>
          <selectFirstChoice>true</selectFirstChoice>
          <search>
            <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$"| dedup bonus_feeds</query>
            <earliest>0</earliest>
            <latest></latest>
          </search>
        </input>
      </fieldset>
      <row>
        <panel>
          <title>Match Date</title>
          <single>
            <search>
              <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | stats values(Date)</query>
              <earliest>0</earliest>
              <latest></latest>
            </search>
            <option name="drilldown">none</option>
            <option name="height">56</option>
          </single>
        </panel>
        <panel>
          <title>Teams Playing</title>
          <single>
            <search>
              <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | stats values(Teams_playing)</query>
              <earliest>0</earliest>
              <latest></latest>
            </search>
            <option name="drilldown">none</option>
            <option name="height">58</option>
          </single>
        </panel>
        <panel>
          <title>Match Start Time</title>
          <single>
            <search>
              <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | stats values(Time)</query>
              <earliest>0</earliest>
              <latest></latest>
            </search>
            <option name="drilldown">none</option>
            <option name="height">54</option>
          </single>
        </panel>
        <panel>
          <title>Group</title>
          <single>
            <search>
              <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | stats values(Group)</query>
              <earliest>0</earliest>
              <latest></latest>
            </search>
            <option name="drilldown">none</option>
            <option name="height">55</option>
          </single>
        </panel>
        <panel>
          <title>Network</title>
          <single>
            <search>
              <query>index="video-eng-live-wwc" source="wwc-moi.csv" sourcetype="csv" match="$match$" | stats values(Account_Group)</query>
              <earliest>0</earliest>
              <latest></latest>
            </search>
            <option name="drilldown">none</option>
            <option name="height">53</option>
          </single>
        </panel>
      </row>
      <row>
        <panel>
          <title>Peak Concurrent Streams across ALL feeds</title>
          <single>
            <title>Only during match time</title>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account, message.title as Channel | search Channel=$mf7$ | chart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" over _time by Channel limit=60 | addtotals | sort -Total limit=1| fields Total</query>
              <earliest>$st1$</earliest>
              <latest>$et1$</latest>
            </search>
            <option name="drilldown">none</option>
          </single>
        </panel>
      </row>
      <row>
        <panel>
          <title>Peak Concurrent Streams across Match feeds</title>
          <single>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account, message.title as Channel | search Channel=$mf1$ | chart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" over _time by Channel limit=60 | addtotals | sort -Total limit=1| fields Total</query>
              <earliest>$st1$</earliest>
              <latest>$et1$</latest>
              <sampleRatio>1</sampleRatio>
            </search>
            <option name="colorBy">value</option>
            <option name="colorMode">none</option>
            <option name="drilldown">none</option>
            <option name="height">75</option>
            <option name="numberPrecision">0</option>
            <option name="rangeColors">["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]</option>
            <option name="rangeValues">[0,30,70,100]</option>
            <option name="showSparkline">1</option>
            <option name="showTrendIndicator">1</option>
            <option name="trellis.enabled">0</option>
            <option name="trellis.scales.shared">1</option>
            <option name="trellis.size">medium</option>
            <option name="trendColorInterpretation">standard</option>
            <option name="trendDisplayMode">absolute</option>
            <option name="unitPosition">after</option>
            <option name="useColors">0</option>
            <option name="useThousandSeparators">1</option>
          </single>
        </panel>
        <panel>
          <title>Peak Concurrent Streams across Match 360 feeds</title>
          <single>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account, message.title as Channel | search Channel=$mf2$ | chart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" over _time by Channel limit=60 | addtotals | sort -Total limit=1| fields Total</query>
              <earliest>$st2$</earliest>
              <latest>$et2$</latest>
              <sampleRatio>1</sampleRatio>
            </search>
            <option name="colorBy">value</option>
            <option name="colorMode">none</option>
            <option name="drilldown">none</option>
            <option name="height">75</option>
            <option name="numberPrecision">0</option>
            <option name="rangeColors">["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]</option>
            <option name="rangeValues">[0,30,70,100]</option>
            <option name="showSparkline">1</option>
            <option name="showTrendIndicator">1</option>
            <option name="trellis.enabled">0</option>
            <option name="trellis.scales.shared">1</option>
            <option name="trellis.size">medium</option>
            <option name="trendColorInterpretation">standard</option>
            <option name="trendDisplayMode">absolute</option>
            <option name="unitPosition">after</option>
            <option name="useColors">0</option>
            <option name="useThousandSeparators">1</option>
          </single>
        </panel>
        <panel>
          <title>Peak Concurrent Streams across Tactical feeds</title>
          <single>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account, message.title as Channel | search Channel=$mf3$ | chart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" over _time by Channel limit=60 | addtotals | sort -Total limit=1| fields Total</query>
              <earliest>$st3$</earliest>
              <latest>$et3$</latest>
              <sampleRatio>1</sampleRatio>
            </search>
            <option name="colorBy">value</option>
            <option name="colorMode">none</option>
            <option name="drilldown">none</option>
            <option name="height">76</option>
            <option name="numberPrecision">0</option>
            <option name="rangeColors">["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]</option>
            <option name="rangeValues">[0,30,70,100]</option>
            <option name="showSparkline">1</option>
            <option name="showTrendIndicator">1</option>
            <option name="trellis.enabled">0</option>
            <option name="trellis.scales.shared">1</option>
            <option name="trellis.size">medium</option>
            <option name="trendColorInterpretation">standard</option>
            <option name="trendDisplayMode">absolute</option>
            <option name="unitPosition">after</option>
            <option name="useColors">0</option>
            <option name="useThousandSeparators">1</option>
          </single>
        </panel>
        <panel>
          <title>Peak Concurrent Streams across UHD feeds</title>
          <single>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account, message.title as Channel | search Channel=$mf4$ | chart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" over _time by Channel limit=60 | addtotals | sort -Total limit=1| fields Total</query>
              <earliest>$st4$</earliest>
              <latest>$et4$</latest>
              <sampleRatio>1</sampleRatio>
            </search>
            <option name="colorBy">value</option>
            <option name="colorMode">none</option>
            <option name="drilldown">none</option>
            <option name="height">78</option>
            <option name="numberPrecision">0</option>
            <option name="rangeColors">["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]</option>
            <option name="rangeValues">[0,30,70,100]</option>
            <option name="showSparkline">1</option>
            <option name="showTrendIndicator">1</option>
            <option name="trellis.enabled">0</option>
            <option name="trellis.scales.shared">1</option>
            <option name="trellis.size">medium</option>
            <option name="trendColorInterpretation">standard</option>
            <option name="trendDisplayMode">absolute</option>
            <option name="unitPosition">after</option>
            <option name="useColors">0</option>
            <option name="useThousandSeparators">1</option>
          </single>
        </panel>
        <panel>
          <title>Peak Concurrent Streams across the Bonus feeds</title>
          <single>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account, message.title as Channel | search Channel=$mf8$ | chart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" over _time by Channel limit=60 | addtotals | sort -Total limit=1| fields Total</query>
              <earliest>$st2$</earliest>
              <latest>$et2$</latest>
              <sampleRatio>1</sampleRatio>
            </search>
            <option name="colorBy">value</option>
            <option name="colorMode">none</option>
            <option name="drilldown">none</option>
            <option name="height">80</option>
            <option name="numberPrecision">0</option>
            <option name="rangeColors">["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]</option>
            <option name="rangeValues">[0,30,70,100]</option>
            <option name="showSparkline">1</option>
            <option name="showTrendIndicator">1</option>
            <option name="trellis.enabled">0</option>
            <option name="trellis.scales.shared">1</option>
            <option name="trellis.size">medium</option>
            <option name="trendColorInterpretation">standard</option>
            <option name="trendDisplayMode">absolute</option>
            <option name="unitPosition">after</option>
            <option name="useColors">0</option>
            <option name="useThousandSeparators">1</option>
          </single>
        </panel>
      </row>
      <row>
        <panel>
          <title>Timechart of Concurrent Streams across all specified feeds</title>
          <chart>
            <search>
              <query>index="video-eng-live" sourcetype="channel-stats-test" | rename message.account as Account message.title as Channel |search Channel=$mf7$ | timechart  span=1m max(message.concurrent_sessions) as "Concurrent sessions" by Channel limit=60| addtotals</query>
              <earliest>$st2$</earliest>
              <latest>$et2$</latest>
              <sampleRatio>1</sampleRatio>
            </search>
            <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
            <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
            <option name="charting.axisTitleX.visibility">collapsed</option>
            <option name="charting.axisTitleY.visibility">visible</option>
            <option name="charting.axisTitleY2.visibility">visible</option>
            <option name="charting.axisX.scale">linear</option>
            <option name="charting.axisY.scale">linear</option>
            <option name="charting.axisY2.enabled">0</option>
            <option name="charting.axisY2.scale">inherit</option>
            <option name="charting.chart">line</option>
            <option name="charting.chart.bubbleMaximumSize">50</option>
            <option name="charting.chart.bubbleMinimumSize">10</option>
            <option name="charting.chart.bubbleSizeBy">area</option>
            <option name="charting.chart.nullValueMode">gaps</option>
            <option name="charting.chart.showDataLabels">none</option>
            <option name="charting.chart.sliceCollapsingThreshold">0.01</option>
            <option name="charting.chart.stackMode">default</option>
            <option name="charting.chart.style">shiny</option>
            <option name="charting.drilldown">none</option>
            <option name="charting.layout.splitSeries">0</option>
            <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option>
            <option name="charting.legend.labelStyle.overflowMode">ellipsisEnd</option>
            <option name="charting.legend.placement">right</option>
            <option name="height">561</option>
            <option name="trellis.enabled">0</option>
            <option name="trellis.scales.shared">1</option>
            <option name="trellis.size">medium</option>
          </chart>
        </panel>
      </row>
    </form>

I don't want to use an auto-refresh on the dashboard, but I want to be able to share it's or link or refresh it every now and then. Problem is, when I do either of those things, the dashboard's values don't update. I can refresh each panel but that's too cumbersome. Am I doing something wrong? Please help!!

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...