Dashboards & Visualizations

unknown sid error after refreshing dashboard by clicking on F5 button




i'm running this dashboard :



  <fieldset submitButton="true" autoRun="true">
    <input type="text" token="lsap_token" searchWhenChanged="true">
        <condition match="$lsap_token$ == &quot;BCG29&quot;">
          <set token="limit_token">""</set>
        <condition match="$lsap_token$ == &quot;COL41&quot;">
          <set token="limit_token">" tomcat: Starting dataload"</set>
      <title>LSAP Dashboard</title>
          <query>index="prod" $lsap_token$ $limit_token$
| append
   [ search index="prod" sourcetype=flights
   | dedup Tail_no, Actual_time_departure
   | sort 0 -Actual_time_departure
   | streamstats last(Origin) as last_origin by Tail_no current=false
   | eval _time=strptime(Actual_time_arrival, "%Y-%m-%d %H:%M"), Destination=if(Destination=last_origin, Destination, "UNKNOWN")
   | rename Tail_no as tail_id]
| sort 0 _time
| streamstats latest(Destination) as airport by tail_id time_window=1mon
| search sourcetype!=flights
| fillnull value="UNKNOWN" airport
| fillnull value="unassigned" eventtype
| eval Date=strftime(_time, "%Y-%m-%d")
| table Date,tail_id,_raw, airport, eventtype
| sort tail_id, Date</query>
        <option name="count">20</option>
        <option name="dataOverlayMode">none</option>
        <option name="drilldown">none</option>
        <option name="percentagesRow">false</option>
        <option name="rowNumbers">false</option>
        <option name="totalsRow">false</option>
        <option name="wrap">true</option>



after refreshing the page with F5 button im getting "unknown sid" error.
it is not happening when im removing $limit_token$ from the search 


any suggestions what is wrong ?



Labels (1)
0 Karma


@sarit_s within an input <change> event handler the selected value should be accessed via built-in predefined token $value$

Please retry after changing the token $lsap_token$ with $value$ in the condition block of change event handler of the input.

    <input type="text" token="lsap_token" searchWhenChanged="true">
        <condition match="$value$ == &quot;BCG29&quot;">
          <set token="limit_token">""</set>
        <condition match="$value$ == &quot;COL41&quot;">
          <set token="limit_token">" tomcat: Starting dataload"</set>

 PS: If there are no condition match default value *, I dont understand setting that as the default value for the text box. Also if there are only two condition blocks you can use a dropdown or radio (unless you are sampling few for simplicity)

| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!