Splunk Enterprise

SSL Certificate

Amiir-89
Engager

Hey All
I have downloaded the app SSL Certificate lookup

I using this search to see information about the certificate, but it gives me no information.

 

| makeresults
| eval dest="example.com"
| mvexpand dest
| lookup sslcert_lookup dest OUTPUT ssl_subject_common_name ssl_subject_alt_name ssl_end_time ssl_validity_window
| eval ssl_subject_alt_name = split(ssl_subject_alt_name,"|")
| eval days_left = round(ssl_validity_window/86400)

 



the domain is using port 8441

When i add for example splunk.com it works but not the one i want to see.

What is wrong in the search, or what should i add?

Thanks in advance

Labels (1)
0 Karma
1 Solution

aaryan
Engager

Please try this if you want to add the port.  

| makeresults
| eval dest="example.com", dest_port=8441
| lookup sslcert_lookup dest dest_port OUTPUT ssl_subject_common_name ssl_subject_alt_name ssl_end_time ssl_validity_window
| eval ssl_subject_alt_name = split(ssl_subject_alt_name,"|")
| eval days_left = round(ssl_validity_window/86400)

View solution in original post

aaryan
Engager

Please try this if you want to add the port.  

| makeresults
| eval dest="example.com", dest_port=8441
| lookup sslcert_lookup dest dest_port OUTPUT ssl_subject_common_name ssl_subject_alt_name ssl_end_time ssl_validity_window
| eval ssl_subject_alt_name = split(ssl_subject_alt_name,"|")
| eval days_left = round(ssl_validity_window/86400)
Get Updates on the Splunk Community!

Best Strategies to Optimize Observability Costs

 Join us on Tuesday, May 6, 2025, at 11 AM PDT / 2 PM EDT for an insightful session on optimizing ...

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...