Dashboards & Visualizations

Is it possible to use satellite view in xml map element?

harald_leitl
Path Finder

Hi,

is it possible to use satellite view in xml "map" element?

thanks!

Tags (3)
0 Karma
1 Solution

ranjith_kumar
Path Finder

Hi Harald_leitl,

Yes you can use satellite, hybrid, road map and the standard map in splunk dashboards. and there are plenty of other options you ca use in your dashboard. please find some options here

http://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
note: replace with lyrs=h or m or s or y to see the different maps
h = roads only
m = standard roadmap
p = terrain
r = somehow altered roadmap
s = satellite only
t = terrain only
y = hybrid

  <map>
      <title>Common Map Options</title>
      <search>
        <query>| inputlookup geomaps_data.csv | iplocation device_ip ![alt text][1]| geostats latfield=lat longfield=lon count by method</query>
      </search>
      <option name="mapping.tileLayer.maxZoom">19</option>
      <option name="mapping.tileLayer.minZoom">0</option>
      <option name="mapping.tileLayer.tileOpacity">1</option>
      <option name="mapping.tileLayer.url">http://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}</option>
      <option name="mapping.type">marker</option>
      <option name="drilldown">all</option>
    </map>

View solution in original post

ranjith_kumar
Path Finder

Hi Harald_leitl,

Yes you can use satellite, hybrid, road map and the standard map in splunk dashboards. and there are plenty of other options you ca use in your dashboard. please find some options here

http://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
note: replace with lyrs=h or m or s or y to see the different maps
h = roads only
m = standard roadmap
p = terrain
r = somehow altered roadmap
s = satellite only
t = terrain only
y = hybrid

  <map>
      <title>Common Map Options</title>
      <search>
        <query>| inputlookup geomaps_data.csv | iplocation device_ip ![alt text][1]| geostats latfield=lat longfield=lon count by method</query>
      </search>
      <option name="mapping.tileLayer.maxZoom">19</option>
      <option name="mapping.tileLayer.minZoom">0</option>
      <option name="mapping.tileLayer.tileOpacity">1</option>
      <option name="mapping.tileLayer.url">http://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}</option>
      <option name="mapping.type">marker</option>
      <option name="drilldown">all</option>
    </map>

ranjith_kumar
Path Finder

alt text

0 Karma

nichchan
Engager

How to have geomaps_data.csv lookup file ?

0 Karma

niketn
Legend

@nichchan, it comes with Splunk Dashboard Examples app. This lookup file has some cooked up data for examples to work. You should actually try iplocation command if you have IP address as part of data.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

nichchan
Engager

@niketnilay If without IP address , Can I put google map on splunk dashboard?

0 Karma

niketn
Legend

You can but you would need Latitude/Longitude of the location. Splunk Software ships with geo_attr_countries.csv and geo_attr_us_states.csv which give Latitude Longitude based on US States and all the countries of the world. There is also similarkmz file which comes with Splunk geo_countries.lmz and geo_us_states.kmz which are used for Choropleth Maps

You can also search online for Latitude/Longitude based on City/State/Country etc. As far as you are able to link location in your data with Longitude and Latitude you should be able to plot Map using geostats command (geom command for choropleth which requires region).

Hope this helps. If not, get the Splunk Dashboard Examples App as stated in previous comment to get Examples and understand how these work.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...

Security Highlights | January 2023 Newsletter

January 2023 Splunk Security Essentials (SSE) 3.7.0 ReleaseThe free Splunk Security Essentials (SSE) 3.7.0 app ...

Platform Highlights | January 2023 Newsletter

 January 2023Peace on Earth and Peace of Mind With Business ResilienceAll organizations can start the new year ...