Deployment Architecture

Does the ip_group_city.csv need to be pushed to Indexers also?

JohnB
Explorer

I haven't gotten it to work. It looks like it wants the ip_group_city.csv on all the indexers.

I keep getting this when I run a search (source="/apps/www-logfile/access/today" | geoip x_client_ip)

[SplunkIndexer] [Errno 2] No such file or directory: '/apps/splunk/etc/apps/maps/lib/ip_group_city.csv'

Any suggestions? I can't push this out to every indexer.

-John

1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

Yes, the lib subdirectory of apps is not replicated for distributed search. Also, this app refers to the absolute path $SPLUNK_HOME/etc/apps/maps/lib/..., which isn't where replicated apps are placed for distributed search.

Since the lib directory is large (over 100MB), I wouldn't recommend that the app author make the app replicate fully (as that will cause search slowdown when replication takes place). Instead I'd probably change the search to include the | localop command before the | geoip command to force the command to run on the search head rather than the indexers.

View solution in original post

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

Yes, the lib subdirectory of apps is not replicated for distributed search. Also, this app refers to the absolute path $SPLUNK_HOME/etc/apps/maps/lib/..., which isn't where replicated apps are placed for distributed search.

Since the lib directory is large (over 100MB), I wouldn't recommend that the app author make the app replicate fully (as that will cause search slowdown when replication takes place). Instead I'd probably change the search to include the | localop command before the | geoip command to force the command to run on the search head rather than the indexers.

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...