Recently I have faced issue with ElasticSearch License, I am getting below listed error while restarting, I had basic account.
2018-07-27T10:01:57,936][ERROR][o.e.x.s.a.f.SecurityActionFilter] [aYBc70q] blocking [cluster:monitor/stats] operation due to expired license. Cluster health, cluster stats and indices stats
operations are blocked on license expiration. All data operations (read and write) continue to work.
If you have a new license, please update it. Otherwise, please reach out to your support contact.
[2018-07-27T10:01:57,937][ERROR][o.e.x.m.c.c.ClusterStatsCollector] [aYBc70q] collector [cluster_stats] failed to collect data
org.elasticsearch.ElasticsearchSecurityException: current license is non-compliant for [security]
Below are the list of plugins installed.
[2018-07-27T09:57:03,310][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [aggs-matrix-stats]
[2018-07-27T09:57:03,310][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [analysis-common]
[2018-07-27T09:57:03,311][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [ingest-common]
[2018-07-27T09:57:03,311][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [lang-expression]
[2018-07-27T09:57:03,312][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [lang-mustache]
[2018-07-27T09:57:03,312][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [lang-painless]
[2018-07-27T09:57:03,312][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [mapper-extras]
[2018-07-27T09:57:03,313][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [parent-join]
[2018-07-27T09:57:03,313][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [percolator]
[2018-07-27T09:57:03,313][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [rank-eval]
[2018-07-27T09:57:03,314][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [reindex]
[2018-07-27T09:57:03,314][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [repository-url]
[2018-07-27T09:57:03,314][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [transport-netty4]
[2018-07-27T09:57:03,315][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [tribe]
[2018-07-27T09:57:03,315][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-core]
[2018-07-27T09:57:03,316][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-deprecation]
[2018-07-27T09:57:03,316][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-graph]
[2018-07-27T09:57:03,317][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-logstash]
[2018-07-27T09:57:03,317][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-ml]
[2018-07-27T09:57:03,318][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-monitoring]
[2018-07-27T09:57:03,318][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-rollup]
[2018-07-27T09:57:03,319][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-security]
[2018-07-27T09:57:03,319][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-sql]
[2018-07-27T09:57:03,319][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-upgrade]
[2018-07-27T09:57:03,320][INFO ][o.e.p.PluginsService ] [aYBc70q] loaded module [x-pack-watcher]
Below is the error which I am getting in elasaticsearch kibana
[data] Elasticsearch cluster did not respond with license information.
xpack license is empty.
curl -X GET "localhost:9200/_xpack/license"
{ }
Please help in this.