# Unknown setting for elasticsearch

**URL:** <https://discuss.elastic.co/t/unknown-setting-for-elasticsearch/2188>\
**Category:** Logstash\
**Created:** [June 9, 2015, 7:34am UTC](https://discuss.elastic.co/t/unknown-setting-for-elasticsearch/2188 "2015-06-09T07:34:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![calle\_eman](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@calle\_eman](https://discuss.elastic.co/u/calle_eman)\
**Post date:** [June 9, 2015, 7:34am UTC](https://discuss.elastic.co/t/unknown-setting-for-elasticsearch/2188/1 "2015-06-09T07:34:32Z")

</div>

I'm getting this error when trying to connect logstash to my ES cluster  
`
{:timestamp=>"2015-06-09T07:23:11.996000+0000", :message=>"Unknown setting 'aws_region' for elasticsearch", :level=>:error, :file=>"logstash/config/mixin.rb", :line=>"262", :method=>"validate_check_invalid_parameter_names"}
{:timestamp=>"2015-06-09T07:23:12.015000+0000", :message=>"Unknown setting 'discovery' for elasticsearch", :level=>:error, :file=>"logstash/config/mixin.rb", :line=>"262", :method=>"validate_check_invalid_parameter_names"}
`

My config:  
`
output {
elasticsearch {
action => "index"
embedded => false
protocol => "node"
cluster => "MyESCluster"
aws_region => "eu-west-1"
discovery => "ec2"
}
}
`

According to the documentation both [aws\_region](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-aws_region) and [discovery](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-discovery) are valid settings.

Using Logstash 1.5.0 from the yum-repo on AWS Linux 2015.03.  
`
$ yum info logstash
Loaded plugins: priorities, update-motd, upgrade-helper
Installed Packages
Name : logstash
Arch : noarch
Epoch : 1
Version : 1.5.0
Release : 1
Size : 127 M
Repo : installed
Summary : An extensible logging pipeline
URL : http://www.elasticsearch.org/overview/logstash/
License : ASL 2.0
Description : An extensible logging pipeline
`

Any suggestions?

---

<div class="post-metadata">

**Author:** ![calle\_eman](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@calle\_eman](https://discuss.elastic.co/u/calle_eman)\
**Post date:** [June 9, 2015, 12:43pm UTC](https://discuss.elastic.co/t/unknown-setting-for-elasticsearch/2188/2 "2015-06-09T12:43:20Z")

</div>

I may have gotten a little bit further. I discovered [logstash-output-elasticsearch-ec2](https://github.com/logstash-plugins/logstash-output-elasticsearch-ec2). So I did:  
`
$ sudo bin/plugin install logstash-output-elasticsearch-ec2
`  
Now I get this in the logstash logs:  
`
Jun 09, 2015 12:13:10 PM org.elasticsearch.node.internal.InternalNode 
INFO: version[1.5.1], pid[10473], build[5e38401/2015-04-09T13:41:35Z]
Jun 09, 2015 12:13:10 PM org.elasticsearch.node.internal.InternalNode 
INFO: initializing ...
Jun 09, 2015 12:13:10 PM org.elasticsearch.plugins.PluginsService 
INFO: loaded [cloud-aws], sites []
Jun 09, 2015 12:13:18 PM org.elasticsearch.node.internal.InternalNode 
INFO: initialized
Jun 09, 2015 12:13:18 PM org.elasticsearch.node.internal.InternalNode start
INFO: starting ...
Jun 09, 2015 12:13:18 PM org.elasticsearch.transport.TransportService doStart
INFO: bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/my.ip.here:9300]}
Jun 09, 2015 12:13:18 PM org.elasticsearch.discovery.DiscoveryService doStart
INFO: MyCluster/2uXwM_APR0aD4zHzxkqfYg
Jun 09, 2015 12:13:48 PM org.elasticsearch.discovery.DiscoveryService waitForInitialState
WARNING: waited for 30s and no initial state was set by the discovery
Jun 09, 2015 12:13:48 PM org.elasticsearch.node.internal.InternalNode start
INFO: started
Jun 09, 2015 12:13:53 PM org.elasticsearch.discovery.zen.ZenDiscovery joinElectedMaster
INFO: failed to send join request to master [[Owl][gQEiJjg5RMS6DwnGGNEfqQ][hostname-ESInstance1][inet[/ESInstance1.ip.here:9300]]], reason [RemoteTransportException[[Owl][inet[/ESInstance1.ip.here:9300]][internal:discovery/zen/join]]; nested: ConnectTransportException[[logstash-hostname-logstash-10473-9854][inet[/my.ip.here:9300]] connect_timeout[30s]]; nested: ConnectTimeoutException[connection timed out: /my.ip.here:9300]; ]
`  
So it no longer complains about unknown settings. But it doesn't seem to care about the value of those settings either (discovery: ec2, but the logs says zen).

---

<div class="post-metadata">

**Author:** ![calle\_eman](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@calle\_eman](https://discuss.elastic.co/u/calle_eman)\
**Post date:** [June 9, 2015, 12:55pm UTC](https://discuss.elastic.co/t/unknown-setting-for-elasticsearch/2188/3 "2015-06-09T12:55:38Z")

</div>

OK, once I checked that my logstash instance could accept incoming connections on port 9300 and not just connect to other instances on port 9300 it started working! 🙂

---

<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, 5:38am UTC](https://discuss.elastic.co/t/unknown-setting-for-elasticsearch/2188/4 "2017-07-06T05:38:01Z")

</div>


