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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...