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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...