liveBook · Manning

Log Monitor

As explained in Learn Docker in a Month of Lunches, Second Edition

Log Monitor is a Microsoft console utility that collects application logs from configured Windows sources and writes them to standard output.

Log Monitor is a Microsoft console utility for Windows containers. It reads configured application logs from files, Event Log, and Event Tracing for Windows, then writes them to standard output so Docker can collect them as container logs. section 13.2

Use Log Monitor when a Windows application does not naturally write logs to the container output stream:

  • Wrap the application process with Log Monitor and configure its log sources. section 13.2
  • Forward file, Event Log, and ETW entries to standard output for Docker. section 13.2
  • Combine it with Service Monitor when the application runs as a Windows Service. section 13.2

Legacy IIS application

An IIS web application can continue writing logs to files while Log Monitor exposes those entries as ordinary Docker container logs, avoiding an application rewrite. section 13.2

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Defines the utility, supported log sources, and process-wrapping role but does not show configuration syntax.
Examples
Uses IIS applications that write logs to files and legacy Windows services as integration examples.
What it assumes
Assumes familiarity with Docker containers and Windows application logging while introducing the single-process container constraint.
What you can do after
Operate legacy Windows applications as observable Docker containers without changing their existing logging behavior.
How it connects
Connects Windows containers, Docker, IIS, Service Monitor, Event Log, and Event Tracing for Windows.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.