HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //lib/python3.6/site-packages/sos/report/plugins/__pycache__/container_log.cpython-36.pyc
3

\��h*�@s2ddlZddlmZmZmZGdd�dee�ZdS)�N)�Plugin�IndependentPlugin�	PluginOptc@sTeZdZdZdZdZdZededgZefZe	dde
d	d
�gZdd�Zd
d�Z
dS)�ContainerLogz"All logs under /var/log/containersZ
container_logz/var/log/containers/z/var/log/pods/z	*/*.log.*z*/*/*.log.*�rotatedFz(also get rotated logs from /var/log/pods)�defaultZval_typeZdesccCsX|jd�r.|j|j�|jd�rT|j|j�n&|j|jd�|jd�rT|j|jd�dS)NZall_logsrz*.logz*.log.*)Z
get_option�
add_copy_spec�logdir�rotated_dirs�collect_subdirs�poddir)�self�r�#/usr/lib/python3.6/container_log.py�setups


zContainerLog.setupcCs0x*tj|�D]\}}}|j|j||��qWdS)z=Collect *.log files from subdirs of passed root path
        N)�os�walkrZ	path_join)r
�rootZglobZdir_name�_rrrr'szContainerLog.collect_subdirsN)�__name__�
__module__�__qualname__Z
short_descZplugin_namer	rr
�filesr�boolZoption_listrrrrrrrs

r)rZsos.report.pluginsrrrrrrrr�<module>s