Sysroles Fingerprint - file /var/log/sysroles.jsonl
This module provides a parser for the RHEL System Roles fingerprint data
stored in /var/log/sysroles.jsonl. The file is in JSONL (newline-delimited JSON)
format, where each line contains a separate JSON object representing a system role
execution fingerprint.
- class insights.parsers.sysroles_fingerprint.SysrolesFingerprint(context)[source]
Bases:
Parser,listParse the
/var/log/sysroles.jsonlfile containing RHEL System Roles fingerprint data in JSONL format.The parser reads each line as a separate JSON object and stores them in a list. Each record represents an execution fingerprint from the rhel-system-roles package.
Sample input:
{"date": "2026-08-03T10:15:00+02:00", "role_name": "redhat.rhel_system_roles.network", "role_path": "/usr/share/ansible/roles/linux-system-roles.network", "status": "success", "ansible_version": "2.16.3", "managed_node_distro": "RedHat-9.4", "play_hosts_number": 3, "ansible_check_mode": false} {"date": "2026-08-03T10:18:22+02:00", "role_name": "redhat.rhel_system_roles.timesync", "role_path": "/usr/share/ansible/roles/linux-system-roles.timesync", "status": "success", "ansible_version": "2.16.3", "managed_node_distro": "RedHat-9.4", "play_hosts_number": 3, "ansible_check_mode": false}
- Raises:
SkipComponent -- when the file is empty or contains no parsable data.
ParseException -- when any line contains invalid JSON.
Examples
>>> type(sysroles_fingerprint) <class 'insights.parsers.sysroles_fingerprint.SysrolesFingerprint'> >>> len(sysroles_fingerprint) 2 >>> sysroles_fingerprint[0]['role_name'] 'redhat.rhel_system_roles.network' >>> sysroles_fingerprint[0]['status'] 'success' >>> sysroles_fingerprint[0]['play_hosts_number'] 3 >>> sysroles_fingerprint[1]['role_name'] 'redhat.rhel_system_roles.timesync' >>> sysroles_fingerprint[1]['ansible_check_mode'] False