# Configuring multiple nodes in one Elastic installation

**URL:** <https://discuss.elastic.co/t/configuring-multiple-nodes-in-one-elastic-installation/291936>\
**Category:** Elasticsearch\
**Created:** [December 15, 2021, 9:41am UTC](https://discuss.elastic.co/t/configuring-multiple-nodes-in-one-elastic-installation/291936 "2021-12-15T09:41:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthytrip](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arthytrip](https://discuss.elastic.co/u/arthytrip)\
**Post date:** [December 15, 2021, 9:41am UTC](https://discuss.elastic.co/t/configuring-multiple-nodes-in-one-elastic-installation/291936/1 "2021-12-15T09:41:23Z")

</div>

Hello everybody,  
I'm trying to set up multiple Elasticsearch nodes in one installation.  
For the moment it is a test so I have no performance problems (but any advice is welcome).  
Based on some readings on the net I tried like this:

1. I renamed Elasticsearch.yml to Elasticsearch.yml.bck,
2. I created two Elasticsearch-1.yml and Elasticsearch-2.yml with the following content (change "1" with "2" on all parameters to obtain the second node):

```auto
node.name: node-1
path.data: /var/lib/elasticsearch-1
path.logs: /var/log/elasticsearch-1
http.port: 9201
transport.port: 9301
network.bind_host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"

```

1. I created the new folders by copying from /var/lib/Elasticsearch and from /var/log/Elasticsearch:  
/var/lib/Elasticsearch-1  
/var/lib/Elasticsearch-2  
/var/log/Elasticsearch-1  
/var/log/Elasticsearch-1

When I start the service I get the following error messages from Log4J:

```auto
elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2021-12-15 10:39:41 CET; 4s ago
     Docs: http://www.elastic.co
  Process: 2197 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
 Main PID: 2197 (code=exited, status=1/FAILURE)

Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,376 main ERROR Null object returned for RollingFile in Appenders.
Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,376 main ERROR Unable to locate appender "rolling" for logger config "root"
Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,376 main ERROR Unable to locate appender "index_indexing_slowlog_rolling" for logger config "index.indexing.slowlog.index"
Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,376 main ERROR Unable to locate appender "audit_rolling" for logger config "org.elasticsearch.xpack.security.audit.logfile.LoggingAuditTrail"
Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,377 main ERROR Unable to locate appender "index_search_slowlog_rolling" for logger config "index.search.slowlog"
Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,377 main ERROR Unable to locate appender "deprecated_audit_rolling" for logger config "org.elasticsearch.xpack.security.audit.logfile.DeprecatedLoggingAuditTrail"
Dec 15 10:39:41 <omissis host> elasticsearch[2197]: 2021-12-15 10:39:41,377 main ERROR Unable to locate appender "deprecation_rolling" for logger config "org.elasticsearch.deprecation"
Dec 15 10:39:41 <omissis host> systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Dec 15 10:39:41 <omissis host> systemd[1]: Unit elasticsearch.service entered failed state.
Dec 15 10:39:41 <omissis host> systemd[1]: elasticsearch.service failed.

```

Unfortunately I'm not familiar with Log4J, what can be the problem?

Thanks in advance for any suggestions.

at

---

<div class="post-metadata">

**Author:** ![arthytrip](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arthytrip](https://discuss.elastic.co/u/arthytrip)\
**Post date:** [January 10, 2022, 9:07am UTC](https://discuss.elastic.co/t/configuring-multiple-nodes-in-one-elastic-installation/291936/2 "2022-01-10T09:07:46Z")

</div>

Please...  
Anyone have any suggestions or experiences on this?

at

---

<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:** [February 7, 2022, 9:08am UTC](https://discuss.elastic.co/t/configuring-multiple-nodes-in-one-elastic-installation/291936/3 "2022-02-07T09:08:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
