Splunk Search

Searching Splunk

anamolous86
Engager

So, I have just been introduced to this tool through my work. I had a question about how to link some search criteria. What I would like my search to do is search first by an IP address that I input, then link that IP address to a username, and finally give me a log of their activity within plus and minus two hours.
Thanks in advance!

Tags (2)
0 Karma
1 Solution

alanfinlay
Path Finder

Mapping userid to ip address is required so you need to determine how to get that data. You could perhaps monitor DHCP server logs. You could use lookup table - see Manager -> Lookups and have the mapping defined in a file, or you could have the mapping stored in a Database and use the DBConnect app.

Once you have that mapping you can build a search on the activity data based on userid from an input of ip address. I am not sure what you mean by plus or minus 2 hours. Do you input a time as well? Why not just specify a time range in the search?

0 Karma

ChrisG
Splunk Employee
Splunk Employee

anamolous86
Engager

Ah, great! The manual is going to be most helpful for me. Thank you!

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...