Splunk Search

How to put SearchBar & HiddenSearch module to work together ?

leo_wang
Path Finder

Hello,

I want to design an Form Seach which has a SearchBar on it to let user input their search keyords. And in this Form Search, I still want to has my own HiddenSearch to work together to do some extra jobs ( lookup or eval some fields) and filter the search results.

I had tried it but it seems that "SearchBar" & "HiddenSearch" can't work together, Is my idea possible ?

Regards,

Leo

Tags (1)

thall79
Communicator

Have you tried looking at Splunk.Module.TextSetting? For example I have a 2 TextSetting modules setup so that I can input a number for span of minutes and a number to filter out login attemps. I normally set it so I can see in a time span of 10 minutes to see failed login attemps and only show me users who have done it 3 or more times.

Here is the section for the TextSetting that I use to feed my hidden searches.

  <module name="TextSetting" layoutPanel="panel_row1_col1_grp1">
   <param name="elementName">total_input</param>
   <param name="settingName">total_setting</param>
   <param name="label">Filter by Total:</param>

   <module name="ConvertToIntention">
    <param name="settingToConvert">total_setting</param>
    <param name="intention">
    <param name="name">stringreplace</param>
    <param name="arg">
      <param name="total">
        <param name="value">$target$</param>
       </param>
      </param>
     </param>

Then in my hidden search I use:

| search Total>$total$

at the end of my search string to control that filter. So maybe you could have that TextSetting box feed the search part of the string of multiple HiddenSearch modules to give you different outputs with SimpleResultsTable, SimpleEventsViewer or a FlashChart.

Only problem I could see is the size of the box used to enter you search string. It's not that big on my dashboard (about 20 characters wide).

travis.

0 Karma

leo_wang
Path Finder

Thanks for your response, I had tried this, but the TextSetting module handle just one input value, what I want is the function like SearchBar fields, user can put multiple keywords in it (as many as they want....) and filters the search results.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...