Monitoring Splunk

Netstat time of Established connections between LocalAddress/Port and ForeignAddress/Port

robmillers
Engager

Source is the Splunk NIX netstat output which typically includes details:
LocalAddress ForeignAddress Statue
tcp 0 0 10.X.X.X:7443 10.X.X.X:18068 ESTABLISHED
tcp 0 0 10.X.X.1:7443 10.X.X.2:18069 ESTABLISHED
tcp 0 0 10.X.X.1:7443 10.X.X.3:18070 ESTABLISHED
tcp 0 0 10.X.X.1:7443 10.X.X.4:18071 ESTABLISHED

Goal is to measure how long each LocalAddress and ForeignAddress has been in a established state.

So from the first time in the event stream that the two combinations are seen till the last time they are seen.

And output similar to
LocalAddress ForeignAddress Duration
10.X.X.1:7443 10.X.X.4:18068 30 seconds

Tried different ways to correlate the two fields but have not been able to get a duration time between the two combinations.

Any input on getting the results would be appreciated.

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...