<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Licence expiration date - Alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151766#M2467</link>
    <description>&lt;P&gt;I think this is a good start:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| REST /services/licenser/licenses/ 
| eval now=now()
| eval expire_in_days=(expiration_time-now)/86400
| eval expiration_time=strftime(expiration_time, "%Y-%m-%d  %H:%M:%S")
| table group_id expiration_time expire_in_days
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That give you the expiration in days, so you just have to setup the alert on expire_in_days&amp;lt;90, 30 or 5.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:47:04 GMT</pubDate>
    <dc:creator>bgaignon</dc:creator>
    <dc:date>2020-09-28T18:47:04Z</dc:date>
    <item>
      <title>Licence expiration date - Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151765#M2466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I would like to create an alert at 90, 30 and 5 days before the expirationte of my enterprise licence.&lt;BR /&gt;
I've made a lot of search but I didn't find anything related to this subject.&lt;/P&gt;

&lt;P&gt;Is it possible to retrieve the expiration date from a search query and use it to create alerts?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 14:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151765#M2466</guid>
      <dc:creator>Gilgalidd</dc:creator>
      <dc:date>2014-12-16T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Licence expiration date - Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151766#M2467</link>
      <description>&lt;P&gt;I think this is a good start:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| REST /services/licenser/licenses/ 
| eval now=now()
| eval expire_in_days=(expiration_time-now)/86400
| eval expiration_time=strftime(expiration_time, "%Y-%m-%d  %H:%M:%S")
| table group_id expiration_time expire_in_days
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That give you the expiration in days, so you just have to setup the alert on expire_in_days&amp;lt;90, 30 or 5.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151766#M2467</guid>
      <dc:creator>bgaignon</dc:creator>
      <dc:date>2020-09-28T18:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Licence expiration date - Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151767#M2468</link>
      <description>&lt;P&gt;Another option (query from License Usage Report page in license master ), handles multiple pool implementation.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/licenser/messages | where (category=="license_window" OR category=="pool_over_quota") AND create_time &amp;gt;= now() - (30 * 86400) | rename pool_id AS pool | eval warning_day=if(category=="pool_over_quota","(".strftime(create_time,"%B %e, %Y").")",strftime(create_time-43200,"%B %e, %Y")) | fields pool warning_day | join outer pool [rest splunk_server=local /services/licenser/slaves | mvexpand active_pool_ids | eval slave_name=label | eval pool=active_pool_ids | fields pool slave_name | stats values(slave_name) as "members" by pool] | join outer pool [rest splunk_server=local /services/licenser/pools | eval pool=title | eval quota=if(isnull(effective_quota),quota,effective_quota) | eval quotaGB=round(quota/1024/1024/1024,3) | fields pool stack_id, quotaGB] |stats first(pool) as "Pool" first(stack_id) as "Stack ID" first(members) as "Current Members" first(quotaGB) as "Current Quota (GB)" values(warning_day) AS "Warning Days - (Soft)/Hard" by pool | fields - pool
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jan 2015 15:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151767#M2468</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-01-27T15:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Licence expiration date - Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151768#M2469</link>
      <description>&lt;P&gt;Thanks for informations.&lt;/P&gt;

&lt;P&gt;Now I can have an email with the days remaining to the expiration/renew of all licenses.&lt;/P&gt;

&lt;P&gt;Can I have the results for a specific pool?&lt;BR /&gt;
It will avoid to display unnecessary licences informations like the free licence and expired licence (detached to the pool).&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 13:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151768#M2469</guid>
      <dc:creator>Gilgalidd</dc:creator>
      <dc:date>2015-02-02T13:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Licence expiration date - Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151769#M2470</link>
      <description>&lt;P&gt;I was not able to make somesoni2's search working but it looks like the pool is specified at the end, so you might be able to add a filter at the end to specify your pool.&lt;/P&gt;

&lt;P&gt;For my search there is mutliple fields that can be used for that:&lt;BR /&gt;
try this search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| REST /services/licenser/licenses/

id  group_id    label   stack_id    type    status
&lt;A href="https://127.0.0.1/services/licenser/licenses/0D8FAF9CC8C" target="test_blank"&gt;https://127.0.0.1/services/licenser/licenses/0D8FAF9CC8C&lt;/A&gt;    Trial   Splunk Enterprise Download Trial    download-trial  download-trial  EXPIRED
&lt;A href="https://127.0.0.1/services/licenser/licenses/1AF1CC17539" target="test_blank"&gt;https://127.0.0.1/services/licenser/licenses/1AF1CC17539&lt;/A&gt;    Enterprise  Splunk Enterprise   enterprise  enterprise  VALID 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;group_id or label should be enough for your need.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 16:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151769#M2470</guid>
      <dc:creator>bgaignon</dc:creator>
      <dc:date>2015-02-02T16:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Licence expiration date - Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151770#M2471</link>
      <description>&lt;P&gt;If you are using the Distributed Management Console (v6.2 to v6.4) / Monitoring Console (v6.5+) to monitor your Splunk deployment, there is a platform alert (i.e. saved search) that you can enable for “Expired and Soon To Expire Licenses” (with the desired alert action) which will fire when you have licenses that have expired or will expire within two weeks (default setting).  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;About the Monitoring Console&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/DMC/DMCoverview"&gt;http://docs.splunk.com/Documentation/Splunk/latest/DMC/DMCoverview&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Platform alerts overview&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/DMC/Platformalerts"&gt;http://docs.splunk.com/Documentation/Splunk/latest/DMC/Platformalerts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Enable platform alerts&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/DMC/Platformalerts#Enable_platform_alerts"&gt;http://docs.splunk.com/Documentation/Splunk/latest/DMC/Platformalerts#Enable_platform_alerts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Which alerts are included?&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/DMC/Platformalerts#Which_alerts_are_included.3F"&gt;http://docs.splunk.com/Documentation/Splunk/latest/DMC/Platformalerts#Which_alerts_are_included.3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 19:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Licence-expiration-date-Alert/m-p/151770#M2471</guid>
      <dc:creator>llee_splunk</dc:creator>
      <dc:date>2017-05-03T19:33:58Z</dc:date>
    </item>
  </channel>
</rss>

