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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...