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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...