Splunk Search

Counting number of characters in a Splunk field

metersk
Path Finder

Is it possible to count number of characters in a splunk field? I can only seem to find a way to count specific instances of a character.

Tags (2)
0 Karma
1 Solution

chanfoli
Builder

Do you mean to calculate the length? If so, use the following:

your search... |  eval length=len(field)

View solution in original post

chanfoli
Builder

Do you mean to calculate the length? If so, use the following:

your search... |  eval length=len(field)

somesoni2
Revered Legend
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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