PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, October 25, 2022

[FIXED] How to set up logging level in Elasticsearch?

 October 25, 2022     elasticsearch, logging     No comments   

Issue

Could you tell me how to set up explicitly logging level in Elasticsearch as INFO? I would like to do that in the file: elasticsearch.yaml


Solution

There are three ways to do it:

A. By updating the cluster settings dynamically (doesn't require any restart):

PUT /_cluster/settings
{
  "transient": {
    "logger.org.elasticsearch.transport": "TRACE"
  }
}

B. By setting the log level directly in elasticsearch.yml (requires restart):

logger.org.elasticsearch.transport: TRACE

C. By setting the log level directly in log4j2.properties (requires restart):

logger.transport.level = trace


Answered By - Val
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing