Dashboards & Visualizations

How to add a text box in a dashboard directly in a panel?

jip31
Motivator

hi

Is it possible to add an text box in the tags below please??

<row>
        <panel>
          <table>
            <search>
              <query>
    </query>
          </table>
        </panel>
      </row>
Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi jip31,
what do you mean with "text box":

  • a text input,
  • a fixed text,
  • a panel that display a search result as a text value,

?

In first case see in the Splunk Dashboard Examples App ( https://splunkbase.splunk.com/app/1603/ ) how to insert an input ibox n a panel.
In the second case, you have to insert an html tag in a panel (see the Splunk Dashboard Examples to do this).
In the third case, you have to create a search and display it using a Single Value Panel.

Bye-.
Giuseppe

View solution in original post

niketn
Legend

@jip31 are you looking for something like the following:

<form>
  <label>Panel with Text Box and Table</label>
  <fieldset submitButton="false"></fieldset>
  <row>
    <panel>
      <input type="text" token="tokText" searchWhenChanged="true">
        <label>tokText</label>
        <default>log_level!=INFO</default>
      </input>
      <chart>
        <search>
          <query> index=_internal sourcetype=splunkd earliest=-1h@h latest=now $tokText$
| timechart count by component
          </query>
        </search>
        <option name="charting.chart">line</option>
      </chart>
    </panel>
  </row>
</form>
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi jip31,
what do you mean with "text box":

  • a text input,
  • a fixed text,
  • a panel that display a search result as a text value,

?

In first case see in the Splunk Dashboard Examples App ( https://splunkbase.splunk.com/app/1603/ ) how to insert an input ibox n a panel.
In the second case, you have to insert an html tag in a panel (see the Splunk Dashboard Examples to do this).
In the third case, you have to create a search and display it using a Single Value Panel.

Bye-.
Giuseppe

jip31
Motivator

hi
a text input from "add entry" menu in the dashboard

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi jip31,
If you need to insert a text box input in a panel, see in the Splunk Dashboard Examples App.
in few words:

<panel>
   <input type="text" token="limit" searchWhenChanged="true">
      <label>Enter an integer N:</label>
      <default>5</default>
   </input>
   <event>
      <title>_Internal Top 3</title>
       <searchString>index=_internal  | head 3</searchString>
       <earliestTime>$time_range2.earliest$</earliestTime>
       <latestTime>$time_range2.latest$</latestTime>
       <option name="maxLines">5</option>
       <option name="raw.drilldown">full</option>
       <option name="rowNumbers">0</option>
       <option name="type">list</option>
       <option name="count">5</option>
    </event>
 </panel>

Bye.
Giuseppe

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