Dashboards & Visualizations

Google Map drilldown to second dashboard

kmattern
Builder

I have a Google Map dashboard that populates properly. Each point represents a specific IP address. I want to click on the point and send only the IP address to a second dashboard which will show a table of activity at that location, that is up and down file transfers. But instead of passing the IP address it sends the entire search string. This is the search that populates the Google Map dashboard.

sourcetype="iis" earliest="03/14/2014:00:00:00" latest="03/15/2014:00:00:00" 
 | dedup c_ip 
 | geoip c_ip 

This is the search that drives the second dashboard

sourcetype="iis" earliest="03/14/2014:00:00:00" latest="03/15/2014:00:00:00" $c_ip$ 
| lookup All_Stores.csv cs_username OUTPUT Store
| eval cs_uri_query=if(cs_uri_query="-","N/A",cs_uri_query)
| eval cs_uri_stem=if(cs_uri_stem="-","N/A",cs_uri_stem)
| rename date as Date, cs_uri_stem as Download, cs_uri_query as Upload, sc_status as Status
| table Date, Store, Upload, Download, Status

This is the relevant XML from the Google Maps dashboard

<module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="true">
 <param name="search">sourcetype="iis" earliest="03/14/2014:00:00:00" latest="03/15/2014:00:00:00" 
 | dedup c_ip 
 | geoip c_ip 
</param>
     <module name="GoogleMaps" layoutPanel="panel_row1_col1" group="Map" >
         <param name="height">650px</param>
         <param name="mapStyles">splunk,roadmap,terrain,satellite</param>
         <param name="mapType">satellite</param>
         <param name="mapTypeControl">on</param>
         <param name="scrollwheel">on</param>
         <param name="drilldown">true</param>

                    <module name="ConvertToIntention">
                        <param name="settingToConvert">maps.drilldown</param>
                        <param name="intention">
                            <param name="name">stringreplace</param>
                            <param name="arg">
                                <param name="c_ip">
                                    <param name="value">$target$</param>
                                </param>
                            </param>
                        </param>
                        <module name="ViewRedirector">
                            <param name="viewTarget">MapDrill</param>
                        </module>
                    </module>
     </module>
</module>
0 Karma

kmattern
Builder

OK, I gave up and cheated. In the GoogleMaps module I put a hidden search that captured the clicked IP and ran the search that I wanted on the second dashboard. Then I used outputlookup to a temp CSV file and redirected to my second dashboard. There I simply used inputlookup on the temp CSV file and got what I want.

Sometimes you just have to cheat.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...