Configuring multiple nodes in one Elastic installation

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):
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:

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

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

at

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