Dashboards & Visualizations

how to hide panel if Username is not admin?

viral_patel7012
New Member
<dashboard>
  <label>LTE Detailed Report</label>
  <fieldset submitButton="false">
    <input type="radio" token="username_tok" searchWhenChanged="true">
      <label>Select a User:</label>
      <choice value="*">All</choice>
      <choice value="-">-</choice>
      <choice value="admin">Admin</choice>
      <choice value="nobody">Nobody</choice>
      <choice value="splunk-system-user">Splunk System User</choice>
</input>
  </fieldset>
  <row>
    <panel>
      <chart>
        <title>DL Throughput</title>
        <search>
          <query>sourcetype="lteemsstatsdaily" source="*LTE Cell Dashboard*" | table "LTE_Cell" "User Experienced DL Thrpt"</query>
          <earliest>$earliest_tok$</earliest>
          <latest>now</latest>
       </search>
        <option name="charting.axisLabelsX.majorLabelStyle.rotation">-45</option>
        <option name="charting.chart">column</option>
        <option name="charting.drilldown">none</option>
      </chart>
    </panel>
  </row>
</dashboard>
Tags (1)
0 Karma
1 Solution

viral_patel7012
New Member

it worked... Amazing!!! You just saved my day... thanks somesoni2... I am very new to splunk and not a programmer... is there a blog where i can get work arounds for splunk in very layman terms?

0 Karma

niketn
Legend

@viral_patel7012, you should get Splunk 6.x Dashboard Examples App from Splunkbase. There are several examples available.

dev.splunk.com could be your resource if you want to learn topics through hands-on/walk-thru.

Finally docs.splunk.com has complete documentation for various Splunk features.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

viral_patel7012
New Member

Thanks @niketnilay... 🙂

0 Karma

niketn
Legend

Anytime. Please accept @somesoni2's answer to mark this thread as answered.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

viral_patel7012
New Member

done......

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...