Problems connecting to existing ElasticSearch instance in a spring boot application
<p>I have an elasticsearch instance running locally.
I have a spring boot application.
In my application I have a service ServiceX which contains an elasticsearch repository which extends ElasticsearchRepository.
So
Service X contains
YRepository extends ElasticsearchRepository</p>

<p>I have an elasticsearch instance running locally.</p>

<p>My elastic search settings are</p>

<pre><code>ELASTICSEARCH (ElasticsearchProperties)
spring.data.elasticsearch.properties.http.enabled=true
spring.data.elasticsearch.properties.host = localhost
spring.data.elasticsearch.properties.port = 9300
</code></pre>

<p>When the application is started an elasticsearch template is created.
The client that is used is a NodeClient.
The settings for the NodeClient are</p>

<pre><code>"http.enabled" -&gt; "true"
"port" -&gt; "9300"
"host" -&gt; "localhost"
"cluster.name" -&gt; "elasticsearch"
"node.local" -&gt; "true"
"name" -&gt; "Human Robot"
"path.logs" -&gt; "C:/dev/git/xxx/logs"
</code></pre>

<p>The name of the elasticsearch (Human Robot in this case), does not match the local elasticsearch instance running (Nikki in this case).</p>

<p>It looks like it 
1. creates a new instance of logstash
2. creates an embedded instance of logstash.</p>

<p>I have searched through a lot of information but cannot find any documentation to help.</p>

<p>Could people please advise about what settings to use?
Thanks.</p>