<?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: iplocation command usage in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547609#M5570</link>
    <description>&lt;P&gt;Yeah, just a couple things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The limits.conf will have to be different between the SHs and the Indexers since the indexers will have the app with limits.conf in ../etc/slave-apps while the search head will have it in .../etc/apps (assuming you dont have a search head cluster)&lt;/LI&gt;&lt;LI&gt;Also make sure you remove/rename the limits.conf file in /opt/splunk/etc/system/local if present.&lt;/LI&gt;&lt;LI&gt;You can also include a script in your app you deploy to auto-update the DB on your indexers. You may have to set up a cron to run it though.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope that helped!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 12:57:23 GMT</pubDate>
    <dc:creator>96nick</dc:creator>
    <dc:date>2021-04-12T12:57:23Z</dc:date>
    <item>
      <title>iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547178#M5552</link>
      <description>&lt;P&gt;we are using&amp;nbsp;iplocation command&amp;nbsp;&lt;/P&gt;&lt;P&gt;i see that the&amp;nbsp;GeoLite2-City.mmdb file is since 2019&amp;nbsp;&lt;/P&gt;&lt;P&gt;[splunk@ilissplsh01 bin]$ ll /opt/splunk/share/GeoLite2-City.mmdb&lt;BR /&gt;-r--r--r-- 1 splunk splunk 60695934 Dec 18 2019 /opt/splunk/share/GeoLite2-City.mmdb&lt;BR /&gt;[splunk@ilissplsh01 bin]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have downloaded the file from&amp;nbsp;&lt;A href="https://www.maxmind.com/en/accounts/532070/geoip/downloads" target="_blank" rel="noopener"&gt;https://www.maxmind.com/en/accounts/532070/geoip/downloads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also I see that there is&amp;nbsp;&lt;SPAN&gt;Geolocation Lookup for Splunk&amp;nbsp;&lt;/SPAN&gt;APP (&lt;A href="https://splunkbase.splunk.com/app/4102/#/overview" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/4102/#/overview&lt;/A&gt;) to allow&amp;nbsp;iplocation&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the recommended way to work with the command&amp;nbsp; ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:11:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547178#M5552</guid>
      <dc:creator>rayar</dc:creator>
      <dc:date>2021-04-08T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547186#M5553</link>
      <description>&lt;P&gt;If you're talking about just updating the file, you're on the right track.&amp;nbsp;Do you have a distributed environment or a single instance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Single Instance:&lt;/P&gt;&lt;P&gt;You can download the '&lt;A href="https://splunkbase.splunk.com/app/5482/" target="_self"&gt;Auto Update Maxmind Database&lt;/A&gt;' app on Splunkbase. It creates a Splunk command that downloads the newest DB for you after you put in your license key. Works well enough if you have a single instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distributed Environment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you have indexers, search heads, etc. you will have to replace the mmdb file on your indexers as well. This is because &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/SearchReference/Iplocation" target="_self"&gt;iplocation&lt;/A&gt; is a distributable streaming command. The app I listed above won't do that, and it also doesn't easily support using a paid database from Maxmind if you choose to upgrade. In my environment I created an app that has a bash script, the database, and limits.conf. The bash script wgets the database (scheduled via cron), and limits.conf changes the location of the database to my app.&amp;nbsp; You can view more information on that process&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/updating-the-iplocation-db.html" target="_self"&gt;here in a Splunk Blog post.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helped!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 13:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547186#M5553</guid>
      <dc:creator>96nick</dc:creator>
      <dc:date>2021-04-08T13:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547206#M5554</link>
      <description>&lt;P&gt;thanks a lot&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have a distributed env and we are using deployment server&amp;nbsp;&lt;/P&gt;&lt;P&gt;can't I distribute the file using it&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 14:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547206#M5554</guid>
      <dc:creator>rayar</dc:creator>
      <dc:date>2021-04-08T14:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547220#M5559</link>
      <description>&lt;P&gt;You can distribute the app with the deployer (the SH kind, not the deployment server that connects with your forwarders) if you have a search head cluster. If you only have 1 search head then you wouldn't have a deployer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have to set up a cron on the SHs manually (or by using a system management tool if you have one to set the cron) to pull down the database, something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Gets the database from maxmind at 7am every Wednesday&lt;/P&gt;&lt;P&gt;0 7 * * * 3 /opt/splunk/.../&amp;lt;your app&amp;gt;/bin/getdatabase.sh&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maxmind updates the database on Tuesday, so I would pull the database down on Wednesday since it's unknown exactly when on Tuesday they push an update.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you have indexers you'll have to replace those mmdb files as well. The same concept can be applied to the indexers (some script + cron).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 15:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547220#M5559</guid>
      <dc:creator>96nick</dc:creator>
      <dc:date>2021-04-08T15:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547561#M5568</link>
      <description>&lt;P&gt;I have installed the&amp;nbsp;Auto Update MaxMind Database on the SH (&lt;A href="https://splunkbase.splunk.com/app/5482/#/details" target="_blank"&gt;https://splunkbase.splunk.com/app/5482/#/details&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;GeoLite2-City.mmdb file will be copied to deployment server and deployed to all indexers&amp;nbsp;&lt;/P&gt;&lt;P&gt;also I will create limits.conf on both SH and indexers with the below&amp;nbsp;&lt;/P&gt;&lt;P&gt;splunk@ilisspldepl01 local]$ cat limits.conf&lt;BR /&gt;[iplocation]&lt;BR /&gt;db_path = /opt/splunk/etc/slave-apps/AM_maxmind_indexers/local/GeoLite2-City.mmdb&lt;BR /&gt;[splunk@ilisspldepl01 local]$&lt;/P&gt;&lt;P&gt;is it the right way or I better overwrite the /opt/splunk/share/GeoLite2-City.mmdb on the indexers and the SH ?&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 05:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547561#M5568</guid>
      <dc:creator>rayar</dc:creator>
      <dc:date>2021-04-12T05:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547609#M5570</link>
      <description>&lt;P&gt;Yeah, just a couple things:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The limits.conf will have to be different between the SHs and the Indexers since the indexers will have the app with limits.conf in ../etc/slave-apps while the search head will have it in .../etc/apps (assuming you dont have a search head cluster)&lt;/LI&gt;&lt;LI&gt;Also make sure you remove/rename the limits.conf file in /opt/splunk/etc/system/local if present.&lt;/LI&gt;&lt;LI&gt;You can also include a script in your app you deploy to auto-update the DB on your indexers. You may have to set up a cron to run it though.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope that helped!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 12:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547609#M5570</guid>
      <dc:creator>96nick</dc:creator>
      <dc:date>2021-04-12T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation command usage</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547612#M5571</link>
      <description>&lt;P&gt;The limits.conf are different on indexers and SH&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;we don't have&amp;nbsp;/opt/splunk/etc/system/local/limits.conf&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the updated file will be copied with cron to the deployment server&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot , will test it during the week&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/iplocation-command-usage/m-p/547612#M5571</guid>
      <dc:creator>rayar</dc:creator>
      <dc:date>2021-04-12T13:02:11Z</dc:date>
    </item>
  </channel>
</rss>

