# Configuration Questions

**URL:** <https://discuss.elastic.co/t/configuration-questions/14315>\
**Category:** Elasticsearch\
**Created:** [November 8, 2013, 1:38am UTC](https://discuss.elastic.co/t/configuration-questions/14315 "2013-11-08T01:38:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [November 8, 2013, 1:38am UTC](https://discuss.elastic.co/t/configuration-questions/14315/1 "2013-11-08T01:38:08Z")

</div>

According to the /etc/elasticsearch/elasticsearch.yml config file,  
Elasticsearch sets a lot of default settings automatically. For example:

# Set the address other nodes will use to communicate with this node. If not

> # set, it is automatically derived. It must point to an actual IP address.
> 
> # 
> 
> # network.publish\_host: 192.168.0.1

Is there a way I can get a list of all the configuration values that  
Elasticsearch is currently running with? So I could see what Elasticsearch  
automatically derived for "network.publish\_host" and other settings.

Second, if I set up two VM's to use the same cluster via the "cluster.name"  
setting, they should automatically find each other, right? So I would see  
them all listed when I run:

curl -XGET '[http://localhost:9200/\_cluster/nodes?pretty=true](http://localhost:9200/_cluster/nodes?pretty=true)'

Finally, if I set "path.data" to something, all data should be stored in  
that location. Not in the default (apparently) /var/lib/elasticsearch.  
Right?

Thanks! Apologies if these seem like obvious questions. I have googled, and  
read the manual looking for answers. I just wasn't able to find the  
answers, or didn't understand them when I found them...

--  
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:** [November 8, 2013, 8:16am UTC](https://discuss.elastic.co/t/configuration-questions/14315/2 "2013-11-08T08:16:19Z")

</div>

Answers inline

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

8 novembre 2013 at 02:38:14, David Reagan ([jerrac@gmail.com](mailto:jerrac@gmail.com)) a écrit:

According to the /etc/elasticsearch/elasticsearch.yml config file, Elasticsearch sets a lot of default settings automatically. For example:

# Set the address other nodes will use to communicate with this node. If not

# set, it is automatically derived. It must point to an actual IP address.

# 

# network.publish\_host: 192.168.0.1

Is there a way I can get a list of all the configuration values that Elasticsearch is currently running with? So I could see what Elasticsearch automatically derived for "network.publish\_host" and other settings.  
Look at logs when the server starts is the simplest way.

Or curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)'

Second, if I set up two VM's to use the same cluster via the "cluster.name" setting, they should automatically find each other, right? So I would see them all listed when I run:

curl -XGET '[http://localhost:9200/\_cluster/nodes?pretty=true](http://localhost:9200/_cluster/nodes?pretty=true)'

Yes

Finally, if I set "path.data" to something, all data should be stored in that location. Not in the default (apparently) /var/lib/elasticsearch. Right?  
Yes

## Thanks! Apologies if these seem like obvious questions. I have googled, and read the manual looking for answers. I just wasn't able to find the answers, or didn't understand them when I found them...

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:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [November 8, 2013, 5:09pm UTC](https://discuss.elastic.co/t/configuration-questions/14315/3 "2013-11-08T17:09:14Z")

</div>

Thanks for the reply. 🙂

curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)' does not return  
the value of _network.publish\_host_

Or is it called something else in the output?

Also, thanks to the hint provided by the curl command, I found

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Which  
helped me confirm that elasticsearch is pointed at the data directory I  
wanted it to point at. Nothing had appeared in that dir, but this confirms  
it's just because no data has been sent to this node.

--David Reagan

On Fri, Nov 8, 2013 at 12:16 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Answers inline
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> 8 novembre 2013 at 02:38:14, David Reagan ([jerrac@gmail.com](mailto:jerrac@gmail.com)//jerrac@gmail.com)  
> a écrit:
> 
> According to the /etc/elasticsearch/elasticsearch.yml config file,  
> Elasticsearch sets a lot of default settings automatically. For example:
> 
> # Set the address other nodes will use to communicate with this node. If
> 
> > not
> > 
> > # set, it is automatically derived. It must point to an actual IP address.
> > 
> > # 
> > 
> > # network.publish\_host: 192.168.0.1
> 
> Is there a way I can get a list of all the configuration values that  
> Elasticsearch is currently running with? So I could see what Elasticsearch  
> automatically derived for "network.publish\_host" and other settings.
> 
> Look at logs when the server starts is the simplest way.
> 
> Or curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)'
> 
> Second, if I set up two VM's to use the same cluster via the "cluster.name"  
> setting, they should automatically find each other, right? So I would see  
> them all listed when I run:
> 
> curl -XGET '[http://localhost:9200/\_cluster/nodes?pretty=true](http://localhost:9200/_cluster/nodes?pretty=true)'
> 
> Yes
> 
> Finally, if I set "path.data" to something, all data should be stored in  
> that location. Not in the default (apparently) /var/lib/elasticsearch.  
> Right?
> 
> Yes
> 
> ## Thanks! Apologies if these seem like obvious questions. I have googled, and read the manual looking for answers. I just wasn't able to find the answers, or didn't understand them when I found them...
> 
> 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 a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe](https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe).  
> To unsubscribe from this group and all its topics, 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:** ![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:** [November 8, 2013, 5:35pm UTC](https://discuss.elastic.co/t/configuration-questions/14315/4 "2013-11-08T17:35:44Z")

</div>

This command gives me:  
{  
"ok" : true,  
"cluster\_name" : "workshop",  
"nodes" : {  
"tpgOUNUcTZ2geUXdPk38rA" : {  
"name" : "Trapper",  
"transport\_address" : "inet[/192.168.0.15:9300]",  
"hostname" : "MacBook-Air-de-David.local",  
"version" : "0.90.6",  
"http\_address" : "inet[/192.168.0.15:9200]",  
"network" : {  
"refresh\_interval" : 5000,  
"primary\_interface" : {  
"address" : "192.168.0.15",  
"name" : "en0",  
"mac\_address" : "00:88:65:38:10:D6"  
}  
}  
}  
}  
}  
Actually transport\_address and http\_address are derived from:

# network.bind\_host: 192.168.0.1

# network.publish\_host: 192.168.0.1

Or this one set both values (which really often the case):

# network.host: 192.168.0.1

About the data directory, as soon as you start a node, you should see at least a `clustername/nodes/0/_state` where `clustername` is your actual cluster name (default to elasticsearch).

If you don't see it, I think that you are modifying an elasticsearch.yml file which is not used by your distribution.  
Note that you can run elasticsearch using:

bin/elasticsearch -Des.path.conf=/yourdir/elasticsearch.yml

HTH

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

8 novembre 2013 at 18:09:42, David Reagan ([jerrac@gmail.com](mailto:jerrac@gmail.com)) a écrit:

Thanks for the reply. 🙂

curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)' does not return the value of network.publish\_host

Or is it called something else in the output?

Also, thanks to the hint provided by the curl command, I found [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html#\_nodes\_statistics](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html#_nodes_statistics) Which helped me confirm that elasticsearch is pointed at the data directory I wanted it to point at. Nothing had appeared in that dir, but this confirms it's just because no data has been sent to this node.

--David Reagan

On Fri, Nov 8, 2013 at 12:16 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
Answers inline

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

8 novembre 2013 at 02:38:14, David Reagan ([jerrac@gmail.com](mailto:jerrac@gmail.com)) a écrit:

According to the /etc/elasticsearch/elasticsearch.yml config file, Elasticsearch sets a lot of default settings automatically. For example:

# Set the address other nodes will use to communicate with this node. If not

# set, it is automatically derived. It must point to an actual IP address.

# 

# network.publish\_host: 192.168.0.1

Is there a way I can get a list of all the configuration values that Elasticsearch is currently running with? So I could see what Elasticsearch automatically derived for "network.publish\_host" and other settings.  
Look at logs when the server starts is the simplest way.

Or curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)'

Second, if I set up two VM's to use the same cluster via the "cluster.name" setting, they should automatically find each other, right? So I would see them all listed when I run:

curl -XGET '[http://localhost:9200/\_cluster/nodes?pretty=true](http://localhost:9200/_cluster/nodes?pretty=true)'

Yes

Finally, if I set "path.data" to something, all data should be stored in that location. Not in the default (apparently) /var/lib/elasticsearch. Right?  
Yes

## Thanks! Apologies if these seem like obvious questions. I have googled, and read the manual looking for answers. I just wasn't able to find the answers, or didn't understand them when I found them...

## 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 a topic in the Google Groups "elasticsearch" group.  
To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe](https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe).  
To unsubscribe from this group and all its topics, 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).

