Security

Find user that have latest login

florencegoh
New Member

I have a listed lookup table xxx .

When I run the below search. it shows no results.

inputlookup xxxx|fields USERNAME|search index=main sourcetype=oracle_aud user=CONN| stats count(user) by source,user

What can be the issue ?

Have check that there is no issue with the lookup table xxx |inputlookup xxxx.

Anyone can provide some good advise?

0 Karma

florencegoh
New Member

Thank it works for the one

0 Karma

HiroshiSatoh
Champion

It is how to use sub search.

index=main sourcetype=oracle_aud user=CONN [inputlookup xxxx|fields USERNAME]
⇒index=main sourcetype=oracle_aud user=CONN (USERNAME=AAA OR USERNAME=BBB OR ・・・)

index=main sourcetype=oracle_aud user=CONN [inputlookup xxxx|fields USERNAME |rename USERNAME  as query]
⇒index=main sourcetype=oracle_aud user=CONN (AAA OR BBB OR ・・・)
0 Karma

hardikJsheth
Motivator

What's the purpose of using lookup in the query? Are you fetching metadata from lookup? What's the column through which you are doing join?

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...