Ubuntu: How to generate an sosreport log bundle in Ubuntu Linux Server

Riepilogo: This article explains how to generate a sosreport log bundle for Ubuntu Linux Server.

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

The sos report is a log bundle that collects various system logs, config files, and command output from a Linux system. It is a standardized way to collect diagnostic information from the operating system for investigation by Dell domain engineers and Linux vendor support.

In Ubuntu Linux Server, the 'sosreport' package provides the sos report command, which is typically installed by default.

To verify the package installation:

$ dpkg -l sosreport
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version              Architecture Description
+++-==============-====================-============-=========================================================
ii  sosreport      4.4-1ubuntu1.22.04.1 amd64        Set of tools to gather troubleshooting data from a system

If for some reason the 'sosreport' package is not installed, it can be installed using the below command: 

$ sudo apt install sosreport

To generate a sos report in interactive mode, use either of the following commands:

$ sudo sosreport

Or

$ sudo sos report
Note: The 'sosreport' command is deprecated in favor of the newer syntax 'sos report'. However, either format works as of Ubuntu 22.04 LTS.
 

Optionally, include the --batch option for a noninteractive mode:

$ sudo sos report -–batch

The log bundle (and its associated checksum file) is typically saved in /tmp/. Older versions of Linux may save to a different location, but it is specified in the command output.

Example:

$ ls /tmp/sosreport*
/tmp/sosreport-ubuntu2204-809520-2023-05-09-nhhnjmk.tar.xz
/tmp/sosreport-ubuntu2204-809520-2023-05-09-nhhnjmk.tar.xz.sha256

Once generated, the user may require a copy of the log bundle on a local system. Usually, users use an SCP utility such as 'WinSCP' to copy and download the file. This only requires SSH access to the server.

See Ubuntu documentation sos report - Collect and package diagnostic and support data This hyperlink is taking you to a website outside of Dell Technologies.

Informazioni aggiuntive

Prodotti interessati

Ubuntu Server LTS
Proprietà dell'articolo
Numero articolo: 000217358
Tipo di articolo: How To
Ultima modifica: 30 gen 2026
Versione:  4
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.