- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
metersk
Path Finder
01-27-2015
07:59 AM
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.
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chanfoli
Builder
01-27-2015
08:19 AM
Do you mean to calculate the length? If so, use the following:
your search... | eval length=len(field)
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
chanfoli
Builder
01-27-2015
08:19 AM
Do you mean to calculate the length? If so, use the following:
your search... | eval length=len(field)
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

somesoni2
Revered Legend
01-27-2015
08:17 AM
Have you checked function "len" with eval?
http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions
