Splunk Search

Display result of two sources in the same map

clairebesson
Explorer

Hi everyone,

I have two dashboards that display results on a map. The first dashboard displays results for source1 and the second displays results for source2.
Here is the code for the first source:

<map>
        <search>
          <query>source="source1.csv"| geostats latfield=latitude longfield=longitude count</query>

        </search>
        <option name="mapping.data.maxClusters">100</option>
        <option name="mapping.drilldown">all</option>
        <option name="mapping.map.center">(52.43,-93.6)</option>
        <option name="mapping.map.zoom">4</option>
        <option name="mapping.markerLayer.markerMaxSize">50</option>
        <option name="mapping.markerLayer.markerMinSize">10</option>
        <option name="mapping.markerLayer.markerOpacity">0.8</option>
        <option name="mapping.tileLayer.maxZoom">7</option>
        <option name="mapping.tileLayer.minZoom">0</option>
        <option name="drilldown">all</option>
      </map>

The code for my second dashboard:

        <search>
          <query>source="source2l.csv"| geostats latfield=latitude longfield=longitude count</query>
          </search>

I want to display the results of my two searches on the same map with different color.
How to display results from different sources on the same map?

Thanks in advance for your help

Tags (2)
0 Karma
1 Solution

diogofgm
SplunkTrust
SplunkTrust

Search both sources and split by source:

source="source1.csv" OR source="source2l.csv"| geostats latfield=latitude longfield=longitude count by source
------------
Hope I was able to help you. If so, some karma would be appreciated.

View solution in original post

diogofgm
SplunkTrust
SplunkTrust

Search both sources and split by source:

source="source1.csv" OR source="source2l.csv"| geostats latfield=latitude longfield=longitude count by source
------------
Hope I was able to help you. If so, some karma would be appreciated.

clairebesson
Explorer

thank you very much.

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 ...