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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...