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!

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...