# Install shield in elasticsearch but also can post es the shield not work

**URL:** <https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 30, 2016, 6:38am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363 "2016-06-30T06:38:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tingking23](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tingking23](https://discuss.elastic.co/u/tingking23)\
**Post date:** [June 30, 2016, 6:38am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/1 "2016-06-30T06:38:52Z")

</div>

as the topic name, i install the shield in es,but i also can post to 9200 . the shield can't work.  
i checked the log, there is no error . i do it the same things in my own computer that centos 7.0 the shield can work.  
i use the centos 7.2 ,and the firewall is not running ;SElinux is closed. anyone can help?

bin/elasticsearch  
[2016-06-30 10:46:09,393][INFO][node] [p15nrtes01] version[2.3.2], pid[41312], build[b9e4a6a/2016-04-21T16:03:47Z]  
[2016-06-30 10:46:09,394][INFO][node] [p15nrtes01] initializing ...  
[2016-06-30 10:46:10,036][INFO][plugins] [p15nrtes01] modules [lang-groovy, reindex, lang-expression], plugins [analysis-ik, marvel-agent, shield, license, head], sites [head]  
[2016-06-30 10:46:10,065][INFO][env] [p15nrtes01] using [3] data paths, mounts [[/data3 (/dev/sdd), /data1 (/dev/sdb), /data2 (/dev/sde)]], net usable\_space [5.8tb], net total\_space [6.4tb], spins? [possibly], types [ext4]  
[2016-06-30 10:46:10,065][INFO][env] [p15nrtes01] heap size [989.8mb], compressed ordinary object pointers [true]  
[2016-06-30 10:46:10,714][INFO][http] [p15nrtes01] Using [org.elasticsearch.http.netty.NettyHttpServerTransport] as http transport, overridden by [shield]  
[2016-06-30 10:46:10,893][INFO][transport] [p15nrtes01] Using [org.elasticsearch.shield.transport.ShieldServerTransportService] as transport service, overridden by [shield]  
[2016-06-30 10:46:10,893][INFO][transport] [p15nrtes01] Using [org.elasticsearch.shield.transport.netty.ShieldNettyTransport] as transport, overridden by [shield]  
[2016-06-30 10:46:12,345][INFO][ik-analyzer] [Dict Loading] ik/custom/mydict.dic  
[2016-06-30 10:46:12,345][INFO][ik-analyzer] [Dict Loading] ik/custom/single\_word\_low\_freq.dic  
[2016-06-30 10:46:12,348][INFO][ik-analyzer] [Dict Loading] ik/custom/ext\_stopword.dic  
[2016-06-30 10:46:12,912][INFO][node] [p15nrtes01] initialized  
[2016-06-30 10:46:12,912][INFO][node] [p15nrtes01] starting ...  
[2016-06-30 10:46:13,078][INFO][shield.transport] [p15nrtes01] publish\_address {192.168.0.1:9300}, bound\_addresses {[::]:9300}  
[2016-06-30 10:46:13,082][INFO][discovery] [p15nrtes01] KZX\_NRT/kS2u7PcBQ365oMpotBmugw  
[2016-06-30 10:46:16,161][INFO][cluster.service] [p15nrtes01] detected\_master {p16nrtes01}{H-P8IRZ7T8mgn4bHadrhKg}{192.168.0.2}{192.168.0.2:9300}, added {{p16nrtes01}{H-P8IRZ7T8mgn4bHadrhKg}{192.168.0.2}{192.168.0.2:9300},{p15nrtes02}{hBtPuhODSXatQOugLJyNVg}{192.168.0.3}{192.168.0.3:9300},{p16nrtes02}{RmZ3UqR6SBe49FE78wkGhA}{192.168.0.4}{192.168.0.4:9300},}, reason: zen-disco-receive(from master [{p16nrtes01}{H-P8IRZ7T8mgn4bHadrhKg}{192.168.0.2}{192.168.0.2:9300}])  
[2016-06-30 10:46:16,238][INFO][license.plugin.core] [p15nrtes01] license [cbcf567e-44c6-4e20-94fd-0e3fb040d91a] - valid  
[2016-06-30 10:46:16,354][INFO][http] [p15nrtes01] publish\_address {192.168.0.1:9200}, bound\_addresses {[::]:9200}  
[2016-06-30 10:46:16,354][INFO][node] [p15nrtes01] started

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [June 30, 2016, 10:42am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/3 "2016-06-30T10:42:22Z")

</div>

Did you install a Basic license in this cluster? If so, Shield will not work with this license. You can contact [info@elastic.co](mailto:info@elastic.co) to request a trial license that will enable shield.

---

<div class="post-metadata">

**Author:** ![tingking23](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tingking23](https://discuss.elastic.co/u/tingking23)\
**Post date:** [July 1, 2016, 1:12am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/4 "2016-07-01T01:12:42Z")

</div>

yes, i install the license to the cluster. is that a bug ? i try it on my own pc then it's ok. there is only things different is the centos7 vs centos7.2, on centos7 is good on 7.2 then bad.

---

<div class="post-metadata">

**Author:** ![tingking23](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tingking23](https://discuss.elastic.co/u/tingking23)\
**Post date:** [July 1, 2016, 1:28am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/5 "2016-07-01T01:28:20Z")

</div>

i find the things cause that problem, when i install the license that [info@elastic.co](mailto:info@elastic.co) emailed to me in the centos7.0 computer then the shield also bad. 😅

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [July 1, 2016, 10:48am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/6 "2016-07-01T10:48:31Z")

</div>

What type of license did you request? What is the output when you call GET /\_license?

---

<div class="post-metadata">

**Author:** ![tingking23](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tingking23](https://discuss.elastic.co/u/tingking23)\
**Post date:** [July 2, 2016, 6:10am UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/7 "2016-07-02T06:10:20Z")

</div>

i just contact [info@elastic.co](mailto:info@elastic.co) to request , and then i recived a license in my email. and the license has one year valid.

curl -XGET localhost:9200/\_license?pretty  
{  
"license" : {  
"status" : "active",  
"uid" : "cbcf567e-44c6-4e20-94fd-0e3fb040d91a",  
"type" : "basic",  
"issue\_date" : "2016-04-27T00:00:00.000Z",  
"issue\_date\_in\_millis" : 1461715200000,  
"expiry\_date" : "2017-06-13T23:59:59.999Z",  
"expiry\_date\_in\_millis" : 1497398399999,  
"max\_nodes" : 100,  
"issued\_to" : "jiang peng (china citic bank credit card center)",  
"issuer" : "Web Form"  
}  
}

---

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [July 5, 2016, 12:14pm UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/8 "2016-07-05T12:14:37Z")

</div>

It looks like you contacted them in April. I suggested you email again and ask for a trial license to test Shield. Shield will not work with the free basic license. After the trial license is over you can reinstall the basic license

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:43pm UTC](https://discuss.elastic.co/t/install-shield-in-elasticsearch-but-also-can-post-es-the-shield-not-work/54363/9 "2017-07-06T13:43:01Z")

</div>


