<?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: combine search results with external data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65000#M13070</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sigi Puchbauer helped me with this once.  This is how he suggested to solve the issue:&lt;/P&gt;

&lt;P&gt;You create an additional internal lookup that you can use to lookup internal ips&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup geoip clientip | lookup internal_geoip ip as clientip OUTPUTNEW _geo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The  internal_geoip Lookup is a  CSV File with the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ip,_geo
"10.1.1.0/24","47.11,8.15"
"10.1.2.0/24","77.11,-8.15"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In $SPLUNK_HOME/etc/system/default/transforms.conf the lookup has to be configured to make a CIDR match:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[internal_geoip]
filename = internal_geoip.csv
match_type = CIDR(ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can then create a macro that does both lookup for you to make the searches easier&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | `geoip(clientip)`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Jun 2013 06:57:21 GMT</pubDate>
    <dc:creator>chris</dc:creator>
    <dc:date>2013-06-17T06:57:21Z</dc:date>
    <item>
      <title>combine search results with external data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/64999#M13069</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have csv file with geo coordinates of my internal ip's. I dont know how to combine it with google maps. could you please provide me hints how to do that? &lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 05:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/64999#M13069</guid>
      <dc:creator>janfabo</dc:creator>
      <dc:date>2013-06-17T05:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: combine search results with external data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65000#M13070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sigi Puchbauer helped me with this once.  This is how he suggested to solve the issue:&lt;/P&gt;

&lt;P&gt;You create an additional internal lookup that you can use to lookup internal ips&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup geoip clientip | lookup internal_geoip ip as clientip OUTPUTNEW _geo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The  internal_geoip Lookup is a  CSV File with the following format:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ip,_geo
"10.1.1.0/24","47.11,8.15"
"10.1.2.0/24","77.11,-8.15"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In $SPLUNK_HOME/etc/system/default/transforms.conf the lookup has to be configured to make a CIDR match:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[internal_geoip]
filename = internal_geoip.csv
match_type = CIDR(ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can then create a macro that does both lookup for you to make the searches easier&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | `geoip(clientip)`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2013 06:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65000#M13070</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-06-17T06:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: combine search results with external data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65001#M13071</link>
      <description>&lt;P&gt;Thank you Chris for your answer.&lt;/P&gt;

&lt;P&gt;I have few transforms.conf on server and I don't know which one to use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc/apps/MAXMIND/default/transforms.conf
/opt/splunk/etc/apps/maps/default/transforms.conf
/opt/splunk/etc/apps/SplunkforSquid/default/transforms.conf
/opt/splunk/etc/system/default/transforms.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to create a dashboard, which will display the number of IP addresses if the ip address match CIDR in a csv file.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 15:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65001#M13071</guid>
      <dc:creator>janfabo</dc:creator>
      <dc:date>2013-06-18T15:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: combine search results with external data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65002#M13072</link>
      <description>&lt;P&gt;I'v just edited the answer. This file is a good place to start /opt/splunk/etc/system/local/transforms.conf. If you start developing your own apps it will be in /opt/splunk/etc/apps/&lt;MYAPP&gt;/default/transforms.conf&lt;/MYAPP&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 15:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65002#M13072</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-06-18T15:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: combine search results with external data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65003#M13073</link>
      <description>&lt;P&gt;great, it's working. Thank you, chris.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2013 21:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/combine-search-results-with-external-data/m-p/65003#M13073</guid>
      <dc:creator>janfabo</dc:creator>
      <dc:date>2013-06-18T21:38:23Z</dc:date>
    </item>
  </channel>
</rss>

