<?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 lookup file to update field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-file-to-update-field-value/m-p/265824#M176847</link>
    <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;
My requirement is, using client ip's need to display Country with geomap. Here my concern is my ip's private ip's and doesnt have country value. Something USA, India, China. I got some info from my netwrok team, saying these ip's are coming from these countries like that. For that data, I have created lookup file (format of csv) which contains c_ip, State, Location and Country. Now using query I wanted to update Country value which is there in iis or displaying purpose.&lt;/P&gt;

&lt;P&gt;index=default sourcetype=iis|iplocation c_ip| geostats count by Country&lt;/P&gt;

&lt;P&gt;Here by default Country field is empty.&lt;/P&gt;

&lt;P&gt;Created Lookup table&lt;/P&gt;

&lt;P&gt;|inputlookup geo_sample_ip_countries.csv&lt;/P&gt;

&lt;P&gt;here I will get &lt;/P&gt;

&lt;P&gt;c_ip                    State           Location         Country&lt;BR /&gt;
10.92.32.10 XXXXXXX         XXXXX           India&lt;/P&gt;

&lt;P&gt;Now I wanted to display Country geomap based on client ip (c_ip).&lt;/P&gt;

&lt;P&gt;I have tried using join query, it's not worked as expectations.&lt;/P&gt;

&lt;P&gt;Please suggest me on this.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:53:03 GMT</pubDate>
    <dc:creator>guruwells</dc:creator>
    <dc:date>2020-09-29T10:53:03Z</dc:date>
    <item>
      <title>Using lookup file to update field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-file-to-update-field-value/m-p/265824#M176847</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;
My requirement is, using client ip's need to display Country with geomap. Here my concern is my ip's private ip's and doesnt have country value. Something USA, India, China. I got some info from my netwrok team, saying these ip's are coming from these countries like that. For that data, I have created lookup file (format of csv) which contains c_ip, State, Location and Country. Now using query I wanted to update Country value which is there in iis or displaying purpose.&lt;/P&gt;

&lt;P&gt;index=default sourcetype=iis|iplocation c_ip| geostats count by Country&lt;/P&gt;

&lt;P&gt;Here by default Country field is empty.&lt;/P&gt;

&lt;P&gt;Created Lookup table&lt;/P&gt;

&lt;P&gt;|inputlookup geo_sample_ip_countries.csv&lt;/P&gt;

&lt;P&gt;here I will get &lt;/P&gt;

&lt;P&gt;c_ip                    State           Location         Country&lt;BR /&gt;
10.92.32.10 XXXXXXX         XXXXX           India&lt;/P&gt;

&lt;P&gt;Now I wanted to display Country geomap based on client ip (c_ip).&lt;/P&gt;

&lt;P&gt;I have tried using join query, it's not worked as expectations.&lt;/P&gt;

&lt;P&gt;Please suggest me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:53:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-file-to-update-field-value/m-p/265824#M176847</guid>
      <dc:creator>guruwells</dc:creator>
      <dc:date>2020-09-29T10:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using lookup file to update field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-lookup-file-to-update-field-value/m-p/265825#M176848</link>
      <description>&lt;P&gt;Try this. You will need to insure the format for Country is the same as the one returned by &lt;CODE&gt;iplocation&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=default sourcetype=iis |lookup geo_sample_ip_countries.csv c_ip AS c_ip OUTPUT Country | geostats count by Country
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-lookup-file-to-update-field-value/m-p/265825#M176848</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-06T12:09:33Z</dc:date>
    </item>
  </channel>
</rss>

