vRLI is up and running, you're collecting vCenter events, tasks and alarms, as well as ESXi Host logs. In addition, vRLI is receiving logs from F5 BIG-IP, Citrix NetScaler, NetApp FAS, and more. Let's use it to capture Certificates that have expired and Certificates that will be expiring.
A quick look at my environment shows the following entries, in this case coming from F5 BIG-IP.
![](https://static.wixstatic.com/media/b4065e_ae2d1b90b469403f89e37aa32ecdc14a~mv2.png/v1/fill/w_980,h_440,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/b4065e_ae2d1b90b469403f89e37aa32ecdc14a~mv2.png)
Remember that the vRLI query language uses the logical "and" operator for phrases, in this case it looks for all logs with the string "certificate" and "expired". The search for "certificate will expire" looks like this:
![](https://static.wixstatic.com/media/b4065e_67f2925cc8c34e7b85eba3d5b826e2d3~mv2.png/v1/fill/w_980,h_262,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/b4065e_67f2925cc8c34e7b85eba3d5b826e2d3~mv2.png)
Most often I will start with one word searches and narrow it down from there, so as not to miss anything, but explore what works best for you. vRLI also supports REGEX, so if you're more comfortable using REGEX, explore those options. REGEX can be used via the ADD FILTER option. A search for all Certificates containing the word "Entrust" and matching certain REGEX might look something like this.
![](https://static.wixstatic.com/media/b4065e_cfd08fa84ac641f6bd5cb8a858904467~mv2.png/v1/fill/w_980,h_282,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/b4065e_cfd08fa84ac641f6bd5cb8a858904467~mv2.png)
Now that you've found what you're looking for, it's important that you be notified of it. You can create an Alert for these by clicking the Create Alert icon top right.
![](https://static.wixstatic.com/media/b4065e_2b087f76d4c44932b09aa5dfeea73f60~mv2.png/v1/fill/w_980,h_758,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/b4065e_2b087f76d4c44932b09aa5dfeea73f60~mv2.png)
The vRLI Alert definition as configured here will generate an email and send an Alert to vROps. You can customize the email payload as documented here. I've adjusted mine to contain this as part of the Description: Entrust Certificate Expiring on ${hostname}. Renew immediately! You can include only one variable in your Description. The subsequent email will look something like this:
![](https://static.wixstatic.com/media/b4065e_bb1277a9b2444990a94c79adf41faa99~mv2.png/v1/fill/w_956,h_523,al_c,q_90,enc_auto/b4065e_bb1277a9b2444990a94c79adf41faa99~mv2.png)
To insure the ${hostname} field is populated in your email, you could require it in the log entry. Your query would look something like this.
![](https://static.wixstatic.com/media/b4065e_c61cc87f91274e5e9df5078438dd85c9~mv2.png/v1/fill/w_980,h_330,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/b4065e_c61cc87f91274e5e9df5078438dd85c9~mv2.png)
The Alert sent to vROps will look something like this:
![](https://static.wixstatic.com/media/b4065e_fc700346139f44b488d730883ba1a062~mv2.png/v1/fill/w_980,h_599,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/b4065e_fc700346139f44b488d730883ba1a062~mv2.png)
Next, let's generate a Dashboard we can use to quickly see our expired and expiring Certificates. Go to Interactive Analytics, run your query, then click the Add current query to dashboard top right.
![](https://static.wixstatic.com/media/b4065e_1e26c0e9aaaa4e8bb6e464cfb768407e~mv2.png/v1/fill/w_980,h_355,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/b4065e_1e26c0e9aaaa4e8bb6e464cfb768407e~mv2.png)
Adjust the name, select the Dashboard you'd like to add it to or create a new one, choose the Widget Type, then click ADD. I've done this for both expired and expiring certificates to get the following.
![](https://static.wixstatic.com/media/b4065e_5637a5fca310438e95fbca22f2f81f97~mv2.png/v1/fill/w_980,h_302,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/b4065e_5637a5fca310438e95fbca22f2f81f97~mv2.png)
You now have a go-to Dashboard for Certificates, Alerts going to vROps for them, as well as notifications via email. You'll probably notice some F5 related fields in the dashboard, these are extracted fields, we'll explore them more in the next blog. For more information on vRLI and a trial, go here!
Comentarios