Data collection and Ubuntu on WSL

Note

This page refers to behaviour introduced in Ubuntu 26.04 LTS (Resolute Racoon).

Ubuntu includes opt-in, anonymous collection of system data to assist the Ubuntu development team in maintaining and improving Ubuntu.

The data collected cannot be used to track individual machines or users.

This page includes a general explanation of data collection on Ubuntu, as well as specifics unique to Ubuntu on WSL.

When is data collected?

Ubuntu on WSL collects and uploads data following initial setup, as long as the one-time script that initialises the Ubuntu instance’s environment is not bypassed.

When using WSL 2 with systemd enabled, data is also collected approximately once a month, with a delay of one week between collection and upload.

Data is also collected following a release upgrade of an existing instance, though this data is only uploaded on WSL 2 instances with systemd enabled.

What kind of information is collected?

If you opt in, anonymous data related to your system is collected. This includes information, such as your hardware configuration, timezone, and language. We also may collect WSL-specific information, such as your WSL version, kernel version, and if you have interoperability enabled.

Personal information, including usernames and IP addresses, is not collected.

Should you opt out, no information is collected and sent beyond a simple opt-out notification.

Can I see a preview of the data being collected?

During the consent prompt of the initial Ubuntu setup, you can view an example report to inform your choice about whether to opt in or opt out.

Running the following command from within your WSL instance will generate a new report without writing it to disk or uploading it:

$ ubuntu-insights collect --dry-run

You may also navigate to ~/.cache/ubuntu-insights within your WSL instance to see what has already been collected and what has been uploaded.

Further reading