Splunk Search

ASA searching for current open connections that have been Built but with no teardown

FC50
Path Finder

Hello,

I'm pretty new to SPLUNK and I'm looking for help trying to find ASA open connections between two endpoints.

Most connections I search for have a 'Built' action and then some time after a corresponding 'teardown' action. I'm looking for those connections that have the 'Built' action  but not the 'teardown' action.

The basic search I have pulls down all of the connections between the two:. 

index="cisco" src_ip="10.55.45.12" dest_ip="10.65.45.20" dest_port=445

Is there a way to expand this search to find  these open connections based on the absence of a teardown?  

Is there a way to 

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

I've tweaked my answer to only look for allowed and teardown actions and then leave only those sessions with the most recent action of "allowed".

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

View solution in original post

FC50
Path Finder

Cool, thanks. That seems to have done the trick

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Here's one way to do that.

index="cisco" src_ip="10.55.45.12" dest_ip="10.65.45.20" dest_port=445
| dedup session,action
| where action="built"

It assumes there is a field called "session" that uniquely identifies a connection between the two points.  Change that to match whatever you have in your data.

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

FC50
Path Finder

Thanks for the response but no joy unfortunately.

It's still bringing up the thousands of results with the allowed action (I mistakenly called it built earlier) , and not showing just the few that only had the allowed action and not a corresponding teardown.

The allowed and teardown options do share a field called 'session_id' which is a long number

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I've tweaked my answer to only look for allowed and teardown actions and then leave only those sessions with the most recent action of "allowed".

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

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...