Splunk Search

splunk internal logs, precisions on the "clientip" field

mabonjean
Explorer

Hi,

I want to list all Deployment client on a dashboard in my Search Head with the following request:
index=_internal host="my Deployment Server" | dedup clientip |table clientip [...]

In the result, I have the list of my Deployment Client, The Deployment Server, localhost loop and serveral proxy IP.

The fowarding management of theses proxies aren't in my cluster then it's my Deployment Server which manage them. They are fully independant of my client pool and I don't collect their logs.
In the fowarding management menu, I don't see these clients.

What exactly contains the fields "clientip" of Splunk internal logs ?
And why I see theses proxy address in my Deployment Server clientip ? any idea ?

Thank you.
Best regards

Tags (1)
0 Karma
1 Solution

p_gurav
Champion

This may help:

index=_internal host=<yourDS>  POST /services/broker/phonehome/connection | 
 rex field=uri "_(?<fwd_name>[^_]+)_(?<fwd_id>[-0-9A-Z]+)$" | 
 stats latest(eval(now()-_time)) as Latest earliest(eval(now()-_time)) as Earliest by fwd_name fwd_id clientip |
 rename clientip as fwd_ip

View solution in original post

p_gurav
Champion

This may help:

index=_internal host=<yourDS>  POST /services/broker/phonehome/connection | 
 rex field=uri "_(?<fwd_name>[^_]+)_(?<fwd_id>[-0-9A-Z]+)$" | 
 stats latest(eval(now()-_time)) as Latest earliest(eval(now()-_time)) as Earliest by fwd_name fwd_id clientip |
 rename clientip as fwd_ip

mabonjean
Explorer

Thanks @p_gurav,
Your request is really helpfull.
With it, I can easily see what I want.

0 Karma

p_gurav
Champion

Great!! Please accept the answer if its helpful!!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

To see where the client IP addresses are coming from, try this search.

index=_internal TERM(clientip address goes here)

The results returned will show the host and source of the events as well as details of the event that sent the IP address.

---
If this reply helps you, Karma would be appreciated.
0 Karma

mabonjean
Explorer

I don't a forgotten elements in my question.
I select the Deployment Server as host in my request.

When I list all clientip, I have more client than I have in the Deployment Server.

Ma main question is : what is "clientip" ? Which data does it contains ?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

When you run the query in my original comment you'll get events containing the client IP addresses. Close examination of the events should tell you why they're showing up.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...