What log levels exist and how should they be used in production?
BeginnerConceptLogging: ELK/EFK, Loki & Log Shippers
Answer
Common levels: TRACE, DEBUG, INFO, WARN, ERROR, FATAL.
- Production default:
INFO;DEBUGonly enabled dynamically for a service or request while debugging. ERRORmeans something failed and someone may need to act; do not log expected validation failures as errors.WARNis for degraded but handled situations (retry succeeded).
Log volume costs real money; most bills are driven by noisy INFO/DEBUG lines from a few services.
More on Logging: ELK/EFK, Loki & Log Shippers
What is the ELK stack, and what is EFK?BeginnerHow does Elasticsearch store and search logs?IntermediateWhat is ILM (Index Lifecycle Management) and why do log clusters need it?IntermediateWhat is an Elasticsearch data stream?AdvancedWhat is an index template and mapping, and what is a mapping explosion?AdvancedWhat does Logstash do compared with Beats?Intermediate