sos.conf(5)
β¨ NAME β¨
okay bestie, this is the sos.conf(5) page from the File Formats Manual π and it's all about sos.conf, the sos report configuration file π
πΈ DESCRIPTION πΈ
okay so sos report reads a config file at /etc/sos/sos.conf π, and there are a few subdirectories under /etc/sos that each do their own specific job π§
ngl, non-root users get to override anything in /etc/sos/sos.conf by making their own sos.conf under $HOME/.config/sos π«Ά
the order options get loaded in is:
- the system config file at
/etc/sos/sos.confπ - the user-specific config file at
$HOME/.config/sos/sos.conf(for sos components that support non-root πββοΈ) - when you run
sos report, presets, either auto-loaded because of the system config or picked with--presetπ― - command line values π
so basically: config files beat the defaults, presets beat config files, and command line values beat literally everything π
π¦ SUBDIRECTORIES π¦
these subdirectories live under /etc/sos, and each one has its own vibe π
π§© extras.d
this one stores config files for the sos_extras plugin β¨
the plugin walks through this directory, and for each file in there it runs commands or collects files (optionally with a sizelimit) π¦
an extras file should look like this π:
- empty lines, or lines starting with
#, get ignored π - lines starting with
:calladd_copy_spec, and you can optionally tack on asizelimitafter the path π - anything else gets run as a command πββοΈ
here's an example π:
command1 --arg1 val1
command2
:/path/to/file
:/path/to/files* sizelimit
β οΈ WARNING β οΈ be careful about what files you collect and what commands you run, bestie π - avoid anything potentially dangerous or system altering, like: - chaining multiple commands on one line (with pipes, semicolons, etc.) - running commands in the background - setting env.variables (those get ignored anyway) - altering a system (and yes, that includes more than just rm -rf) - be aware that no secret obfuscation happens π
π― groups.d
this one stores host group config files for sos collect π«
these files can specify any or all of the primary, nodes, and cluster-type options π
users can make their own private host groups in $HOME/.config/sos/groups.d/ π‘. if a host group has the same name in both your homedir and this directory, your homedir version wins π. when you run as non-root, sos collect saves host groups to your home dir, and it'll create the directory structure it needs if it's missing π οΈ
heads up: non-root users can load host groups defined under /etc/sos/groups.d/, but they can't write new groups or update existing ones saved there π
ββοΈ
π presets.d
this one stores preset config files for sos report π―
presets are how you save standard sets of options π
. check out sos-report (see man sos-report) for more info π§
π PARAMETERS π
there are sections for each sos component, plus global values and plugin options π§. options are set as ini-style name = value pairs π. you turn a boolean option on or off the same way you would on the command line, like process.lsof=off π
some options take a comma separated list of values π
options that don't expect a value (like all-logs or no-report) get enabled no matter what value you set π
sections get parsed in this order:
[global]π[component]π§©[plugin_options]π
π [global]
<option>β sets the (long) option value. short options (likez=auto) are not supported, so don't even try π ββοΈ
π§© [component]
each component gets its own section, and it supports the options that particular component offers β¨. you can spot them easily in the --help output for each component, like sos report --help π
π [plugin_options]
this lets you change available options for defined (and loaded) plugins π§
it takes the form plugin.option = value, for example rpm.rpmva = true π
π EXAMPLES π
okay here are some examples so you can see it in action π«Ά
to use quiet and batch mode with 10 threads:
[global]
batch=yes
build=true
threads=10
to disable the host and filesys plugins:
[report]
skip-plugins = host,filesys
to disable rpm package verification in the RPM plugin:
[plugin_options]
rpm.rpmva = off
π FILES π
/etc/sos/sos.confπ$HOME/.config/sos/sos.conf(optional) πββοΈ
π SEE ALSO π
sos-report(1)πsos-collect(1)π«sos-clean(1)π§½
okay that's the whole tea β go configure something iconic, bestie π β¨ sos configuration file Β· SOS Β· sos.conf(5) π¦π
π¦ where this page comes from
- centos-stream 10: sos 4.11.2-8.el10 Β· GPL-2.0-or-later
- centos-stream 9: sos 4.11.2-8.el9 Β· GPL-2.0-or-later
- debian trixie: sos 4.9.1-1 Β· GPL-2.0-only
- fedora 43: sos 4.10.0-3.fc43 Β· GPL-2.0-only
- fedora 43: sos 4.12.0-2.fc43
- fedora 43: sos 4.12.1-1.fc43 Β· GPL-2.0-only
- fedora 44: sos 4.11.0-1.fc44 Β· GPL-2.0-only
- fedora 44: sos 4.12.0-2.fc44
- fedora 44: sos 4.12.1-1.fc44 Β· GPL-2.0-only
- nixos 26.05: python3.13-sosreport 4.11.1
- ubuntu jammy: sosreport 4.11.2-0ubuntu0~22.04.1 Β· GPL-2.0-only
- ubuntu noble: sosreport 4.11.2-0ubuntu0~24.04.1 Β· GPL-2.0-only
- ubuntu questing: sos 4.10.0-1
- ubuntu questing: sos 4.10.2-0ubuntu0.1 Β· GPL-2.0-only
- ubuntu resolute: sos 4.10.2-1 Β· GPL-2.0-only
- ubuntu resolute: sos 4.11.2-0ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: sos 4.11.2-1 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms