Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Python programming and application logging
Explainer

Write JSON data to a file in Python

Use json.dump with UTF-8, distinguish JSON documents from JSON Lines, and handle Unicode, dates, and strict numeric serialization deliberately.

Python programming and application logging
Explainer

Write Python logs to a file

Configure a file handler once, choose an explicit encoding and level, and add rotation and collection checks appropriate to your process model.

Python programming and application logging
Explainer

Use if and else in a Python list comprehension

Place a conditional expression before for to transform values, or a trailing if after for to filter them out.

Python programming and application logging
Explainer

Import Python modules from another directory

Organize code as an importable package, install it for development, or load a trusted file explicitly when ordinary package imports are not appropriate.

Add millisecond timestamps to Apache access logs
Explainer

Add millisecond timestamps to Apache access logs

Use Apache LogFormat timestamp fractions correctly, and distinguish wall-clock timestamps from request duration in milliseconds or microseconds.

Centralize logs from Docker on Elastic Beanstalk
Explainer

Centralize logs from Docker on Elastic Beanstalk

Choose CloudWatch streaming, a collector, or direct application delivery, and account for platform-specific log paths and instance replacement.

Log monitoring dashboard illustration
Explainer

Kafka Connect, Filebeat, and Logstash: different jobs in a data pipeline

Compare Kafka integration, file collection, and event processing, then choose the combination that matches your sources, transformations, and recovery needs.

Log monitoring dashboard illustration
Explainer

Why a field appears in Kibana but cannot be searched

Inspect mappings, field capabilities, stored values, and data view metadata to find why a visible Kibana field is not searchable or aggregatable.

Python programming and application logging
Explainer

Limit decimal places in Python

Use formatting for fixed-width display, round for a rounded numeric result, and Decimal when the required policy is defined in decimal arithmetic.

Log monitoring dashboard illustration
Explainer

Build and debug Logstash Grok patterns

Combine Grok patterns into a complete parser, capture typed fields, and test matching, escaping, and failure handling against real log lines.

Illustration of Linux system logging
Explainer

Enable the MySQL general query log

Capture client SQL in a MySQL table or file, preserve existing logging settings, and switch off a diagnostic capture when it is no longer needed.

Choose tools for analyzing IIS logs
Explainer

Choose tools for analyzing IIS logs

Query IIS W3C logs with Log Parser Studio, generate reports with WebLog Expert or GoAccess, and verify field order and UTC timestamps.