Guance Learn

Observability questions

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

Python programming and application logging
Explainer

Create a virtual environment with a specific Python version

Select an installed interpreter with virtualenv or invoke that interpreter’s venv module, then verify which Python and pip the environment uses.

Log monitoring dashboard illustration
Explainer

Parse JSON logs in Logstash

Choose a JSON input codec or JSON filter, preserve nested fields, parse event timestamps, and keep failed messages available for troubleshooting.

Python programming and application logging
Explainer

Share Python logging configuration across modules

Create a named logger in each module and configure handlers at application startup, with explicit control over propagation and existing loggers.

Illustration of software components, data, and application workflows
Explainer

Install and run pytest in a virtual environment

Create an isolated test environment, install the declared dependencies, and point terminal, IDE, and CI runs at the same Python interpreter.

Python programming and application logging
Explainer

Use relative imports inside a Python package

Import sibling and parent-package modules with leading dots, run package modules with -m, and avoid confusing package hierarchy with filesystem paths.

Python programming and application logging
Explainer

Use Python’s conditional expression

Choose between two values with value_if_true if condition else value_if_false, and keep false values distinct from missing values.

Illustration of scheduled jobs, logs and Linux operations
Explainer

Find cron logs on Ubuntu, Debian and RHEL-family Linux

Locate scheduler events in syslog or the journal, route them to a dedicated file, and capture job results separately.

Engineering troubleshooting and monitoring illustration
Explainer

Filter Git commits by author

Use git log author and committer filters, choose literal or regex matching, and count commits within an explicit revision scope.

Illustration of server operations and log analysis
Explainer

View logs from Docker Compose services

Follow all services or one service, bound the retained output, export a snapshot, and find logs from one-off containers.

Illustration of Linux system logging
Explainer

Where are PostgreSQL log files stored?

Locate PostgreSQL logs using active settings and pg_current_logfile, then distinguish collector files from service-manager and container output.

Illustration of software components, data, and application workflows
Explainer

Show print output while pytest runs

Disable stream capture for serial debugging, use tee capture when you still need reports, and configure live logging separately from print output.

Illustration of collecting, processing, and monitoring logs
Explainer

View and filter system logs on Ubuntu

Find Ubuntu syslog files or journal records, filter by service and severity, and account for rotation, permissions, and timezone settings.