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
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!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...