SPLK-1001 Using Fields and Lookups Practice Question
A Splunk admin wants to enrich web server logs with geographic location data based on IP addresses. Which approach should they use?
⚠ Common exam trap
Test-takers frequently confuse the purpose of the rex command (extraction) with enrichment, or assume that IP addresses contain embedded geographic data that can be parsed with regex, when in reality IP geolocation requires an external mapping database accessed via a lookup.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Configure a lookup definition and use lookup command
Splunk's lookup command, combined with a lookup definition that references a geographic IP-to-location database (such as MaxMind GeoLite2), allows the admin to enrich web server logs with fields like city, country, and coordinates based on the client IP address. This is the standard, efficient approach for IP geolocation enrichment in Splunk, as it leverages pre-built external data without requiring custom parsing or calculations.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Configure a lookup definition and use lookup command
Why this is correct
lookup command enriches data with external sources like GeoIP.
- ✗
Use rex to extract location from the IP
Why it's wrong here
rex extracts fields using regex, not lookup.
- ✗
Use an eval command to calculate coordinates
Why it's wrong here
eval cannot lookup external data.
- ✗
Use fields command to add location
Why it's wrong here
fields only selects existing fields.
Go deeper
Related to this question
About these practice questions
Courseiva writes every SPLK-1001 question from scratch — 502 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SPLK-1001 practice question is part of Courseiva's free Splunk certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SPLK-1001 exam.