Splunk Enterprise Security

How to create a table to display different users who logged in from same clientip?

Win
Explorer

Hi, I am a student and new to Splunk. I really need help creating a table like this:

The goal is to detect different users that authenticated using same clientIP, different httpmethod, different status codes, and its equivalent sessionid. I used the below query, which yielded no results.

 

index=* sourcetype=* httpmethod=* httpstatus=*
| table clientip,httpmethod,statuscode,sessionid
| eval mv_field = clientip.”,”.httpmethod”,”.statuscode”,”.sessionid
| makemv delim=”,” mv_field
| table mv_field

 




clientIP

HTTPMETHOD

STATUS CODE

SESSION

clientIP 1

GET
POST
HEAD

200s
400s
300s
500s

sessionid

clientIP 2

POST

400s
200s

sessionid

clientIP 3

GET
POST

200S

sessionid



Labels (1)
Tags (2)
0 Karma
1 Solution

johnhuang
Motivator

Based on the example output you provided:

 

index=* sourcetype=* httpmethod=* httpstatus=*
| stats values(*) AS * BY clientip
| table clientip,httpmethod,statuscode,sessionid

 

View solution in original post

Win
Explorer

@johnhuang . Thank you. This worked perfectly as I wanted

johnhuang
Motivator

Based on the example output you provided:

 

index=* sourcetype=* httpmethod=* httpstatus=*
| stats values(*) AS * BY clientip
| table clientip,httpmethod,statuscode,sessionid

 

Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...