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!

Machine Learning - Assisted Adaptive Thresholding

Let’s talk thresholding. Have you set up static thresholds? Tired of static thresholds triggering false ...

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...