<?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 Re: How do you match extracted CSV and index value and use geo values to visualize a map? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459625#M129714</link>
    <description>&lt;P&gt;In your query, you are not correlating your CSV data with the original indexed data. You may need to do a &lt;CODE&gt;stats&lt;/CODE&gt; or a &lt;CODE&gt;join&lt;/CODE&gt; to combine the indexed data with your CSV data.&lt;/P&gt;

&lt;P&gt;Alternatively, have you tried using your CSV as a lookup?&lt;BR /&gt;
&lt;CODE&gt;index=s1 | lookup cosco_mapping.csv city AS office OUTPUT lattitude longitude&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 06:43:24 GMT</pubDate>
    <dc:creator>sduff_splunk</dc:creator>
    <dc:date>2018-11-06T06:43:24Z</dc:date>
    <item>
      <title>How do you match extracted CSV and index value and use geo values to visualize a map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459624#M129713</link>
      <description>&lt;P&gt;I have &lt;CODE&gt;index =s1&lt;/CODE&gt; with a field called city, and an uploaded  &lt;CODE&gt;CSV&lt;/CODE&gt; file with fields like "office", "latitude" and "longitude". I wanted to find matching values where &lt;CODE&gt;city == office&lt;/CODE&gt; and then use input lookup's &lt;STRONG&gt;&lt;EM&gt;latitude&lt;/EM&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;longitude&lt;/EM&gt;&lt;/STRONG&gt; to visualize a map.&lt;/P&gt;

&lt;P&gt;My search now is like this but it's not working. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=s1 | append [| inputlookup cosco_mapping.csv | rex field=formatted_address "^(?&amp;lt;city&amp;gt;[^,]++)" | fields city, latitude, longitude ]  |  rex field=group_name "^(.*[\\\\])(?&amp;lt;office&amp;gt;.+)" | table office, city, latitude, longitude |   where office==city  | geostats latfield=latitude longfield=longitude count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does anyone know how to solve this? Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 03:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459624#M129713</guid>
      <dc:creator>dannili</dc:creator>
      <dc:date>2018-11-06T03:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you match extracted CSV and index value and use geo values to visualize a map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459625#M129714</link>
      <description>&lt;P&gt;In your query, you are not correlating your CSV data with the original indexed data. You may need to do a &lt;CODE&gt;stats&lt;/CODE&gt; or a &lt;CODE&gt;join&lt;/CODE&gt; to combine the indexed data with your CSV data.&lt;/P&gt;

&lt;P&gt;Alternatively, have you tried using your CSV as a lookup?&lt;BR /&gt;
&lt;CODE&gt;index=s1 | lookup cosco_mapping.csv city AS office OUTPUT lattitude longitude&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 06:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459625#M129714</guid>
      <dc:creator>sduff_splunk</dc:creator>
      <dc:date>2018-11-06T06:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you match extracted CSV and index value and use geo values to visualize a map?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459626#M129715</link>
      <description>&lt;P&gt;Thanks for your response.This worked!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 08:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-match-extracted-CSV-and-index-value-and-use-geo/m-p/459626#M129715</guid>
      <dc:creator>dannili</dc:creator>
      <dc:date>2018-11-06T08:21:53Z</dc:date>
    </item>
  </channel>
</rss>

