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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...