# How to disable shutdown API?

**URL:** <https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173>\
**Category:** Elasticsearch\
**Created:** [May 29, 2013, 3:41pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173 "2013-05-29T15:41:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![damien\_2](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@damien\_2](https://discuss.elastic.co/u/damien_2)\
**Post date:** [May 29, 2013, 3:41pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/1 "2013-05-29T15:41:17Z")

</div>

Hello,

I'm using FOQ elastica bundle and I'm trying to disable shutdown API for  
security reasons.  
According to this link  
[http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/),  
you just need to add this line: action.disable\_shutdown in the node  
configuration. So here is my elasticsearch.yml structure:  
foq\_elastica:  
clients:  
search1:  
host: %elasticsearch-server%  
port: %elasticsearch-port%

```
default_client: search1

indexes:
    website:
        client: search1
        settings:
            index:
                analysis:
                    analyzer: ...
                    filter: ...
            types: ...         

```

I've tried to put "node: action.disable\_shutdown" in the "settings"  
namespace but it does not work I'm still able to shutdown ES.  
I have no idea where to put this code so if someone has an idea that would  
be great. And also, I restart and populate each time I made a modification.  
Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [May 30, 2013, 7:15am UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/2 "2013-05-30T07:15:05Z")

</div>

You just need to add `action.disable_shutdown : true` as is in the  
elasticsearch.yml (don't put it in any namespace) and then restart the node.

On 29 May 2013 17:41, Damien [damien.soulard@gmail.com](mailto:damien.soulard@gmail.com) wrote:

> Hello,
> 
> I'm using FOQ elastica bundle and I'm trying to disable shutdown API for  
> security reasons.  
> According to this link  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/),  
> you just need to add this line: action.disable\_shutdown in the node  
> configuration. So here is my elasticsearch.yml structure:  
> foq\_elastica:  
> clients:  
> search1:  
> host: %elasticsearch-server%  
> port: %elasticsearch-port%
> 
> ```
> default_client: search1
> 
> indexes:
> website:
> client: search1
> settings:
> index:
> analysis:
> analyzer: ...
> filter: ...
> types: ...
> 
> ```
> 
> I've tried to put "node: action.disable\_shutdown" in the "settings"  
> namespace but it does not work I'm still able to shutdown ES.  
> I have no idea where to put this code so if someone has an idea that would  
> be great. And also, I restart and populate each time I made a modification.  
> Thanks!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![damien\_2](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@damien\_2](https://discuss.elastic.co/u/damien_2)\
**Post date:** [May 30, 2013, 3:21pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/3 "2013-05-30T15:21:39Z")

</div>

Thanks for the answer but that doesn't work.  
I've tried to put it before foq\_elastica, or just after. I've also tried in  
settings namespace. I've made a "service elasticsearch restart" and a  
"populate".  
But I can still shutdown elasticsearch with this command  
curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)'

Le jeudi 30 mai 2013 03:15:05 UTC-4, Martijn v Groningen a écrit :

> You just need to add `action.disable_shutdown : true` as is in the  
> elasticsearch.yml (don't put it in any namespace) and then restart the node.
> 
> On 29 May 2013 17:41, Damien \<[damien....@gmail.com](mailto:damien....@gmail.com) \<javascript:\>\> wrote:
> 
> > Hello,
> > 
> > I'm using FOQ elastica bundle and I'm trying to disable shutdown API for  
> > security reasons.  
> > According to this link  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/),  
> > you just need to add this line: action.disable\_shutdown in the node  
> > configuration. So here is my elasticsearch.yml structure:  
> > foq\_elastica:  
> > clients:  
> > search1:  
> > host: %elasticsearch-server%  
> > port: %elasticsearch-port%
> > 
> > ```
> > default_client: search1
> > 
> > indexes:
> > website:
> > client: search1
> > settings:
> > index:
> > analysis:
> > analyzer: ...
> > filter: ...
> > types: ...         
> > 
> > ```
> > 
> > I've tried to put "node: action.disable\_shutdown" in the "settings"  
> > namespace but it does not work I'm still able to shutdown ES.  
> > I have no idea where to put this code so if someone has an idea that  
> > would be great. And also, I restart and populate each time I made a  
> > modification.  
> > Thanks!
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Met vriendelijke groet,
> 
> Martijn van Groningen

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2013, 4:12pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/4 "2013-05-30T16:12:52Z")

</div>

Can you try to add a space before 'action.disable\_shutdown : true' in elasticsearch.yml file?

## HTH

David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 mai 2013 à 17:21, Damien [damien.soulard@gmail.com](mailto:damien.soulard@gmail.com) a écrit :

