Splunk Search

Query returns zero events

anikeshp7
Path Finder

Any suggestions how the query can be improved  

This returns no events as of now.

In the lookup csv Im having UserId and Name as two columns. 

index=123  AND organizationId=00TY00000005677 AND logRecordType=ailtn (Lightning_Console) | dedup sessionKey | lookup test123.csv UserId AS userId OUTPUT UserId AS userId | table userId, sessionKey, _time

Labels (4)
0 Karma

thambisetty
SplunkTrust
SplunkTrust

What would you like to do with lookup command here?

Lookups are used to enrich event information.

you are matching userid from events and lookup and again you are trying get userid from lookup. Were you trying to get name for userId?

have a look at below video.

https://youtu.be/E3-JaZEIXPw

————————————
If this helps, give a like below.
0 Karma

anikeshp7
Path Finder

Yes @thambisetty .  Trying to display names with session_key and time

0 Karma

thambisetty
SplunkTrust
SplunkTrust
index=123 organizationId=00TY00000005677 logRecordType=ailtn (Lightning_Console) 
| stats earliest(_time) as session_start latest(_time) as session_end by sessionKey,userId 
| lookup test123.csv UserId AS userId OUTPUT Name 
| convert ctime(*time) timeformat="%d/%m/%Y %T"
————————————
If this helps, give a like below.
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!

Agentic SOC Triage: Investigating Splunk ES Notables with MCP Server and a Local LLM

The Problem: Too Many Alerts, Too Little Context Security operations teams running Splunk Enterprise Security ...

All Work and No Play? Not at .conf26! Unwind at These Evening Events

Between hands-on technical sessions, keynote reveals, and diving into live architectures, .conf26 is packed ...

Join the Hackathon at .conf26 and build a No-Code AI agent

Join us for the AI Agent Buildathon, an in-person, three-hour hands-on Hackathon where you’ll use Splunk Agent ...