SOS_REPORT(1)
πΈ SOS_REPORT(1) β the sos_report era, General Commands Manual, but make it cute πΈ
okay bestie, so sos_report is the manual name here, and this is the whole vibe: it collects and packages your diagnostic + support data. let's get into it π
β¨ NAME β¨
sos_report β Collect and package diagnostic and support data π
π¦ SYNOPSIS π¦
sos report
[-l|--list-plugins]
[-n|--skip-plugins plugin-names]
[-e|--enable-plugins plugin-names]
[-o|--only-plugins plugin-names]
[-a|--alloptions] [-v|--verbose]
[-k plug.opt|--plugin-option plug.opt]|--plugopts plug.opt
[--no-report] [--config-file conf]
[--no-postproc]
[--preset preset] [--add-preset add_preset]
[--note note]
[--del-preset del_preset] [--desc description]
[--batch] [--build] [--debug] [--dry-run]
[--estimate-only] [--label label] [--case-id id]
[--threads threads]
[--plugin-timeout TIMEOUT]
[--cmd-timeout TIMEOUT]
[--namespaces NAMESPACES]
[--container-runtime RUNTIME]
[-s|--sysroot SYSROOT]
[-c|--chroot {auto|always|never}
[--tmp-dir directory]
[-p|--profile profile-name]
[--list-profiles]
[--verify]
[--log-size]
[--journal-size]
[--no-env-vars]
[--all-logs]
[--since YYYYMMDD[HHMMSS]]
[--skip-commands commands]
[--skip-files files]
[--pack-dir directories]
[--allow-system-changes]
[--low-priority]
[-z|--compression-type method]
[--clean|--mask]
[--encrypt]
[--encrypt-key KEY]
[--encrypt-pass PASS]
[--upload] [--upload-url url] [--upload-user user]
[--upload-directory dir] [--upload-pass pass]
[--upload-no-ssl-verify] [--upload-method]
[--upload-protocol protocol]
[--upload-s3-endpoint endpoint]
[--upload-s3-region region]
[--upload-s3-bucket bucket]
[--upload-s3-access-key key]
[--upload-s3-secret-key key]
[--upload-s3-object-prefix prefix]
[--upload-threads threads]
[--experimental]
[-h|--help]
so many flags bestie. it's giving options menu at a boba shop π§π
π DESCRIPTION π
okay so report is an sos subcommand (a lil baby command that lives inside the big sos one, iykyk) and what it does is generate an archive of configuration and diagnostic information from the system that's currently running. like, it's taking a lil snapshot of everything π
that archive can be stored locally or centrally β for recording or tracking purposes, or it can get sent off to technical support representatives, developers, or system administrators so they can help with technical fault-finding and debugging. it's basically the "send help, here's everything" button π«Ά
Sos is modular in design (very main character architecture β¨) and it's able to collect data from a wide range of subsystems and packages that may be installed. and then β an HTML report summarizing all the collected info is optionally generated and stored inside the archive. cute, right? π
β οΈ Note: thesosreportcommand has been deprecated and will be removed insos-4.9. Use the newsos reportsyntax instead. no cap, please migrate bestie π
π OPTIONS π
-l,--list-pluginsβ Lists every plugin that's available, plus their options. Plug-ins that wouldn't be enabled by the current configuration get listed separately, so you can tell the difference π-n,--skip-plugins PLUGNAME[,PLUGNAME]β Turn OFF the plugin(s) you name. You can stack multiple plug-ins by repeating the option, or just smush them into one comma-separated list π«β¨-e,--enable-plugins PLUGNAME[,PLUGNAME]β Turn ON the plugin(s) you name that would otherwise be disabled. Same deal: repeat the option or use a comma-separated list π
heads up: if you're using-p,--profile, this option will not enable further plugins. Use-o,--only-pluginsto extend the list of plugins enabled by profiles. okay? okay π«Ά
-o,--only-plugins PLUGNAME[,PLUGNAME]β Enable only the plugin(s) you name, and everything else should be disabled. all eyes on you, chosen plugins π again: repeat the option or comma-separate them.-k PLUGNAME.PLUGOPT[=VALUE],--plugin-option=PLUGNAME.PLUGOPT[=VALUE],--plugopts=PLUGNAME.PLUGOPT[=VALUE]β Specify plug-in options. The optionPLUGOPTgets enabled, or gets set to the value you specify, inside the plug-inPLUGNAMEποΈ-a,--alloptionsβ Set every boolean option toTruefor all enabled plug-ins. yes, all of them. go off π-v,--verboseβ Turn the logging verbosity up. You can pass it multiple times to unlock additional debugging messages π₯-q,--quietβ Only log fatal errors tostderr. shhh π€«--no-reportβ Disable HTML report writing. no HTML bestie, we're going raw πΈ--config-file CONFIGβ Specify an alternate configuration file π--no-postprocβ Disable postprocessing globally for all plugins. This means data is not obfuscated/sanitized from the archive during collection.
π¨ Note that this means data such as password, SSH keys, certificates, etcβ¦ will be collected in plain text. like, glaringly plain text. be so serious about this one π
To selectively disable postprocessing on a per-plugin basis, use the 'postproc' plugin option available to all plugins, e.g. '-k podman.postproc=off'. π
--preset PRESETβ Specify an existing preset to use forsosoptions.
Presets are pre-configured sets of options for both sos and sos plugins. Like, a preset might enable a certain set of plugins, disable others, or enable specific plugin options. They may also specify sos options such as log-size or package verification. it's giving "saved settings" but make it powerful β¨
User defined presets are saved under /etc/sos/presets.d as JSON-formatted files. πΎ
--add-preset ADD_PRESET [options]β Add a preset with the nameADD_PRESETthat enables[options]when it's called.
For example, 'sos report --add-preset mypreset --log-size=50 -n logs' will enable a user to run 'sos report --preset mypreset' that sets the maximum log size to 50 and disables the logs plugin. iconic behavior honestly π«Ά
Note: to set a description for the preset that's displayed with--list-presets, use the--descoption.
Note: to set a behaviour note of the preset, use --note option.
Note: the root filesystem, as seen by sos if running within a container, must be writable to save presets using this option. no write access, no preset, sorry bestie π
--del-preset DEL_PRESETβ Deletes the preset with the nameDEL_PRESETfrom the filesystem so that it can no longer be used. bye bye π--list-presetsβ Display a list of available presets AND what options they carry. the full tea β--desc DESCRIPTIONβ When using--add-preset, use this option to add a description of the preset that will be displayed when using--list-presetsπ¬--note NOTEβ When using--add-preset, use this option to add a behaviour note to the preset that will be displayed when using--list-presets.
This is useful for documenting specific behaviours, caveats, or use-cases for the preset beyond the basic description. like a lil sticky note on your fave preset π
-s,--sysroot SYSROOTβ Specify an alternate root file system path. Super useful for collecting reports from containers and images π³-c,--chroot {auto|always|never}β Set the chroot mode. When--sysrootis used, commands default to executing withSYSROOTas the root directory (unless that's disabled by a specific plugin). You can override this by setting--chrootto"always"(always chroot) or"never"(always run in the host namespace). pick your fighter π₯--tmp-dir DIRECTORYβ Specify an alternate temporary directory to copy data into, as well as where the compressed report goes ποΈ--list-profilesβ Display a list of available profiles and the plugins that they enable π-p,--profile,--profiles NAMEβ Only run plugins that correspond to the given profile. Multiple profiles may be specified as a comma-separated list; the set of plugins executed is the union of each of the profile's plugin sets. teamwork makes the dream work π«
Note that if there are specific plugins outside of the profile(s) passed to this option that you'd also want to enable, use-o,--only-pluginsto add those plugins to the list.
See sos report --list-profiles for a list of currently supported profiles π
--verifyβ Instructs plugins to perform plugin-specific verification during data collection. This may include package manager verification, log integrity testing, or other plugin defined behaviour. Use of--verifymay cause the time taken to generate a report to be considerably longer. worth it? maybe. slow? yes π--log-sizeβ Places a limit on the size of collected logs and output, in MiB. Note that this causessosto capture the lastXamount of the file or command output collected.
By default, this is set to 25 MiB and applies to all files and command output collected β with the exception of journal collections, which are limited by the --journal-size option instead.
Setting this value to 0 removes all size limitations, and any files or commands collected will be collected in their entirety. which may drastically increase the size of the final sos report tarball and the memory usage of sos during collection of commands. huge. be careful π
--journal-sizeβ Places a limit on the size of journals collected, in MiB. Note that this causessosto capture the lastXamount of the journal.
By default, this is set to 100 MiB. Setting this value to 0 removes all size limitations, as does the use of the --all-logs option. This may drastically increase the size of the final sos report tarball π³
--all-logsβ Tell plugins to collect all possible log data, ignoring any size limits and including logs in non-default locations. This option may significantly increase the size of reports. all the logs, no crumbs left π§Ήβ¨--no-env-varsβ Do not collect environment variables in the report.
By default, sos report collects environment variables from the system, which may contain sensitive information. Use this option to exclude environment variable collection for privacy or security reasons. Note that this may limit the usefulness of the report for debugging environment-related issues β so it's a tradeoff, bestie βοΈπ
--since YYYYMMDD[HHMMSS]β Limits the collection of log archives to those newer than this date. A log archive is any file not found in/etc, that has either a numeric or a compression-type file extension for example".zip",".1",".gz"etc.). This also affects--all-logs. The date string will be padded with zeros ifHHMMSSis not specified. β°π--skip-commandsCOMMANDS β bestie this is a comma delimited list of commands to skip execution of, but (and this is the important bit) the rest of the plugin that calls the command still runs. π This generally needs to be some form of UNIX shell-style wildcard matching. So like, a value ofhostnameskips only that single command, whereashostname*skips every command whose name begins with the string"hostname". wildcards really said "I contain multitudes" β¨--skip-filesFILES β a comma delimited list of files or filepath wildcard matches to skip collection of. π Values may either be exact filepaths or paths using UNIX shell-style wildcards, for example/etc/sos/*. no cap, exact paths and vibes-paths are both valid here.--pack-dirDIRECTORIES β a comma delimited list of collected directories to replace with a single tarball within the report, for example/proc/fs/. π«Ά The named directory gets packed into an uncompressed tarball alongside it (e.g.proc/fs/becomesproc/fs.tar) and the original tree is removed; the rest of the report is unchanged. This is the moment for verbose trees holding a very large number of tiny little files, where extracting the report would otherwise have to recreate every single file on disk π. The tarball is not compressed here since the whole report gets compressed when packaged. Directories not collected as a directory are skipped. May be repeated. π--allow-system-changesβ run commands even if they can change the system (e.g. load kernel modules). she's dangerous but she's doing it on purpose π--low-priorityβ set sos to execute as a low priority process so that it does not interfere with other processes running on the system. πΈ Specific distributions may set their own constraints, but by default this involves setting process niceness to19and, if available, setting an idle IO class viaionice. respect the other processes bestie, they're also main characters.--clean,--cleaner,--maskβ enable inline obfuscation/cleaning of the generated report. β¨
When this option is used, the report will be processed to obfuscate sensitive information such as hostnames, IP addresses, MAC addresses, and user-specified keywords during generation, rather than as a separate post-processing step. (cleaning while generating?? she's multitasking, we love a girlboss π)
Additional cleaning/masking options (such as --domains, --keywords, --map-file, --usernames, etc.) control the cleaning behavior. For documentation of all cleaning options, see sos-clean(1).
-z,--compression-typeMETHOD β override the default compression type specified by the active policy. π the policy said one thing, you said another, and honestly? you're right.--encryptβ encrypt the resulting archive, and determine the method by which that encryption is done by either a user prompt or environment variables. π
When run with --batch, using this option will cause sos to look for either the SOSENCRYPTKEY or SOSENCRYPTPASS environment variables. If set, this will implicitly enable the --encrypt-key or --encrypt-pass options, respectively, to the values set by the environment variable. This enables the use of these options without directly setting those options in a config file or command line string. Note that use of an encryption key has precedence over a passphrase.
Otherwise, using this option will cause sos to prompt the user to choose the method of encryption to use. Choices will be [P]assphrase, [K]ey, [E]nv vars, or [N]o encryption. If passphrase or key the user will then be prompted for the respective value, env vars will cause sos to source the information in the manner stated above, and choosing no encryption will disable encryption.
See the sections on --encrypt-key and --encrypt-pass below for more information.
--encrypt-keyKEY β encrypts the resulting archive that sos report produces using GPG. π KEY must be an existing key in the user's keyring as GPG does not allow for keyfiles. KEY can be any value accepted by gpg's'recipient'option.
Note that the user running sos report must match the user owning the keyring from which keys will be obtained. In particular this means that if sudo is used to run sos report, the keyring must also be set up using sudo (or direct shell access to the account). π«Ά
Users should be aware that encrypting the final archive will result in sos using double the amount of temporary disk space β the encrypted archive must be written as a separate, rather than replacement, file within the temp directory that sos writes the archive to. However, since the encrypted archive will be the same size as the original archive, there is no additional space consumption once the temporary directory is removed at the end of execution.
This means that only the encrypted archive is present on disk after sos finishes running.
If encryption fails for any reason, the original unencrypted archive is preserved instead. π a safety net, periodt.
--encrypt-passPASS β the same as--encrypt-key, but use the provided PASS for symmetric encryption rather than key-pair encryption. π--batchβ generate archive without prompting for interactive input. no questions, no waiting, she just goes. β¨--nameNAME β deprecated. See--label. π« she's a legacy girl, retired.--labelLABEL β specify an arbitrary identifier to associate with the archive. Labels will be appended after the system's short hostname and may contain alphanumeric characters. π--threadsTHREADS β specify the number of threads sos report will use for concurrency. Defaults to4. π₯ parallel girlie activities.--plugin-timeoutTIMEOUT β specify a timeout in seconds to allow each plugin to run for. A value of0means no timeout will be set. A value of-1is used to indicate the default timeout of300seconds. β°
Note that this option sets the timeout for all plugins. If you want to set a timeout for a specific plugin, use the 'timeout' plugin option available to all plugins β e.g. '-k logs.timeout=600'.
The plugin-specific timeout option will override this option. For example, using '--plugin-timeout=60 -k logs.timeout=600' will set a timeout of 600 seconds for the logs plugin and 60 seconds for all other enabled plugins.
--cmd-timeoutTIMEOUT β specify a timeout limit in seconds for a command execution. Same defaults logic from--plugin-timeoutapplies here. β°
This option sets the command timeout for all plugins. If you want to set a cmd timeout for a specific plugin, use the 'cmd-timeout' plugin option available to all plugins β e.g. '-k logs.cmd-timeout=600'.
Again, the same plugin/global precedence logic as for --plugin-timeout applies here.
Note that setting --cmd-timeout (or -k logs.cmd-timeout) high should be followed by increasing the --plugin-timeout equivalent, otherwise the plugin can easily timeout on slow commands execution. π don't skip this part bestie, she WILL abandon you mid-command.
--namespacesNAMESPACES β for plugins that iterate collections over namespaces that exist on the system, for example the networking plugin collectingipcommand output for each network namespace, use this option to limit the number of namespaces that will be collected. π
Use '0' (default) for no limit β all namespaces will be used for collections.
Note that specific plugins may provide a similar namespaces plugin option. If the plugin option is used, it will override this option.
--container-runtimeRUNTIME β force the use of the specified RUNTIME as the default runtime that plugins will use to collect data from and about containers and container images. π³ By default, the setting ofautoresults in the local policy determining what runtime will be the default runtime (in configurations where multiple runtimes are installed and active).
If no container runtimes are active, this option is ignored. If there are runtimes active, but not one with a name matching RUNTIME, sos will abort. π
Setting this to none, off, or disabled will cause plugins to NOT leverage any active runtimes for collections. Note that if disabled, plugins specifically for runtimes (e.g. the podman or docker plugins) will still collect general data about the runtime, but will not inspect existing containers or images.
Default: 'auto' (policy determined).
--case-idNUMBER β specify a case identifier to associate with the archive. Identifiers may include alphanumeric characters, commas and periods ('.'). ποΈ--buildβ do not archive copied data. Causes sos report to leave an uncompressed archive as a temporary file or directory tree. π no zip, no tar, just the raw tree sitting there.--debugβ enable interactive debugging using the python debugger. Exceptions in sos or plug-in code will cause a trap to thepdbshell. π we love a dramatic exit into a debugger--dry-runβ execute plugins as normal, but do not collect any file content, command output, or string data from the system. The resulting logs may be used to understand the actions that sos would have taken without the dry run option. β¨ a rehearsal, a lil dress rehearsal, no data actually touched.--estimate-onlyβ estimate disk space requirements when running sos report. This can be valuable to prevent sos report working dir to consume all free disk space. No plugin data is available at the end. π¬
Plugins will be collected sequentially, size of collected files and commands outputs will be calculated and the plugin files will be immediately deleted prior execution of the next plugin. This still can consume whole free disk space, though. π
Please note, size estimations may not be accurate for highly utilized systems due to changes between an estimate and a real execution. Also some difference between estimation (using stat command) and other commands used (i.e. du).
A rule of thumb is to reserve at least double the estimation. π«Ά
--uploadβ if specified, attempt to upload the resulting archive to a vendor defined location. π€
This option is implied if --upload-url is used.
You may be prompted for a username and password if these are not defined by the vendor as well. If these credentials are not provided, sos will still run and create an archive but will not attempt an automatic upload, instead relying on the end user to upload it as needed. πΈ
The sos report archive will still remain on the local filesystem even after a successful upload β like, it doesn't ghost you, it's still right there in your files. πΎ
Also bestie, heads up: depending on what distribution sos is running on, or the vendor policy it sniffs out while executing, there might be dependencies that aren't, like, strictly required by the package at installation time. It's giving "we'll see when we get there." π
For example, for HTTPS uploads the python-requests library has to be available. If it's not available, HTTPS uploads just won't be attempted. Periodt.
--upload-url URLβ If a vendor doesn't hand you a default upload location, or if you wanna send the archive somewhere else entirely, drop the address right here. π A support protocol MUST be specified in this URL, no cap. Currently uploading is supported forHTTPS,SFTP, andFTPprotocols. And if your destination server listens on a non-standard port, specify the listening port in the URL.--upload-user USERβ If a vendor doesn't give a default user for uploading, put the username here. If this option isn't used and upload is requested, and there's no vendor default set, you'll get prompted for one. But if--batchis used and this option is omitted, no username will be collected at all, and thus uploads will fail if no vendor default is set. π You can also slide this value in via theSOSUPLOADUSERenvironment variable β if that variable is set, no username prompt will occur and--batchmay be used, provided all other required values (case number, upload password) are provided. This option is ignored when uploading to the Red Customer Portal or Red Hat Secure FTP server in favour of web token authentication.--upload-pass PASSβ Specify the password to use for authentication with the destination server. If this option is omitted and upload is requested, you'll be prompted for one. If--batchis used, that prompt will not happen, so any uploads are likely to fail unless this option is used.
β οΈ Real talk: this may result in the plaintext string showing up inpsoutput that may be collected by sos and end up in the archive. If you must provide a password for uploading, it is strongly recommended to not use--batchand instead enter the password when prompted rather than using this option. Protect yourself first, bestie. π
You also have the option of providing this value via the SOSUPLOADPASSWORD environment variable. If that variable is set, no password prompt will occur and --batch may be used, provided all other required values (case number, upload user) are provided. This option is ignored when uploading to the Red Customer Portal or Red Hat Secure FTP server in favour of web token authentication.
--upload-directory DIRβ Specify a directory to upload to, if one isn't specified by a vendor default location, or if your destination server doesn't allow writes to'/'.π«--upload-method METHODβ Specify the HTTP method to use for uploading to the provided--upload-url. Valid values are'auto'(default),'put', or'post'. Using'auto'will default to the method required by the policy-default upload location, if one exists. This option has no effect on upload protocols other than HTTPS.--upload-no-ssl-verifyβ Disable SSL verification for HTTPS uploads. This may be used to allow uploading to locations that have self-signed certificates, or certificates that are otherwise untrusted by the local system. π Default behavior is to perform SSL verification against all upload locations.--upload-protocol PROTOβ Manually specify the protocol to use for uploading to the target upload-url. Normally this is determined via the upload address, assuming the protocol is part of the address provided, e.g.'https://example.com'. By using this option, sos will skip the protocol check and use the method defined for the specified PROTO. For RHEL systems, setting this option tosftpwill skip the initial attempt to upload to the Red Hat Customer Portal, and only attempt an upload to Red Hat's SFTP server, which is typically used as a fallback target. Valid values for PROTO are:'auto'(default),'https','ftp','sftp','s3'.--upload-s3-endpoint ENDPOINTβ Endpoint to upload to for S3 bucket.--upload-s3-region REGIONβ Region to upload to for S3 bucket.--upload-s3-bucket BUCKETβ Name of the S3 bucket to upload to.--upload-s3-access-key KEYβ Access key for the S3 bucket.--upload-s3-secret-key KEYβ Secret key for the S3 bucket.--upload-s3-object-prefix PREFIXβ Prefix for the S3 object/key.--upload-threads THREADSβ Number of threads to use for multipart uploads (1-16, default:4). When an archive exceeds a certain size, defined in the targets, it is uploaded in parallel chunks using this many threads. Higher values speed up the upload but consume more bandwidth and memory, as each thread holds a128 MiBchunk in memory. πββοΈπ¨--experimentalβ Enable plugins marked as experimental. Experimental plugins may not have been tested for this port or may still be under active development. π§ͺ--helpβ Display usage message.
β¨ SEE ALSO β¨
sos(1) sos-clean(1) sos-collect(1) sos.conf(5)
π MAINTAINER π
Maintained on GitHub at https://github.com/sosreport/sos
π«Ά AUTHORS & CONTRIBUTORS π«Ά
See AUTHORS file in the package documentation.
And that's the whole page, bestie β this version lives in SOS_REPORT(1) and it's dated Mon Mar 25 2013. Iconic from day one, no notes. π
πΈβ¨
π¦ where this page comes from
- fedora 43: sos 4.12.1-1.fc43 Β· GPL-2.0-only
- fedora 44: sos 4.12.1-1.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms