Splunk Search

Can i have a form with two search queries and two search buttons ??

rakesh_498115
Motivator

Hi..

Can I have a form or dashboard ..with two search buttons ...i.e I need two panels 1 and 2 ..in first panel search 1 results should be displayed on click on search 1 button and so on for the second one in second panel...

Please help....

Tags (1)
0 Karma

jonuwz
Influencer

Download the ui examples app link

install it if you have splunk 4, or follow the link to the v5 version if you have splunk 5.

There's an example in it called "Listers and stringreplace intentions" that contains a working example.

Aaaand : here's a really simple example :

<view isVisible="true" template="dashboard.html">
  <label>Example</label>
  <module name="AccountBar" layoutPanel="appHeader"/>
  <module name="AppBar" layoutPanel="navigationHeader"/>
  <module name="SearchBar" layoutPanel="panel_row1_col1" group="search1">
    <module name="SimpleResultsTable"/>
  </module>
  <module name="SearchBar" layoutPanel="panel_row1_col2" group="search2">
    <module name="SimpleResultsTable"/>
  </module>
</view>

rakesh_498115
Motivator

Sry Ayn..will now on never post similar questions !!

0 Karma

Ayn
Legend

rakesh, I think that's abusing the splunkbase community in multiple ways.

  • Posting ALMOST the same question but with just a few details changed is tiresome for people who have to make out for themselves what the differences are.
  • Most of all, posting a question first and THEN going to look for an answer yourself is in my opinion straight out rude to the community. If you've tried to solve an issue but got stuck, fine, ask away. But if you ask before you even tried to solve the issue yourself, that to me shows a lack of wanting to learn, and a lack of respect towards other community members.

rakesh_498115
Motivator

Hi Chirs G ..I have posted this question mainly to know whether we can have two search buttons or not in a single form...in the previous i have asked whether can i have multiple search queries running for the same single search button ?? i thought it would be btr posting a question and parallel start tryin the things by my own. if i could get the answer ok well and good ..otherwise i will pick ans from the splunkbase..sry .if you feel i am posting the same question ..they seem to be more or less same but not exactly the same.i am very much benefited from the splunkbase and very thankful to tat

0 Karma

ChrisG
Splunk Employee
Splunk Employee

rakesh: people have made this comment to you in other postings, but I will say it again. PLEASE take the time to read, investigate, and learn from the materials that Splunk and the community offer you BEFORE you ask your questions. The extra question and answer on this posting were unnecessary and you could have answered your own question by examining the app. Jonuwz is being very generous and patient, and many others have been as well. But Answers is not a substitute for your own discovery and learning about the product.

rakesh_498115
Motivator

is it ? gud..let me try giving two search button modules then... 🙂

0 Karma

jonuwz
Influencer

thats exactly what the examples above do.

0 Karma

rakesh_498115
Motivator

thanx jonumz...in this can I have two search buttons to run these two searchs ??? is it possible ??

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...