microsoft / microsoft/WSL

Windows service to listen linux logs and write to Windows Event logs

Open
#13,286 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

**Is your feature request related to a problem? Please describe.**
The problem is about observability of what users are doing inside WSL2. As an IT manager I want to use my windows log aggregator to capture linux logs (from the user activity in the linux distribution)

**Describe the solution you'd like**
I would like a predefined windows services that could listen WSL rsyslog (or others ?) and write these logs to windows event log. If a shell script independent of the distribution is provided that could be an added value.
The windows service must be resilient and be able to log everything configured in WSL. In post mortem analysis we don't want to lose traces.
Depending on how it listens WSL, the port to listen could be configured.
The predefined shell script could also be configured to identify the level of logs

**Describe alternatives you've considered**
Current solution:
- manual configuration of rsyslog to send logs to a dedicated port
- manual writing of a windows services that listen this port and write to Windows Event Log

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by researching how WSL rsyslog or other Linux logging can be received and how a Windows service writes to Windows Event Log; done would require a resilient configurable service and an optional distribution-independent shell script.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, shell
Domain
observability, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.