Refine your search:

I've got a custom form with a time selector and I'd like to use a google map to display some results. My form basically looks like this:

<form>
<label>Product Dashboard</label>
<fieldset>
<input type = "time" />
</fieldset>
....
<row>
<table>
<title>Google Map</title>
<searchTemplate?>sourcetype = "access_combined" | geoip clientip</searchTemplate>
</table>
</row>
</form>

I do see results in the table when I run the form, but they're obviously not displaying on a google map. I see instructions for the google map app on how to use it on a dashboard, but what about on a form? Is this possible?

Thanks!

asked 31 May '11, 13:22

jstockamp's gravatar image

jstockamp
557
accept rate: 16%


One Answer:

Sure, it's possible. But you have to use the advanced XML version of your view. You can convert your form to advanced XML by appending ?showsource=1 to the URL when you're viewing it in the browser. You'll see the advanced XML sourcecode in the textbox on the very bottom of the resulting page.

Copy this code over to your view file and simply replace the SimpleResultsTable module with a GoogleMaps module.

link

answered 01 Jun '11, 04:51

ziegfried's gravatar image

ziegfried ♦
7.1k1315
accept rate: 53%

That worked, thanks.

Why in the world doesn't splunk have a "show advanced XML" on the edit page for the view?

(01 Jun '11, 15:02) jstockamp

Sounds like a good idea for an enhancement request.

(02 Jun '11, 13:21) 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:

Asked: 31 May '11, 13:22

Seen: 752 times

Last updated: 02 Jun '11, 13:21

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