Splunk Search

Please help me understand Eval function query

aaa2324
Explorer
  • Please help to understand the logic of below query 
  • eval count=if(isnull(count), -1,count)
Labels (1)
0 Karma

JacekF
Path Finder

If count value is null set count value to -1, use the count value otherwise (i.e. if count value is not null do not change it).

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

This is the same as 

| fillnull value=-1 count

or 

| eval count=coalesce(count,-1)

 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...