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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...