Splunk Search

match and count in numerical from events

adabud6267
Explorer

Hello,

I have a CSV file containing two columns URL and IP. I'm using it to retrieve only events were a match is found:

index=sec_ssl host="app-ssl-1" OR host="app-ssl-2" AND dest_port=443
    [| inputlookup https_de | rename URL as domain, IP as dest_ip | fields domain, dest_ip]
| stats count as Connections by domain, dest_ip, dest_port 
| sort - Connections 
| head 10

This works apparently:

alt text

But I'd like to extend it a bit. Each event contains a field cipher suite with the cipher suite used for the connection e.g. TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA ...
I have another CSV lookup file that looks like this:

alt text

How could I possibly take the Connections count for a given domain + dest+ip pair and get another two columns to provide the ammount of connections that could be decrypted Inline (it should always be equal to Connections) and Passive-Tap should only contain events where the cpiher suite match yes under passive-tap column.

Any hints are more than appreciated!

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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