how start elasticsearch with debug / verbose

11,481

Solution 1

Outdated question, but probably, can be helpful for someone else.

./elasticsearch -Des.logger.level=DEBUG

Thanks :)

Solution 2

In the more recent version of ES, i.e. 7.x the option is

-v for verbose

bin/elasticsearch -v

Solution 3

There's a log4j2.properties file, typically in the config directory (along with elasticsearch.yml). There, you have full control over logging. You can set everything to DEBUG via:

rootLogger.level = debug

Though if I want more verbose logging for a specific chunk of code, I usually use the Cluster Update Settings API. Something like:

curl -XPUT -H 'Content-Type: application/json' localhost:9200/_cluster/settings -d '{
  "transient": {
    "logger.org.xbib.elasticsearch.jdbc.strategy": "trace"
  }
}'

Though the JDBC importer hasn't been updated for a while now.

Share:
11,481
Adam Ramadhan
Author by

Adam Ramadhan

be foolish, stay hungry. ⚡ Web Crawling & NER Related ⚡ Hosting & Infrastructure ⚡ Broadband ISP & Its Software

Updated on June 16, 2022

Comments

  • Adam Ramadhan
    Adam Ramadhan almost 2 years

    i have a really hard time setting up JDBC river mysql connector with my elasticsearch installation

    first i follow all the https://github.com/jprante/elasticsearch-river-jdbc howto

    diffrence is where i install the elasticsearch from RPM repository via yum install elasticsearch, somehow it installed my elasticsearch in /usr/share/elasticsearch but the config are in /etc/elasticsearch

    the problem lies when i installed the jdbc plugin, after installed already checked via plugin -l and yes there is a jdbc driver, but when i run bin/elasticsearch

    it shows nothing helpfull just like

    enter image description here

    is it working? how could i show [DEBUG] and [INFO] ?