Monitoring Splunk

monitor universal forwarder agent license expiry date

kannu
Communicator

Dear splunkers ,

I want to monitor my universal forwarder agent license expiry date .

I am able to monitor it for linux system using scripted input on "openssl x509 -in /opt/splunkforwarder/etc/auth/server.pem -noout -enddate"

But how to do the same with windows system , please help

Thanks
Manish Kumar

Tags (1)
0 Karma
1 Solution

harsmarvania57
Ultra Champion

Hi,

You can run below command

"C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" cmd openssl x509 -in "C:\Program Files\SplunkUniversalForwarder\etc\auth\server.pem" -noout -enddate

View solution in original post

0 Karma

harsmarvania57
Ultra Champion

Hi,

You can run below command

"C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" cmd openssl x509 -in "C:\Program Files\SplunkUniversalForwarder\etc\auth\server.pem" -noout -enddate
0 Karma

kannu
Communicator

@harsmarvania57 And what would be the stanga settings for this in inputs.conf

Are you asking me to run this in powershell

0 Karma

harsmarvania57
Ultra Champion

You can create script and script execute that command and then create scripted input stanza in inputs.conf

I ran above command in "Command Prompt" with Administrative privileges.

0 Karma

harsmarvania57
Ultra Champion

If you want to run in powershell please try same command starting with &

& "C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" cmd openssl x509 -in "C:\Program Files\SplunkUniversalForwarder\etc\auth\server.pem" -noout -enddate
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...