Getting Data In

How to fetch value from search text box and pass the value to query to get results?

Jasmine
Path Finder

how to fetch value from search text box and pass the value to query to get results?

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Jasmine,

are you speaking of a text box input, I suppose?

If this is your need, it's easy:

you have to create the text box input by GUI

    <input id="text_box" type="text" token="text_box">
      <label>Text Box</label>
      <default>*</default>
      <initialValue>*</initialValue>
    </input>

and then, in the main searches in you dashboard add the token:

<your_search> $text_box$
| ...

In this way, you performa a full text search on your events.

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Jasmine,

are you speaking of a text box input, I suppose?

If this is your need, it's easy:

you have to create the text box input by GUI

    <input id="text_box" type="text" token="text_box">
      <label>Text Box</label>
      <default>*</default>
      <initialValue>*</initialValue>
    </input>

and then, in the main searches in you dashboard add the token:

<your_search> $text_box$
| ...

In this way, you performa a full text search on your events.

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Jasmine ,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...