Where is ES log file?


(염경훈) #1

I install ES 2.3.3, and then start elasticsearch
but Active status is failed.
so i want to see log file.
but in /var/lib/elasticsearch folder. there are no log file. :frowning:

is any other folder?

this is log message

elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-01-24 09:23:31 UTC; 4s ago
Docs: http://www.elastic.co
Process: 16790 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=${PID_DIR}/elasticsearch.pid -Des.default.path.home=${ES_HOME} -Des.default.path.logs=${LOG_DIR} -Des.default.path.data=${DATA_DIR} -Des.default.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
Process: 16788 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 16790 (code=exited, status=1/FAILURE)

Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: at java.nio.file.Files.newInputStream(Files.java:152)
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: at org.elasticsearch.common.settings.Settings$Builder.loadFromPath(Settings.java:1067)
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:88)
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: at org.elasticsearch.bootstrap.Bootstrap.initialSettings(Bootstrap.java:202)
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:241)
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal elasticsearch[16790]: Refer to the log for complete error details.
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal systemd[1]: Unit elasticsearch.service entered failed state.
Jan 24 09:23:31 ip-192-168-100-168.ap-northeast-2.compute.internal systemd[1]: elasticsearch.service failed.


(Xavier Facq) #2

Try to check the folder /var/log/elasticsearch/

You can read the end of /var/log/message to have details on the system errors.


(염경훈) #3

i wrote incorrectly.

i already saw log folder.
/var/log/elasticsearch


(Xavier Facq) #4

Can you provide more informations about:

  • the OS
  • how did you install
  • how do you start the service
  • everything you think usefull

(염경훈) #5

i used

  • centos7
  • repository install (yum install elasticsearch-2.3.3)
  • service elasticsearch start
  • check status : service elasticsearch status

I was using ES5.1 version and will test it in 2.3 version, so i deleted the 5.1 and updated the 2.3
ant then this issue has occurred.


(염경훈) #6

The cause is unknown, but it is resolved.
just delete the instance, and install new~!


(system) #7

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