Splunk® Enterprise

Splunk Dashboard Studio

Acrobat logo Download manual as PDF


This documentation does not apply to the most recent version of Splunk® Enterprise. For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Part 7 Add a map

Perhaps you want to show purchases of Buttercup Games across a geographical map with each metric categorized by game type. In this part of the tutorial, create an interactive map that uses visual bubbles to illustrate purchase quantity and type.

  1. Select the add chart icon (A bar graph as an icon.) in the editing toolbar, and then select Map.
  2. In the New Data Source panel, name the source Purchase Locations.
  3. Add your search. For this tutorial, copy and paste the following search into the Search with SPL box:
    index=main sourcetype=access_* action=purchase status=200 productName="*"
    | iplocation clientip
    | geostats latfield=lat longfield=lon count by categoryId
    
  4. Expand the Code section and change the Data Source ID to ds_purchase_locations.
  5. Select Apply & Close. At this point, you've created a new data source, given it a unique ID, and assigned it to the map.
  6. Expand the Code section and change the Visualization ID to viz_purchase_locations.
  7. Use the drag handle to move and resize the map to the center of the top right gray rectangle.
  8. To configure the map to have a different view by default, expand the Code section and add the following to the options stanza in the editor:
    "options": {
           "center": [
               35,
               -100
           ],
           "zoom": 2
       },
    
  9. Add a title to the map visualization by selecting the add Markdown icon (An uppercase letter M and an arrow pointing downward as an icon.) in the editing toolbar.
  10. Enter #### Purchase Locations in the text box.
  11. Resize and position the text box to fit above the map and inside the gray rectangle. Resize the map again if necessary to include the text.

After completing Part 7, your map looks similar to the following:

A map with multiple donut visualizations on different geographical locations, each showing purchases by amount and game type.

Next step

You've completed Part 7 of the Splunk Dashboard Studio tutorial.

Now your dashboard has a map showing the connection between geographic locations and purchases. Next, add a drop-down menu input to filter the visualizations you've added so far. Continue to Part 8: Add an input.

Last modified on 29 June, 2023
PREVIOUS
Part 6 Add a single value visualization using a chain search
  NEXT
Part 8 Add an input

This documentation applies to the following versions of Splunk® Enterprise: 9.0.0, 9.0.1, 9.0.2, 9.0.3, 9.0.4, 9.0.5, 9.0.6, 9.0.7, 9.0.8


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters