All Apps and Add-ons

how can I intergrity vector map with maxmind GeoIP database ?

perlish
Communicator

how can I intergrity vector map with maxmind GeoIP database ?
Thank you !

Tags (3)
0 Karma
1 Solution

ziegfried
Influencer

The example in the app description already shows how to integrate it with the geoip command (which uses the maxmind database).

<module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="true">
    <param name="search">sourcetype=access_combined clientip=* | geoip clientip</param>
    <param name="earliest">-24h@h</param>
    <module name="VectorMap">
        <param name="mapType">world</param>
        <param name="field">clientip_country_code</param>
        <param name="backgroundColor">#333333</param>
    </module>
</module>

View solution in original post

ziegfried
Influencer

It can be done by copying the module library (eg. mmap.so) from a native installation of python to $SPLUNK_HOME/lib/python*. Although I added this option, it probably does not provide a huge performance benefit, since Splunk's lookup mechanism already optimizes a lot.

ziegfried
Influencer

The example in the app description already shows how to integrate it with the geoip command (which uses the maxmind database).

<module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="true">
    <param name="search">sourcetype=access_combined clientip=* | geoip clientip</param>
    <param name="earliest">-24h@h</param>
    <module name="VectorMap">
        <param name="mapType">world</param>
        <param name="field">clientip_country_code</param>
        <param name="backgroundColor">#333333</param>
    </module>
</module>

perlish
Communicator

Thank you very much!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...