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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

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 ...