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
SplunkTrust
SplunkTrust
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...