LsVarOptMssqlLog - command ls -la /var/opt/mssql/log

This parser reads the /var/opt/mssql/log directory listings and uses the FileListing parser class to provide a common access to them.

class insights.parsers.ls_var_opt_mssql_log.LsVarOptMssqlLog(context, extra_bad_lines=None)[source]

Bases: insights.core.CommandParser, insights.core.FileListing

A parser for accessing “ls -la /var/opt/mssql/log”.

Examples

>>> '/var/opt/mssql/log' in ls_mssql_log
True
>>> ls_mssql_log.dir_contains('/var/opt/mssql/log', 'messages')
False