All Apps and Add-ons

I want to input the parameter value in the textfield.

lanying
Explorer

I made a dashboard1. In dashboard1 , when data is clicked , link to another dashboard (dashboard2).
Then send a parameter(parameter name is 'event') to dashboard2. I want to input the parameter value in the textfield ($event$).
I used a sideview util. How can I do?

This is source about a dashboard2.

<view autoCancelInterval="90" isVisible="true" onunloadCancelJobs="true" template="dashboard.html" isSticky="False">
  <module name="SideviewUtils" layoutPanel="appHeader" />
  <module name="URLLoader" layoutPanel="panel_row1_col1" autoRun="True">
    <module name="JobProgressIndicator"></module>

    <module name="Pulldown">
      <param name="name">OrgName</param>
      <param name="label">기관명 </param>
      <param name="float">left</param>
      <param name="staticFieldsToDisplay">
        <list>
          <param name="label">ALL</param>
          <param name="value">*</param>
        </list>
        <list>
          <param name="label">기획재정부</param>
          <param name="value">기획재정부</param>
        </list>
       </param>

      <module name="TextField">
        <param name="name">EventName</param>
        <param name="float">left</param>
        <param name="template">EventName=$value$</param>
        <param name="label">EventName :</param>
        <param name="default">**$event$**</param>

      <module name="TextField">
        <param name="name">AttackerIP</param>
        <param name="float">left</param>
        <param name="template">AttackerIP=$value$</param>
        <param name="label">AttackerIP :</param>
        <param name="default">*</param>

        <module name="TextField">
            <param name="name">VictimIP</param>
            <param name="float">left</param>
            <param name="template">VictimIP=$value$</param>
            <param name="label">VictimIP :</param>
            <param name="default">*</param>

        <module name="SubmitButton">
          <param name="allowSoftSubmit">True</param>

          <module name="Search">
              <param name="search">index=tms_header $EventName$ OrgName=$OrgName$ $AttackerIP$ $VictimIP$ | table Time ID OrgName SensorIP EventName ATTACK_NAME AttackerIP AttackerPort VictimIP VictimPort Count</param>
              <param name="earliest">-24h</param>
              <param name="latest">now</param>

              <module name="Pager">
                <param name="entityName">results</param>
                <param name="count">50</param>

                <module name="SimpleResultsTable">
                  <param name="drilldown">row</param>
                  <param name="displayRowNumbers">False</param>
                  <param name="entityName">results</param>

                  <module name="Redirector">
                    <param name="popup">true</param>
                    <param name="url">TMS_PACKET</param>
                    <param name="arg.tmsEventID">$click.fields.ID$</param>
                    <param name="arg.event">$click.fields.EventName$</param>
                  </module>

                </module>

              </module>
            </module>
        </module>
      </module>
    </module>
    </module>
  </module>
</module>

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

You should look at the Sideview Utils documentation, particularly the page called "Linking - Pulldowns". Note particularly the example config from the Button module whose label says "Try it out - showing 2 prepopulated elements". That Button pushes to a Redirector and on the target view you'll see that it's pretty simple.

Here's the general idea though:

<module name="URLLoader" autoRun="True" layoutPanel="viewHeader">

  <module name="TextField" layoutPanel="mainSearchControls">
    <param name="name">event</param>
    <param name="label">Event:</param>

    <module name="TextField" layoutPanel="mainSearchControls">
      <param name="name">tmsEventID</param>
      <param name="label">TMD EventId:</param>

      <module name="Search">
        <param name="search">some_search_terms $event$ $tmsEventID$</param>

....

Hope that helps.

View solution in original post

0 Karma

sideview
SplunkTrust
SplunkTrust

You should look at the Sideview Utils documentation, particularly the page called "Linking - Pulldowns". Note particularly the example config from the Button module whose label says "Try it out - showing 2 prepopulated elements". That Button pushes to a Redirector and on the target view you'll see that it's pretty simple.

Here's the general idea though:

<module name="URLLoader" autoRun="True" layoutPanel="viewHeader">

  <module name="TextField" layoutPanel="mainSearchControls">
    <param name="name">event</param>
    <param name="label">Event:</param>

    <module name="TextField" layoutPanel="mainSearchControls">
      <param name="name">tmsEventID</param>
      <param name="label">TMD EventId:</param>

      <module name="Search">
        <param name="search">some_search_terms $event$ $tmsEventID$</param>

....

Hope that helps.

0 Karma

lanying
Explorer

Thank you for your help.. I solve the problem.. ^^

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...