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!

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

 Prepare to elevate your security operations with the powerful upgrade to Splunk Enterprise Security 8.x! This ...

Get Early Access to AI Playbook Authoring: Apply for the Alpha Private Preview ...

Passionate about security automation? Apply now to our AI Playbook Authoring Alpha private preview ...

Reduce and Transform Your Firewall Data with Splunk Data Management

Managing high-volume firewall data has always been a challenge. Noisy events and verbose traffic logs often ...