LsVarLibRsyslog - command ls -lZ /var/lib/rsyslog
¶
-
class
insights.parsers.ls_var_lib_rsyslog.
LsVarLibRsyslog
(*args, **kwargs)[source]¶ Bases:
insights.core.CommandParser
,insights.core.FileListing
Warning
This class is deprecated and will be removed from 3.5.0. Please use the
insights.parsers.ls.LSlanZ
instead.Parses output of
ls -lZ /var/lib/rsyslog
command.Sample output:
total 4 -rw-------. 1 root root system_u:object_r:syslogd_var_lib_t:s0 127 Nov 30 03:40 imjournal.state
Examples
>>> rsyslog_obj.dir_contains('/var/lib/rsyslog', 'imjournal.state') True >>> imjournal_entry = rsyslog_obj.dir_entry('/var/lib/rsyslog', 'imjournal.state') >>> imjournal_entry['se_type'] 'syslogd_var_lib_t'