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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...