Getting Data In

Remove rows who don't value value in it.

rahul2gupta
Path Finder

Hi,

We have been asked to design a query which consists of Username, location and last logon time of that user. However, I want to remove those rows who don't have values in it. Can someone please assist me on this.

rahul2gupta_0-1625024524972.png

 

Regards,

Rahul

Labels (2)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@rahul2gupta 

Try

YOUR_SEARCH | search location=* and lastlogon=*

 

OR
 

YOUR_SEARCH | where isnotnull(location)  AND  isnotnull(lastlogon)

 

Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

View solution in original post

0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@rahul2gupta 

Try

YOUR_SEARCH | search location=* and lastlogon=*

 

OR
 

YOUR_SEARCH | where isnotnull(location)  AND  isnotnull(lastlogon)

 

Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma

rahul2gupta
Path Finder

Thank you @kamlesh_vaghela . It worked.

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...