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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...

Global Splunk User Group Events: May + June 2026

Your Splunk Community Awaits: Discover Upcoming User Group Events Worldwide    Staying ahead in the fast-paced ...