<?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 to add own IP locations into the GeoLite2-City.mmdb in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412790#M118959</link>
    <description>&lt;P&gt;Thanks, but I need to put my &lt;EM&gt;own IPs&lt;/EM&gt; into the database, as explained in Customizing-Maxmind-IP-Geo-DB-for-&lt;EM&gt;Internal-Networks&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 07:27:39 GMT</pubDate>
    <dc:creator>graether</dc:creator>
    <dc:date>2018-08-20T07:27:39Z</dc:date>
    <item>
      <title>How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412788#M118957</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I applied successfully the tool at &lt;/P&gt;

&lt;P&gt;github Customizing-Maxmind-IP-Geo-DB-for-Internal-Networks&lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/threatstream/mhn/wiki/Customizing-Maxmind-IP-Geo-DB-for-Internal-Networks"&gt;https://github.com/threatstream/mhn/wiki/Customizing-Maxmind-IP-Geo-DB-for-Internal-Networks&lt;/A&gt;]&lt;/P&gt;

&lt;P&gt;to add own IPs for an important Enterprise Security Projekt.&lt;/P&gt;

&lt;P&gt;But somehow the mmdb created by&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;python csv2dat.py -w mmcity.dat mmcity GeoLiteCity-and-mynetworks.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;differs from Splunks internal GeoLite2-City.mmdb&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;&amp;gt;&amp;gt; import pygeoip, json
&amp;gt;&amp;gt;&amp;gt; geo = pygeoip.GeoIP('GeoLite2-City.mmdb')
&amp;gt;&amp;gt;&amp;gt; print json.dumps(geo.record_by_addr('182.236.164.11'), indent=4, sort_keys=True)
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "/root/mmutils/env/lib/python2.7/site-packages/pygeoip/__init__.py", line 544, in record_by_addr
    raise GeoIPError(message)
pygeoip.GeoIPError: Invalid database type, expected City
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a better method? Did I miss another conversion step?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 06:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412788#M118957</guid>
      <dc:creator>graether</dc:creator>
      <dc:date>2018-08-20T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412789#M118958</link>
      <description>&lt;P&gt;Refer to the following repository for updating MaxMind DB in Splunk:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2014/07/22/updating-the-iplocation-db.html"&gt;https://www.splunk.com/blog/2014/07/22/updating-the-iplocation-db.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.georgestarcher.com/splunk-updating-the-geoip-database/"&gt;http://www.georgestarcher.com/splunk-updating-the-geoip-database/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 07:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412789#M118958</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-20T07:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412790#M118959</link>
      <description>&lt;P&gt;Thanks, but I need to put my &lt;EM&gt;own IPs&lt;/EM&gt; into the database, as explained in Customizing-Maxmind-IP-Geo-DB-for-&lt;EM&gt;Internal-Networks&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 07:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412790#M118959</guid>
      <dc:creator>graether</dc:creator>
      <dc:date>2018-08-20T07:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412791#M118960</link>
      <description>&lt;P&gt;A quick Google search reveals that the above script creates a &lt;CODE&gt;.dat&lt;/CODE&gt; binary file and the file you used is a &lt;CODE&gt;.mmdb&lt;/CODE&gt; which is the newer version. Another quick Google search reveals that there are many tools, topics how to convert a &lt;CODE&gt;.dat&lt;/CODE&gt; file to a &lt;CODE&gt;.mmdb&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Try this &lt;A href="https://www.google.com/search?q=python+convert+mmdb+to+dat"&gt;https://www.google.com/search?q=python+convert+mmdb+to+dat&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 08:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412791#M118960</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-08-20T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412792#M118961</link>
      <description>&lt;P&gt;Thanks MuS for pointing this out!&lt;BR /&gt;
Somehow this &lt;/P&gt;

&lt;P&gt;&lt;A href="https://blog.maxmind.com/2015/09/29/building-your-own-mmdb-database-for-fun-and-profit/"&gt;https://blog.maxmind.com/2015/09/29/building-your-own-mmdb-database-for-fun-and-profit/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;looks promising, and I'll give it a try.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 09:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412792#M118961</guid>
      <dc:creator>graether</dc:creator>
      <dc:date>2018-08-20T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412793#M118962</link>
      <description>&lt;P&gt;Hi @graether, we're trying to do the same with our internal IP's. Did you get any progress with the .mmdb file?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 14:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412793#M118962</guid>
      <dc:creator>tiago_comasseto</dc:creator>
      <dc:date>2018-11-09T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add own IP locations into the GeoLite2-City.mmdb</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412794#M118963</link>
      <description>&lt;P&gt;Hello Tiago,&lt;/P&gt;

&lt;P&gt;I did not need to edit the file .mmdb anymore due to a project scope change. I've started with &lt;BR /&gt;
&lt;A href="https://blog.maxmind.com/2015/09/29/building-your-own-mmdb-database-for-fun-and-profit/"&gt;https://blog.maxmind.com/2015/09/29/building-your-own-mmdb-database-for-fun-and-profit/&lt;/A&gt;&lt;BR /&gt;
but was not so straightforward. So unfortunately no news from my side.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 09:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-own-IP-locations-into-the-GeoLite2-City-mmdb/m-p/412794#M118963</guid>
      <dc:creator>graether</dc:creator>
      <dc:date>2018-11-12T09:12:25Z</dc:date>
    </item>
  </channel>
</rss>

