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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

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 ...