--  
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:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [November 8, 2013, 5:54pm UTC](https://discuss.elastic.co/t/configuration-questions/14315/5 "2013-11-08T17:54:03Z")

</div>

Ah, so they are called something different in the output of that curl  
command. That's a bit confusing... Oh well, now I know. Is there a list  
somewhere in the docs that shows tells me which which maps to which?

When I run curl -XGET '[http://localhost:9200/\_nodes/stats?pretty&fs=true](http://localhost:9200/_nodes/stats?pretty&fs=true)',  
it shows that it's using the data dir I set in my config file. And, for  
some reason, it now shows the expected 'clustername' dir in it as well. I  
have no idea why it wasn't showing up yesterday evening...

Thanks again for the quick replies. You've helped a lot. 🙂

--David Reagan

On Fri, Nov 8, 2013 at 9:35 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> This command gives me:
> 
> {  
> "ok" : true,  
> "cluster\_name" : "workshop",  
> "nodes" : {  
> "tpgOUNUcTZ2geUXdPk38rA" : {  
> "name" : "Trapper",  
> "transport\_address" : "inet[/192.168.0.15:9300]",  
> "hostname" : "MacBook-Air-de-David.local",  
> "version" : "0.90.6",  
> "http\_address" : "inet[/192.168.0.15:9200]",  
> "network" : {  
> "refresh\_interval" : 5000,  
> "primary\_interface" : {  
> "address" : "192.168.0.15",  
> "name" : "en0",  
> "mac\_address" : "00:88:65:38:10:D6"  
> }  
> }  
> }  
> }  
> }
> 
> Actually transport\_address and http\_address are derived from:
> 
> # network.bind\_host: 192.168.0.1
> 
> # network.publish\_host: 192.168.0.1
> 
> Or this one set both values (which really often the case):
> 
> # network.host: 192.168.0.1
> 
> About the data directory, as soon as you start a node, you should see at  
> least a `clustername/nodes/0/_state` where `clustername` is your actual  
> cluster name (default to elasticsearch).
> 
> If you don't see it, I think that you are modifying an elasticsearch.yml  
> file which is not used by your distribution.  
> Note that you can run elasticsearch using:
> 
> bin/elasticsearch -Des.path.conf=/yourdir/elasticsearch.yml
> 
> HTH
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> 8 novembre 2013 at 18:09:42, David Reagan ([jerrac@gmail.com](mailto:jerrac@gmail.com)//jerrac@gmail.com)  
> a écrit:
> 
> Thanks for the reply. 🙂
> 
> curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)' does not return  
> the value of _network.publish\_host_
> 
> Or is it called something else in the output?
> 
> Also, thanks to the hint provided by the curl command, I found  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html#_nodes_statistics) Which  
> helped me confirm that elasticsearch is pointed at the data directory I  
> wanted it to point at. Nothing had appeared in that dir, but this confirms  
> it's just because no data has been sent to this node.
> 
> --David Reagan
> 
> On Fri, Nov 8, 2013 at 12:16 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Answers inline
> > 
> > ```
> > --
> > 
> > ```
> > 
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> > 
> > 8 novembre 2013 at 02:38:14, David Reagan ([jerrac@gmail.com](mailto:jerrac@gmail.com)//jerrac@gmail.com)  
> > a écrit:
> > 
> > According to the /etc/elasticsearch/elasticsearch.yml config file,  
> > Elasticsearch sets a lot of default settings automatically. For example:
> > 
> > # Set the address other nodes will use to communicate with this node.
> > 
> > > If not
> > > 
> > > # set, it is automatically derived. It must point to an actual IP
> > > 
> > > address.
> > > 
> > > # 
> > > 
> > > # network.publish\_host: 192.168.0.1
> > 
> > Is there a way I can get a list of all the configuration values that  
> > Elasticsearch is currently running with? So I could see what Elasticsearch  
> > automatically derived for "network.publish\_host" and other settings.
> > 
> > Look at logs when the server starts is the simplest way.
> > 
> > Or curl -XGET '[http://localhost:9200/\_nodes/network?pretty](http://localhost:9200/_nodes/network?pretty)'
> > 
> > Second, if I set up two VM's to use the same cluster via the "  
> > cluster.name" setting, they should automatically find each other, right?  
> > So I would see them all listed when I run:
> > 
> > curl -XGET '[http://localhost:9200/\_cluster/nodes?pretty=true](http://localhost:9200/_cluster/nodes?pretty=true)'
> > 
> > Yes
> > 
> > ```
> > Finally, if I set "path.data" to something, all data should be
> > 
> > ```
> > 
> > stored in that location. Not in the default (apparently)  
> > /var/lib/elasticsearch. Right?
> > 
> > Yes
> > 
> > ## Thanks! Apologies if these seem like obvious questions. I have googled, and read the manual looking for answers. I just wasn't able to find the answers, or didn't understand them when I found them...
> > 
> > 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 a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe](https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe).  
> > To unsubscribe from this group and all its topics, 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).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe](https://groups.google.com/d/topic/elasticsearch/XvzdKshxkcE/unsubscribe).  
> To unsubscribe from this group and all its topics, 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:** ![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:08am UTC](https://discuss.elastic.co/t/configuration-questions/14315/6 "2017-07-06T02:08:06Z")

</div>


