Refine your search:

Is this possible? I would like to add either AMMAP or Google Maps on an existing main dashboard for a custom app.

asked 22 Oct '10, 20:50

BunnyHop's gravatar image

BunnyHop
7254424
accept rate: 25%


One Answer:

Yes, this is possible with both mapping solutions although the way you implement it is quite different. I can give you an example on how to embed the Google Maps module in your custom dashboard. This is a snippet for the advanced XML, you could use (the Google Maps app has to be installed):

<module name="HiddenSearch" group="Map View" autoRun="True" layout_panel="panel_row1_col1">
    <param name="search">sourcetype=access_combined NOT clientip=10.* NOT clientip=192.168.* | geoip clientip | genormalize | stats count as _geo_count by _lat,_lng</param>
    <module name="GoogleMaps">
        <param name="autoPostProcess">false</param>
        <param name="height">350</param>
        <param name="mapType">terrain</param>
        <param name="mapTypeControl">on</param>
        <param name="navigationControl">on</param>
        <param name="scaleControl">on</param>
        <param name="scrollwheel">off</param>
    </module>
</module>

There's some info on how to embed AMMAP in your custom dashboard in the Splunk Documentation: http://www.splunk.com/base/Documentation/latest/Developer/CreateMap

link

answered 25 Oct '10, 08:00

ziegfried's gravatar image

ziegfried ♦
7.2k1315
accept rate: 53%

edited 25 Oct '10, 10:27

Forgive my ignorance, but do you add this to your default view or you create this as an XML within the views folder and then reference it on the nav?

(25 Oct '10, 13:06) BunnyHop

By the way, just for clarification, Google Maps is already showing in the app, and that it is within the Nav under Views, but I would like for it to be a part of the main Dashboard.

(25 Oct '10, 13:16) BunnyHop

The Maps view is showing because it is configured as globally visible in the maps app. You'll have to edit the XML of your default view/dashboard (which has to exist in the data/ui/views folder). If you don't have a default view yet, you need to create it and link it as default from your navigation - See the Developer Docs for more info. If it's not already advanced XML, you'll have to convert it. See http://answers.splunk.com/questions/1/how-can-i-convert-simple-view-xml-to-advanced-xml

(25 Oct '10, 13:33) ziegfried ♦

I do have that, and my main dashboard (which if I'm correct) is built as Simple XML. How do I include the Advanced XML config to the Simple? Or do I have to completely rehaul my custom dashboard to an Advanced XML format?

(25 Oct '10, 14:42) BunnyHop

Yes, you'll need to convert it to advanced XML. The link in my comment above should help you doing this. There's no way to use custom modules in simple XML yet.

(25 Oct '10, 15:33) ziegfried ♦

Awesome! Just changed the layout_panel settings to layoutPanel (deprecated format?) and I'm good to go! Tnx!

(25 Oct '10, 17:06) BunnyHop

No, typo ;-) Glad that it works :)

(25 Oct '10, 19:01) ziegfried ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×325
×207
×19
×18

Asked: 22 Oct '10, 20:50

Seen: 971 times

Last updated: 25 Oct '10, 10:27

Copyright © 2005-2012 Splunk, Inc. All rights reserved.