Dashboards & Visualizations

How to make a multiple search??

ilove275
Path Finder

I made a dashboard that had a search function. Textfield , dropdown function is included.
But it doesn't work.
I want to search by 3 parameters.

After loading , search reference "index=tmsheader $level$ $AttackerIP$ $VictimIP$ | table A B C D levelsetting ALL * A A B b C C" have to work , but it is displayed "loading..."

<view autoCancelInterval="90" isVisible="true" objectMode="SimpleForm" onunloadCancelJobs="true" template="dashboard.html">
  <module name="HiddenSearch" layoutPanel="viewHeader">
    <param name="search">index=tms_header $level$ *$AttackerIP$* *$VictimIP$* | table A B C D/param>
    <module name="StaticSelect">
      <param name="settingToCreate">level_setting</param>
      <param name="staticFieldsToDisplay">
        <list>
            <param name="label">ALL</param>
            <param name="value">*</param>
        </list>
        <list>
            <param name="label">A</param>
            <param name="value">A</param>
        </list>
        <list>
            <param name="label">B</param>
            <param name="value">b</param>
        </list>
        <list>
            <param name="label">C</param>
            <param name="value">C</param>
        </list>

          </param>
          <param name="searchWhenChanged">True</param>
          <param name="selected">*</param>
          <param name="label">ABC :</param>
        <module name="ConvertToIntention">
            <param name="settingToConvert">level_setting</param>
            <param name="intention">
              <param name="name">stringreplace</param>
              <param name="arg">
                <param name="level">
                  <param name="default">*</param>
                  <param name="fillOnEmpty">True</param>
                  <param name="value">$target$</param>
                </param>
              </param>
            </param>
            <module name="ExtendedFieldSearch">
              <param name="replacementMap">
                <param name="arg">
                  <param name="AttackerIP"/>
                </param>
              </param>
              <param name="field">AttackerIP:</param>
              <param name="q">*</param>
              <param name="intention">
                <param name="name">stringreplace</param>
                <param name="arg">
                  <param name="AttackerIP">
                    <param name="fillOnEmpty">True</param>
                  </param>
                </param>
              </param>

            <module name="ExtendedFieldSearch">
              <param name="replacementMap">
                <param name="arg">
                  <param name="VictimIP"/>
                </param>
              </param>
              <param name="field">VictimIP:</param>
              <param name="q">*</param>
              <param name="intention">
                <param name="name">stringreplace</param>
                <param name="arg">
                  <param name="VictimIP">
                    <param name="fillOnEmpty">True</param>
                  </param>
                </param>
              </param>

              <module name="TimeRangePicker">
                <param name="searchWhenChanged">True</param>
                <module name="SubmitButton">
                  <param name="allowSoftSubmit">True</param>
                  <param name="label">Search</param>
                <module name="SubmitButton">
                  <param name="allowSoftSubmit">True</param>
                  <param name="label">Report</param>
                  <module name="Redirector">
                        <param name="popup">true</param>
                        <param name="url">http://100.100.100.100:8080/jsp/TEST/report.jsp</param>
                        <param name="arg.event">$click.fields.EVENT$</param>
                    </module>
                  <module name="JobStatus">

           <module name="FlashTimeline" layoutPanel="graphArea">
                            <param name="height">140px</param>
                            <param name="width">100%</param>
                            <module name="TitleBar" layoutPanel="viewHeader"/>
       </module>       
                  <module name="HiddenPostProcess" layoutPanel="panel_row2_col1" group="EVENT" autoRun="False">
                    <param name="search">
                      index=tms_header $level$ *$AttackerIP$* *$VictimIP$* | table A B C D
                    </param>
                    <param name="groupLabel">EVENT</param>
                    <module name="ViewstateAdapter">
                      <module name="HiddenFieldPicker">
                        <param name="strictMode">True</param>
                        <module name="JobProgressIndicator">
                          <module name="EnablePreview">
                            <param name="enable">True</param>
                            <param name="display">False</param>
                            <module name="HiddenChartFormatter">
                              <param name="charting.chart">bar</param>
                              <module name="FlashChart">
                              <param name="width">100%</param>
                                <module name="ConvertToDrilldownSearch">
                                  <module name="ViewRedirector">
                                    <param name="viewTarget">flashtimeline</param>
                                  </module>
                                </module>
                              </module>
                              <module name="ViewRedirectorLink">
                               <param name="viewTarget">flashtimeline</param>
                              </module>
                            </module>
                          </module>
                        </module>
                      </module>
                    </module>
                  </module>
                </module>
              </module>
            </module>
          </module>
        </module>
      </module>
    </module>
</module>


Tags (2)
1 Solution

RicoSuave
Builder

Save yourself the headaches and switch over to using Sideview utils app modules for form searches. It's a lot easier to code and opens up a whole new world of possibilities. Download the app and walk through all the examples. You won't have to deal with intentions anymore.

View solution in original post

RicoSuave
Builder

Save yourself the headaches and switch over to using Sideview utils app modules for form searches. It's a lot easier to code and opens up a whole new world of possibilities. Download the app and walk through all the examples. You won't have to deal with intentions anymore.

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!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Note: This post outlines a proposed architecture and serves as an interest check. If we secure commitments ...