sghaskell / maps-plus

Maps+ for Splunk
Other
18 stars 3 forks source link

Map not showing all markers. #8

Closed XtremeOwnageDotCom closed 5 years ago

XtremeOwnageDotCom commented 5 years ago

It appears in certain cases, the map is not showing all of the nodes. I do not see an option to change the limit for the number of markers displayed.

To reproduce-

I have a dataset with around 2,000 latitudes, longs, descriptions, markers, etc. Fairly large data set.

Clustering is disabled, using canvas markers.

Using the visualization in a normal search, it worked exactly as intended and displayed all markers.

Upon saving to a dashboard, it began to truncate the results.

Here are the options the dashboard has stored.

 <option name="drilldown">none</option>
        <option name="leaflet_maps_app.maps-plus.allPopups">0</option>
        <option name="leaflet_maps_app.maps-plus.animate">1</option>
        <option name="leaflet_maps_app.maps-plus.autoFitAndZoom">1</option>
        <option name="leaflet_maps_app.maps-plus.autoFitAndZoomDelay">500</option>
        <option name="leaflet_maps_app.maps-plus.bingMaps">1</option>
        <option name="leaflet_maps_app.maps-plus.bingMapsApiKeyRealm">MobileIQ</option>
        <option name="leaflet_maps_app.maps-plus.bingMapsApiKeyUser">Bing API Key</option>
        <option name="leaflet_maps_app.maps-plus.bingMapsLabelLanguage">en-US</option>
        <option name="leaflet_maps_app.maps-plus.bingMapsTileLayer">AerialWithLabels</option>
        <option name="leaflet_maps_app.maps-plus.cluster">0</option>
        <option name="leaflet_maps_app.maps-plus.contextMenu">1</option>
        <option name="leaflet_maps_app.maps-plus.criticalThreshold">80</option>
        <option name="leaflet_maps_app.maps-plus.defaultHeight">600</option>
        <option name="leaflet_maps_app.maps-plus.disableClusteringAtZoom">0</option>
        <option name="leaflet_maps_app.maps-plus.drilldown">0</option>
        <option name="leaflet_maps_app.maps-plus.drilldownAction">dblclick</option>
        <option name="leaflet_maps_app.maps-plus.fullScreen">0</option>
        <option name="leaflet_maps_app.maps-plus.googlePlacesPosition">topleft</option>
        <option name="leaflet_maps_app.maps-plus.googlePlacesSearch">0</option>
        <option name="leaflet_maps_app.maps-plus.googlePlacesZoomLevel">12</option>
        <option name="leaflet_maps_app.maps-plus.heatmapBlur">15</option>
        <option name="leaflet_maps_app.maps-plus.heatmapColorGradient">{"0.4":"blue","0.6":"cyan","0.7":"lime","0.8":"yellow","1":"red"}</option>
        <option name="leaflet_maps_app.maps-plus.heatmapEnable">0</option>
        <option name="leaflet_maps_app.maps-plus.heatmapMinOpacity">1.0</option>
        <option name="leaflet_maps_app.maps-plus.heatmapOnly">0</option>
        <option name="leaflet_maps_app.maps-plus.heatmapRadius">25</option>
        <option name="leaflet_maps_app.maps-plus.i18nLanguage">en</option>
        <option name="leaflet_maps_app.maps-plus.layerControl">1</option>
        <option name="leaflet_maps_app.maps-plus.layerControlCollapsed">1</option>
        <option name="leaflet_maps_app.maps-plus.mapCenterLat">39.50</option>
        <option name="leaflet_maps_app.maps-plus.mapCenterLon">-98.35</option>
        <option name="leaflet_maps_app.maps-plus.mapCenterZoom">6</option>
        <option name="leaflet_maps_app.maps-plus.mapTile">http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png</option>
        <option name="leaflet_maps_app.maps-plus.maxClusterRadius">80</option>
        <option name="leaflet_maps_app.maps-plus.maxSpiderfySize">100</option>
        <option name="leaflet_maps_app.maps-plus.maxZoom">19</option>
        <option name="leaflet_maps_app.maps-plus.measureActiveColor">#00ff00</option>
        <option name="leaflet_maps_app.maps-plus.measureCompletedColor">#0066ff</option>
        <option name="leaflet_maps_app.maps-plus.measureIconPosition">topright</option>
        <option name="leaflet_maps_app.maps-plus.measureLocalization">en</option>
        <option name="leaflet_maps_app.maps-plus.measurePrimaryAreaUnit">acres</option>
        <option name="leaflet_maps_app.maps-plus.measurePrimaryLengthUnit">feet</option>
        <option name="leaflet_maps_app.maps-plus.measureSecondaryAreaUnit">sqmiles</option>
        <option name="leaflet_maps_app.maps-plus.measureSecondaryLengthUnit">miles</option>
        <option name="leaflet_maps_app.maps-plus.measureTool">1</option>
        <option name="leaflet_maps_app.maps-plus.minZoom">1</option>
        <option name="leaflet_maps_app.maps-plus.multiplePopups">0</option>
        <option name="leaflet_maps_app.maps-plus.pathColorList">#0003F0,#D43C29,darkgreen,0xe2d400,darkred,#23A378</option>
        <option name="leaflet_maps_app.maps-plus.pathIdentifier">d_id</option>
        <option name="leaflet_maps_app.maps-plus.pathSplitInterval">60</option>
        <option name="leaflet_maps_app.maps-plus.pathSplits">0</option>
        <option name="leaflet_maps_app.maps-plus.permanentTooltip">0</option>
        <option name="leaflet_maps_app.maps-plus.rangeOneBgColor">#B5E28C</option>
        <option name="leaflet_maps_app.maps-plus.rangeOneFgColor">#6ECC39</option>
        <option name="leaflet_maps_app.maps-plus.rangeThreeBgColor">#FD9C73</option>
        <option name="leaflet_maps_app.maps-plus.rangeThreeFgColor">#F18017</option>
        <option name="leaflet_maps_app.maps-plus.rangeTwoBgColor">#F1D357</option>
        <option name="leaflet_maps_app.maps-plus.rangeTwoFgColor">#F0C20C</option>
        <option name="leaflet_maps_app.maps-plus.refreshInterval">0</option>
        <option name="leaflet_maps_app.maps-plus.renderer">canvas</option>
        <option name="leaflet_maps_app.maps-plus.scrollWheelZoom">1</option>
        <option name="leaflet_maps_app.maps-plus.showPathLines">1</option>
        <option name="leaflet_maps_app.maps-plus.showProgress">1</option>
        <option name="leaflet_maps_app.maps-plus.singleMarkerMode">0</option>
        <option name="leaflet_maps_app.maps-plus.spiderfyDistanceMultiplier">1</option>
        <option name="leaflet_maps_app.maps-plus.stickyTooltip">1</option>
        <option name="leaflet_maps_app.maps-plus.warningThreshold">55</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
XtremeOwnageDotCom commented 5 years ago

Taking the same search displayed in the dashboard, and opening the results in a search tab, goes back to showing all markers.

Seems to be something related to the visualization being located inside of a dashboard.

sghaskell commented 5 years ago

Is the search powering the visualization in the dashboard a post-process search?

XtremeOwnageDotCom commented 5 years ago

In the example dashboard I created for diagnosing this issue- there is no-post process search.

Basically- I clicked the save as dashboard panel button from the search results to reproduce.

XtremeOwnageDotCom commented 5 years ago

Other steps I have taken to diagnose:

Enabled / Disabled path lines - No change Enabled / Disabled Clustering - No Change Attempted with normal map tiles, and with bing tiles - no change.

sghaskell commented 5 years ago

What version of Splunk are you using? Can you export some sample data so I can try to reproduce what you're seeing? This viz definitely works in dashboards so it may be something specific to your dataset.

XtremeOwnageDotCom commented 5 years ago

Sorry- I thought I posted a reply the other day- I cannot export the data due to its nature.

However- I do believe I have identified the issue, as some odd side-effect from Append....

Which still makes no sense, as the same number of results is returned either way.

XtremeOwnageDotCom commented 5 years ago

That does appear to be the issue. The timing/how events were cutting off provided the selected duration is what made me point at the app.

After spending a few hours changing / touching stuff, I determined the appended search was somehow causing results to be chopped off chronologically, in the opposite order that would be expected.

sghaskell commented 5 years ago

Thanks for the update @ericmck2000 . Glad you got it all sorted!

XtremeOwnageDotCom commented 5 years ago

Not quite sorted out- Its an odd issue I may have to open a case for them to review....... But, I am close to a work around.