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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...