Whoopsie - command /usr/bin/find /var/crash /var/tmp -path '*.reports-*/whoopsie-report' -print -quit

class insights.parsers.whoopsie.Whoopsie(context, extra_bad_lines=None)[source]

Bases: insights.core.CommandParser

Class for parsing the /usr/bin/find /var/crash /var/tmp -path '*.reports-*/whoopsie-report' -print -quit command.

uid

uid parsed from the file path

Type

string

file

the line parsed from the command output

Type

string

Sample output of this command is:

/var/crash/.reports-1000-user/whoopsie-report

Examples

>>> type(whoopsie)
<class 'insights.parsers.whoopsie.Whoopsie'>
>>> whoopsie.uid
'1000'
>>> whoopsie.file
'/var/crash/.reports-1000-user/whoopsie-report'
parse_content(content)[source]

This method must be implemented by classes based on this class.