Splunk Search

FlashChart Drilldown Question which calls a new search

Ant1D
Motivator

Hey,

I want to switch off what seems to be a default function in Splunk.

I am trying to drill down on the following chart:

alt text When I click on the cell highlighted above in the search, a search that I have defined via the HiddenSearch module is run in a new popup window. However, by default, Splunk adds success="919" to this search.

When I click on this particular cell, the following search is run: index=main onb="wk42_2tue" success="919"

but this is the search that I want to see being run instead when I click on this cell: index=main onb="wk42_2tue"

The following extract of code from my view makes the above index=main onb="wk42_2tue" success="919" search possible:

<module name="HiddenSearch" autoRun="true">

 <param name="search">index=main</param>
       <module name="ConvertToIntention">
             <param name="intention"> 
                    <param name="name">addterm</param>
                              <param name="arg">
                                     <param name="onb">$click.value$</param>
                              </param>
              </param>  
               .
               .
               .

Is it possible to add a module and/or param to my code that stops success="..." from being added to the end of my search when I click on one of these cells?

Thanks in advance for your help.

0 Karma
1 Solution

ayme
Splunk Employee
Splunk Employee

The answer is to reference the second dimension name/value no? eg. $click.name2$

Here is an example:

 <module name="HiddenSavedSearch" layoutPanel="panel_row2_col1"
group="Test Flashchart" autoRun="True">
<param name="savedSearch">Test Flashchart</param>
<module name="ResultsHeader">
    <param name="entityName">scanned</param>
    <param name="entityLabel">test</param>
    <module name="HiddenChartFormatter">
        <param name="chart">column</param>
        <param name="chart.stackMode">stacked</param>
        <param name="primaryAxisTitle.text">time</param>
        <param name="secondaryAxisTitle.text">test</param>
        <module name="FlashChart">
            <param name="width">100%</param>
            <param name="height">300px</param>
            <module name="HiddenSearch">
                <param name="search">index=main</param>
                <param name="earliest">-1h</param>
                <module name="ConvertToIntention">
                    <param name="intention">
                        <param name="name">addterm</param>
                        <param name="arg">
                            <param name="onb">$click.name2$</param>
                        </param>
                    </param>
                    <module name="JobProgressIndicator"></module>
                    <module name="SimpleResultsHeader">
                        <param name="entityName">results</param>
                        <param name="headerFormat">$click.name2$=$click.value2$
                        </param>
                    </module>
                    <module name="HiddenChartFormatter">
                        <param name="chart">line</param>
                        <param name="primaryAxisTitle.text">time</param>
                        <param name="secondaryAxisTitle.text">events</param>
                        <param name="legend.placement">none</param>
                        <module name="FlashChart">
                            <param name="width">100%</param>
                            <param name="height">160px</param>
                        </module>
                    </module>
                </module>
            </module>
        </module>
    </module>
</module>
 </module>

View solution in original post

0 Karma

ayme
Splunk Employee
Splunk Employee

The answer is to reference the second dimension name/value no? eg. $click.name2$

Here is an example:

 <module name="HiddenSavedSearch" layoutPanel="panel_row2_col1"
group="Test Flashchart" autoRun="True">
<param name="savedSearch">Test Flashchart</param>
<module name="ResultsHeader">
    <param name="entityName">scanned</param>
    <param name="entityLabel">test</param>
    <module name="HiddenChartFormatter">
        <param name="chart">column</param>
        <param name="chart.stackMode">stacked</param>
        <param name="primaryAxisTitle.text">time</param>
        <param name="secondaryAxisTitle.text">test</param>
        <module name="FlashChart">
            <param name="width">100%</param>
            <param name="height">300px</param>
            <module name="HiddenSearch">
                <param name="search">index=main</param>
                <param name="earliest">-1h</param>
                <module name="ConvertToIntention">
                    <param name="intention">
                        <param name="name">addterm</param>
                        <param name="arg">
                            <param name="onb">$click.name2$</param>
                        </param>
                    </param>
                    <module name="JobProgressIndicator"></module>
                    <module name="SimpleResultsHeader">
                        <param name="entityName">results</param>
                        <param name="headerFormat">$click.name2$=$click.value2$
                        </param>
                    </module>
                    <module name="HiddenChartFormatter">
                        <param name="chart">line</param>
                        <param name="primaryAxisTitle.text">time</param>
                        <param name="secondaryAxisTitle.text">events</param>
                        <param name="legend.placement">none</param>
                        <module name="FlashChart">
                            <param name="width">100%</param>
                            <param name="height">160px</param>
                        </module>
                    </module>
                </module>
            </module>
        </module>
    </module>
</module>
 </module>
0 Karma

Ant1D
Motivator

I was able to tweak this code a little and get it to work for me. Thanks for your help.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...