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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...