Splunk Search

How to assign field name area_code to first 3 digits in voip logs and geolocate based on field?

hartfoml
Motivator

My voip logs have a format of xxxxxxxxxx 10 digit number.

Two questions:

How do I assign a field name of "area_code" to the first 3 digits of the number?

How do I do a geolocate on the area_code?

Thanks in advance for your help

Tags (2)
1 Solution

somesoni2
Revered Legend

somesoni2
Revered Legend

For first one you can use calculated fields.
http://docs.splunk.com/Documentation/Splunk/6.1.2/Knowledge/definecalcfields

May be this one for the second

http://apps.splunk.com/app/1515/

Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...