Monitoring Splunk

Choropleth: Failed to memory map index files

iKate
Builder

Hi splunkers!
While trying to add KMZ file to use awesome choropleth map with my country I got this error:
Failed to memory map index files.

Here is a piece of search.log:

03-23-2016 20:18:13.983 INFO  spatial:Util - fullPath to spatial polygons data file: /opt/splunk/etc/apps/play/lookups/regions2010_wgs.kmz
03-23-2016 20:18:13.983 INFO  spatial:Util - using disk index: /opt/splunk/etc/apps/play/lookups/ru_regions
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - Num Keys in ray.key: 0
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - Num Keys in seg.key: 0
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - Num Keys in grid.key: 0
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - memory mapping existing file: ray.key
03-23-2016 20:18:13.987 ERROR spatial:PointInPolygonIndex - Memmap failed, file len 0 : Invalid argument
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - can not read index file ray.key
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - memory mapping existing file: ray.val
03-23-2016 20:18:13.987 ERROR spatial:PointInPolygonIndex - Memmap failed, file len 0 : Invalid argument
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - can not read index file ray.val
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - memory mapping existing file: seg.key
03-23-2016 20:18:13.987 ERROR spatial:PointInPolygonIndex - Memmap failed, file len 0 : Invalid argument
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - can not read index file seg.key
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - memory mapping existing file: seg.val
03-23-2016 20:18:13.987 ERROR spatial:PointInPolygonIndex - Memmap failed, file len 0 : Invalid argument
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - can not read index file seg.val
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - memory mapping existing file: grid.key
03-23-2016 20:18:13.987 ERROR spatial:PointInPolygonIndex - Memmap failed, file len 0 : Invalid argument
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - can not read index file grid.key
03-23-2016 20:18:13.987 INFO  spatial:PointInPolygonIndex - memory mapping existing file: grid.val
03-23-2016 20:18:13.987 ERROR spatial:PointInPolygonIndex - Memmap failed, file len 0 : Invalid argument
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - can not read index file grid.val
03-23-2016 20:18:13.987 FATAL spatial:PointInPolygonIndex - memmap failed! no valid keys and values

Our file is in kmz, it contains filled Name param (featureid).
Search string that I used:

source=purchases | geoip ip_address | lookup ru_regions longitude as ip_address_longitude, latitude as ip_address_latitude | stats count by featureId | geom ru_regions

Link for downloading kmz file:
http://gis-lab.info/data/rusbounds-rosreestr/regions2010_wgs.kmz
Test geodata:
test_data.csv
Hope for your help, I want this cool viz so much:)

jtrujillo
Path Finder

I am like 99.999% sure its the KML that you are using.

The regions that you have defined are not unique... therefore when there is a mapping from splunk onto the geom it is confused on which area you are talking about.

Just a quick look at your KMZ shows that you have a lot of "avtocod" that are named the same (e.g. 87, 29) and that is the default featureId that you are using. The only reason I know this is because I just had the same issue.

Try using "/Placemark/region" as your Feature Id Element.

iKate
Builder

Thanks for your answer! Unfortunately changing feature id element name in lookup definition didn't help( I attached sample geodata in csv, maybe it can help.

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...