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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...