Splunk Search

How to calculate the total number of words in a sentence ?

anjanikumar
Engager

The end result has to be like this

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Try this. It assumes you've already extracted the sentence into the field "sentence".

... | eval count=mvcount(split(sentence," ")) | ...
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...