Good day everyone,
I'm starting to use Splunk 6 new Web Framework and I am having a difficulty on making my timerange picker to apply on my searches. I'm following the Django bindings provided in Splunk documentation
Here's a sample of my code:
Here is my code for my timerange picker:
{% timerange id="global-timerange" managerid="downsites-search" earliest_time="-2h@h" latest_time="now" %}
Here's my code for my search manager:
{% searchmanager
id="downsites-search"
search='tag=all_sites SECTOR=ALL eventtype=2G OR eventtype=3G | stats count(eval(eventtype="2G")) as count_2G count(eval(eventtype="3G")) as count_3G by _time,Site_ID,BAND,source | lookup installed_base Site_ID OUTPUT total_2G,total_3G,total_count | eval downsites_indentifier=if(count_2G < total_2G OR count_3G < total_3G,0,1) | WHERE downsites_indentifier=1 | lookup site_info Site_ID OUTPUT WGS84_Longitude,WGS84_Latitude | table Site_ID WGS84_Longitude WGS84_Latitude | geostats globallimit=0 latfield=WGS84_Latitude longfield=WGS84_Longitude maxzoomlevel=18 dc(Site_ID) by Site_ID'
earliest_time="$earliestTime$"|token_safe
latest_time="$latestTimes$"|token_safe
autostart=True
preview=True
cache=False %}
And here's the code for my maps to render the search:
{% splunkmap id="map-of-downsites" managerid="downsites-search" height="500px" tileSource="openStreetMap" %}
I can see that I have applied the timerange picker values on my timerange picker but the map still return results from all time. I don't really know if I missed a parameter for my timerange picker, I have properly set the managerid for the maps and timerangepicker.
Hope you can help me, thanks.
... View more