<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using multiple geospatial lookups in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-geospatial-lookups/m-p/320919#M166162</link>
    <description>&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;

&lt;P&gt;I currently am using a geospatial file to show devices inside or outside of a geofence. &lt;/P&gt;

&lt;P&gt;Here is a small snippet of the search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           | lookup geo_Example1 latitude longitude
           | fillnull featureId value="outsideGeoFence"
           | where LIKE(featureId, "outsideGeoFence") 
           | fillnull value="unknown" user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can use any single geo spatial file such as Example1 Example2 Example3 that I have loaded referencing the latitude and longitude and it works as expected.&lt;/P&gt;

&lt;P&gt;I would ideally like to add more than one geospatial lookup to the search instead of creating multiple reports or dashboards for each specific location&lt;/P&gt;

&lt;P&gt;I have tried simply adding another lookup to the string in different ways but it is not working once I add more thane one Geospatial reference.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 22:19:07 GMT</pubDate>
    <dc:creator>sigpro1911</dc:creator>
    <dc:date>2017-09-07T22:19:07Z</dc:date>
    <item>
      <title>Using multiple geospatial lookups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-geospatial-lookups/m-p/320919#M166162</link>
      <description>&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;

&lt;P&gt;I currently am using a geospatial file to show devices inside or outside of a geofence. &lt;/P&gt;

&lt;P&gt;Here is a small snippet of the search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           | lookup geo_Example1 latitude longitude
           | fillnull featureId value="outsideGeoFence"
           | where LIKE(featureId, "outsideGeoFence") 
           | fillnull value="unknown" user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can use any single geo spatial file such as Example1 Example2 Example3 that I have loaded referencing the latitude and longitude and it works as expected.&lt;/P&gt;

&lt;P&gt;I would ideally like to add more than one geospatial lookup to the search instead of creating multiple reports or dashboards for each specific location&lt;/P&gt;

&lt;P&gt;I have tried simply adding another lookup to the string in different ways but it is not working once I add more thane one Geospatial reference.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 22:19:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-geospatial-lookups/m-p/320919#M166162</guid>
      <dc:creator>sigpro1911</dc:creator>
      <dc:date>2017-09-07T22:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple geospatial lookups</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-geospatial-lookups/m-p/320920#M166163</link>
      <description>&lt;P&gt;Basically, you just have to rename them in between lookups to get them out of the way.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        | lookup geo_Example1 latitude longitude
        | rename featureId as featureId1, user as user1
        | lookup geo_Example2 latitude longitude
        | rename featureId as featureId2, user as user2
        | lookup geo_Example3 latitude longitude
        | rename featureId as featureId3, user as user3
        | eval featureId=coalesce(featureId1,featureId2,featureId3, "outsideAllGeoFences")
        | eval user=coalesce(user1, user2,user3,"unknown")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 22:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-geospatial-lookups/m-p/320920#M166163</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-08T22:18:08Z</dc:date>
    </item>
  </channel>
</rss>

