How to get licence expiration date

This category relates to the Enterprise Search set of products - App Search, Site Search and Workplace Search.
If your question relates to core Elasticsearch functionality, please head over to the Elasticsearch category for assistance.

PS - Please delete this text before posting your topic
I am running _license?pretty api in order to see the license, but in return i am not getting an expiration date.
how we can see , i checked on 8.6.1 ES version.

You should get the output you see on that page

As a reminder

Authorization
You must have monitor cluster privileges to use this API. For more information, see Security privileges.

yes i know about this API but this API output is not showing expiration date.

What do you see?

i see below only and when we applied licence then only we see expiration date.
let say if we don't apply lic then how we can see expiration date.

"issue_date" : "2023-07-05T11:51:29.264Z",
    "issue_date_in_millis" : 1688557889264,

Could you please share the full output?

once we applied the lic we are able to see the expiration date.
but we see one problem since we are using Elasticsearch as pod whenever pod restart we again need to apply license.
Is there any way we can apply permanently?

I hope you're not removing all the data when restarting a pod. If you keep the data around, that should not be a problem.

But again, could you please share the full output?

Since we are using Operator and for apply lic is diff way .
now we create a secret and put lic over there. On POD restarting, LIC is there.

I'm not sure I understood what you wrote. May be someone else will and could help.

i follow this process in order to apply Lic on ES as container
https://www.elastic.co/guide/en/cloud-on-k8s/2.5/k8s-licensing.html
so we can close this thread.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.