> Thanks for the answer but that doesn't work.  
> I've tried to put it before foq\_elastica, or just after. I've also tried in settings namespace. I've made a "service elasticsearch restart" and a "populate".  
> But I can still shutdown elasticsearch with this command  
> curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)'
> 
> Le jeudi 30 mai 2013 03:15:05 UTC-4, Martijn v Groningen a écrit :
> 
> > You just need to add `action.disable_shutdown : true` as is in the elasticsearch.yml (don't put it in any namespace) and then restart the node.
> > 
> > On 29 May 2013 17:41, Damien [damien....@gmail.com](mailto:damien....@gmail.com) wrote:
> > 
> > > Hello,
> > > 
> > > I'm using FOQ elastica bundle and I'm trying to disable shutdown API for security reasons.  
> > > According to this link [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/), you just need to add this line: action.disable\_shutdown in the node configuration. So here is my elasticsearch.yml structure:  
> > > foq\_elastica:  
> > > clients:  
> > > search1:  
> > > host: %elasticsearch-server%  
> > > port: %elasticsearch-port%
> > > 
> > > ```
> > > default_client: search1
> > > 
> > > indexes:
> > > website:
> > > client: search1
> > > settings:
> > > index:
> > > analysis:
> > > analyzer: ...
> > > filter: ...
> > > types: ...         
> > > 
> > > ```
> > > 
> > > ## I've tried to put "node: action.disable\_shutdown" in the "settings" namespace but it does not work I'm still able to shutdown ES. I have no idea where to put this code so if someone has an idea that would be great. And also, I restart and populate each time I made a modification. Thanks!
> > > 
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Met vriendelijke groet,
> > 
> > Martijn van Groningen
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![damien\_2](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@damien\_2](https://discuss.elastic.co/u/damien_2)\
**Post date:** [May 30, 2013, 7:19pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/5 "2013-05-30T19:19:29Z")

</div>

Sorry but I don't understand what you mean. Adding a space like this  
'action.disable\_shutdown : true'?  
And where do you think I should put this line in my elasticsearch.yml?  
Thanks for your help.

Le jeudi 30 mai 2013 12:12:52 UTC-4, David Pilato a écrit :

> Can you try to add a space before 'action.disable\_shutdown : true' in  
> elasticsearch.yml file?
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 30 mai 2013 à 17:21, Damien \<[damien....@gmail.com](mailto:damien....@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Thanks for the answer but that doesn't work.  
> I've tried to put it before foq\_elastica, or just after. I've also tried  
> in settings namespace. I've made a "service elasticsearch restart" and a  
> "populate".  
> But I can still shutdown elasticsearch with this command  
> curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)'
> 
> Le jeudi 30 mai 2013 03:15:05 UTC-4, Martijn v Groningen a écrit :
> 
> > You just need to add `action.disable_shutdown : true` as is in the  
> > elasticsearch.yml (don't put it in any namespace) and then restart the node.
> > 
> > On 29 May 2013 17:41, Damien [damien....@gmail.com](mailto:damien....@gmail.com) wrote:
> > 
> > > Hello,
> > > 
> > > I'm using FOQ elastica bundle and I'm trying to disable shutdown API for  
> > > security reasons.  
> > > According to this link  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/),  
> > > you just need to add this line: action.disable\_shutdown in the node  
> > > configuration. So here is my elasticsearch.yml structure:  
> > > foq\_elastica:  
> > > clients:  
> > > search1:  
> > > host: %elasticsearch-server%  
> > > port: %elasticsearch-port%
> > > 
> > > ```
> > > default_client: search1
> > > 
> > > indexes:
> > > website:
> > > client: search1
> > > settings:
> > > index:
> > > analysis:
> > > analyzer: ...
> > > filter: ...
> > > types: ...         
> > > 
> > > ```
> > > 
> > > I've tried to put "node: action.disable\_shutdown" in the "settings"  
> > > namespace but it does not work I'm still able to shutdown ES.  
> > > I have no idea where to put this code so if someone has an idea that  
> > > would be great. And also, I restart and populate each time I made a  
> > > modification.  
> > > Thanks!
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Met vriendelijke groet,
> > 
> > Martijn van Groningen
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2013, 9:22pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/6 "2013-05-30T21:22:02Z")

</div>

Yes. That's it.  
You can put that line wherever you want.

Does it work?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 30 mai 2013 à 21:19, Damien [damien.soulard@gmail.com](mailto:damien.soulard@gmail.com) a écrit :

Sorry but I don't understand what you mean. Adding a space like this 'action.disable\_shutdown : true'?  
And where do you think I should put this line in my elasticsearch.yml?  
Thanks for your help.

Le jeudi 30 mai 2013 12:12:52 UTC-4, David Pilato a écrit :

> Can you try to add a space before 'action.disable\_shutdown : true' in elasticsearch.yml file?
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 30 mai 2013 à 17:21, Damien [damien....@gmail.com](mailto:damien....@gmail.com) a écrit :
> 
> > Thanks for the answer but that doesn't work.  
> > I've tried to put it before foq\_elastica, or just after. I've also tried in settings namespace. I've made a "service elasticsearch restart" and a "populate".  
> > But I can still shutdown elasticsearch with this command  
> > curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)'
> > 
> > Le jeudi 30 mai 2013 03:15:05 UTC-4, Martijn v Groningen a écrit :
> > 
> > > You just need to add `action.disable_shutdown : true` as is in the elasticsearch.yml (don't put it in any namespace) and then restart the node.
> > > 
> > > On 29 May 2013 17:41, Damien [damien....@gmail.com](mailto:damien....@gmail.com) wrote:
> > > 
> > > > Hello,
> > > > 
> > > > I'm using FOQ elastica bundle and I'm trying to disable shutdown API for security reasons.  
> > > > According to this link [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/), you just need to add this line: action.disable\_shutdown in the node configuration. So here is my elasticsearch.yml structure:  
> > > > foq\_elastica:  
> > > > clients:  
> > > > search1:  
> > > > host: %elasticsearch-server%  
> > > > port: %elasticsearch-port%
> > > > 
> > > > ```
> > > > default_client: search1
> > > > 
> > > > indexes:
> > > > website:
> > > > client: search1
> > > > settings:
> > > > index:
> > > > analysis:
> > > > analyzer: ...
> > > > filter: ...
> > > > types: ...         
> > > > 
> > > > ```
> > > > 
> > > > ## I've tried to put "node: action.disable\_shutdown" in the "settings" namespace but it does not work I'm still able to shutdown ES. I have no idea where to put this code so if someone has an idea that would be great. And also, I restart and populate each time I made a modification. Thanks!
> > > > 
> > > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > Met vriendelijke groet,
> > > 
> > > Martijn van Groningen
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![damien\_2](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@damien\_2](https://discuss.elastic.co/u/damien_2)\
**Post date:** [May 30, 2013, 9:46pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/7 "2013-05-30T21:46:46Z")

</div>

No. If I put a space before the command, I think it breaks yml structure  
with the 4 spaces indentation.  
If I put it before foq\_elastica, when I populate it says "There is no  
extension able to load the configuration for "action.disable\_shutdown""  
If I put just after foq\_elastica, it says "Unrecognized options  
"action.disable\_shutdown" under "foq\_elastica""  
There is only no error when I put it in the "settings" namespace but it's  
not working either, I can still shutdown ES.

Le jeudi 30 mai 2013 17:22:02 UTC-4, David Pilato a écrit :

> Yes. That's it.  
> You can put that line wherever you want.
> 
> Does it work?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 30 mai 2013 à 21:19, Damien \<[damien....@gmail.com](mailto:damien....@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Sorry but I don't understand what you mean. Adding a space like this  
> 'action.disable\_shutdown : true'?  
> And where do you think I should put this line in my elasticsearch.yml?  
> Thanks for your help.
> 
> Le jeudi 30 mai 2013 12:12:52 UTC-4, David Pilato a écrit :
> 
> > Can you try to add a space before 'action.disable\_shutdown : true' in  
> > elasticsearch.yml file?
> > 
> > ## HTH
> > 
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 30 mai 2013 à 17:21, Damien [damien....@gmail.com](mailto:damien....@gmail.com) a écrit :
> > 
> > Thanks for the answer but that doesn't work.  
> > I've tried to put it before foq\_elastica, or just after. I've also tried  
> > in settings namespace. I've made a "service elasticsearch restart" and a  
> > "populate".  
> > But I can still shutdown elasticsearch with this command  
> > curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)'
> > 
> > Le jeudi 30 mai 2013 03:15:05 UTC-4, Martijn v Groningen a écrit :
> > 
> > > You just need to add `action.disable_shutdown : true` as is in the  
> > > elasticsearch.yml (don't put it in any namespace) and then restart the node.
> > > 
> > > On 29 May 2013 17:41, Damien [damien....@gmail.com](mailto:damien....@gmail.com) wrote:
> > > 
> > > > Hello,
> > > > 
> > > > I'm using FOQ elastica bundle and I'm trying to disable shutdown API  
> > > > for security reasons.  
> > > > According to this link  
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/),  
> > > > you just need to add this line: action.disable\_shutdown in the node  
> > > > configuration. So here is my elasticsearch.yml structure:  
> > > > foq\_elastica:  
> > > > clients:  
> > > > search1:  
> > > > host: %elasticsearch-server%  
> > > > port: %elasticsearch-port%
> > > > 
> > > > ```
> > > > default_client: search1
> > > > 
> > > > indexes:
> > > > website:
> > > > client: search1
> > > > settings:
> > > > index:
> > > > analysis:
> > > > analyzer: ...
> > > > filter: ...
> > > > types: ...         
> > > > 
> > > > ```
> > > > 
> > > > I've tried to put "node: action.disable\_shutdown" in the "settings"  
> > > > namespace but it does not work I'm still able to shutdown ES.  
> > > > I have no idea where to put this code so if someone has an idea that  
> > > > would be great. And also, I restart and populate each time I made a  
> > > > modification.  
> > > > Thanks!
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > Met vriendelijke groet,
> > > 
> > > Martijn van Groningen
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![damien\_2](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@damien\_2](https://discuss.elastic.co/u/damien_2)\
**Post date:** [May 31, 2013, 2:50pm UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/8 "2013-05-31T14:50:55Z")

</div>

Ok I fixed it.  
Sorry but it was entirely my fault. I was modifying the wrong  
elasticsearch.yml file. I was modifying the one in my project but it's not  
this one.  
The right one is the elasticsearch.yml in /etc/elasticsearch.  
I feel bad spending so much time for that, sorry guys!  
Thanks for your time.

Le jeudi 30 mai 2013 17:46:46 UTC-4, Damien a écrit :

> No. If I put a space before the command, I think it breaks yml structure  
> with the 4 spaces indentation.  
> If I put it before foq\_elastica, when I populate it says "There is no  
> extension able to load the configuration for "action.disable\_shutdown""  
> If I put just after foq\_elastica, it says "Unrecognized options  
> "action.disable\_shutdown" under "foq\_elastica""  
> There is only no error when I put it in the "settings" namespace but it's  
> not working either, I can still shutdown ES.
> 
> Le jeudi 30 mai 2013 17:22:02 UTC-4, David Pilato a écrit :
> 
> > Yes. That's it.  
> > You can put that line wherever you want.
> > 
> > Does it work?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 30 mai 2013 à 21:19, Damien [damien....@gmail.com](mailto:damien....@gmail.com) a écrit :
> > 
> > Sorry but I don't understand what you mean. Adding a space like this  
> > 'action.disable\_shutdown : true'?  
> > And where do you think I should put this line in my elasticsearch.yml?  
> > Thanks for your help.
> > 
> > Le jeudi 30 mai 2013 12:12:52 UTC-4, David Pilato a écrit :
> > 
> > > Can you try to add a space before 'action.disable\_shutdown : true' in  
> > > elasticsearch.yml file?
> > > 
> > > ## HTH
> > > 
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 30 mai 2013 à 17:21, Damien [damien....@gmail.com](mailto:damien....@gmail.com) a écrit :
> > > 
> > > Thanks for the answer but that doesn't work.  
> > > I've tried to put it before foq\_elastica, or just after. I've also tried  
> > > in settings namespace. I've made a "service elasticsearch restart" and a  
> > > "populate".  
> > > But I can still shutdown elasticsearch with this command  
> > > curl -XPOST '[http://localhost:9200/\_shutdown](http://localhost:9200/_shutdown)'
> > > 
> > > Le jeudi 30 mai 2013 03:15:05 UTC-4, Martijn v Groningen a écrit :
> > > 
> > > > You just need to add `action.disable_shutdown : true` as is in the  
> > > > elasticsearch.yml (don't put it in any namespace) and then restart the node.
> > > > 
> > > > On 29 May 2013 17:41, Damien [damien....@gmail.com](mailto:damien....@gmail.com) wrote:
> > > > 
> > > > > Hello,
> > > > > 
> > > > > I'm using FOQ elastica bundle and I'm trying to disable shutdown API  
> > > > > for security reasons.  
> > > > > According to this link  
> > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown/),  
> > > > > you just need to add this line: action.disable\_shutdown in the node  
> > > > > configuration. So here is my elasticsearch.yml structure:  
> > > > > foq\_elastica:  
> > > > > clients:  
> > > > > search1:  
> > > > > host: %elasticsearch-server%  
> > > > > port: %elasticsearch-port%
> > > > > 
> > > > > ```
> > > > > default_client: search1
> > > > > 
> > > > > indexes:
> > > > > website:
> > > > > client: search1
> > > > > settings:
> > > > > index:
> > > > > analysis:
> > > > > analyzer: ...
> > > > > filter: ...
> > > > > types: ...         
> > > > > 
> > > > > ```
> > > > > 
> > > > > I've tried to put "node: action.disable\_shutdown" in the "settings"  
> > > > > namespace but it does not work I'm still able to shutdown ES.  
> > > > > I have no idea where to put this code so if someone has an idea that  
> > > > > would be great. And also, I restart and populate each time I made a  
> > > > > modification.  
> > > > > Thanks!
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > Met vriendelijke groet,
> > > > 
> > > > Martijn van Groningen
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:33am UTC](https://discuss.elastic.co/t/how-to-disable-shutdown-api/12173/9 "2017-07-06T02:33:35Z")

</div>


