Skip to main content

Get sosreport dynflow files and generates user friendly html pages for tasks, plans, actions and steps

Project description

dynflowparser

Reads the dynflow files from a sosreport and generates user friendly html pages for Tasks, Plans, Actions and Steps

  • Only unsuccessful Tasks are parsed by default. (Use '-a' to parse all).
  • Failed Actions & Steps are automatically expanded on the Plan page for easy error location.
  • Indented Actions & Steps json fields.
  • Useful data on header: Hostname, Timezone, Satellite version, RAM, CPU, Tuning.
  • Dynflow UTC dates are automatically converted to honor sosreport timezone according to "/sos_commands/systemd/timedatectl".
  • Automatically opens output on default browser.
  • Lynx friendly.
Tasks list Task details Lynx

Dependencies

Required python libraries:

  • python3-dateutil
  • python3-jinja2

Usage

Usage: dynflowparser.py [Options] [INPUTDIR] [OUTPUTDIR]
  Options:
    [-a|--all]: Parse all Plans. By default only unsuccess are parsed.
    [-d|--debug]: Debug level [D,I,W,E]. Default Warning.
    [-f|--from]: Filter events running from this datetime.
    [-h|--help]: Show help.
    [-n|--nosql]: Reuse existent sqlite file. (Useful for self debuging)
    [-t|--to]: Filter events running up to this datetime.
    [-q|--quiet]: Quiet. Don't show progress bar.
  Arguments:
    [INPUTDIR]: Default is current path.
    [OUTPUTDIR]: Default is current path plus '/dynflowparser/'.

Limitations

  • sosreport by default requests last 14 days.
  • sosreport truncates output files at 100M, hence some records could be missing.
  • Only Dynflow schema version 24 is supported. (v20 is not CSV compliant)

How to accurately export tasks.

Included export-tasks.sh can be used to overcome sosreport size limitations and get an accurate tasks export tarball. Just execute it as follows.

Usage: export-tasks.sh DAYS RESULT
  DAYS: Number of days to export.
  RESULT: Filter exported tasks by result: [all cancelled error pending warning].
Example: ./export-tasks.sh 3 all

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynflowparser-0.0.1.dev54.tar.gz (583.6 kB view details)

Uploaded Source

File details

Details for the file dynflowparser-0.0.1.dev54.tar.gz.

File metadata

  • Download URL: dynflowparser-0.0.1.dev54.tar.gz
  • Upload date:
  • Size: 583.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for dynflowparser-0.0.1.dev54.tar.gz
Algorithm Hash digest
SHA256 c10542acc98a28afb89e0e20f8b63262150d66d85edd00f9a8f3355c55998918
MD5 e7b75b571bb3dd0c1046b64e3d46b850
BLAKE2b-256 80125c474066fedc95451c22de6a5096d04e1ca47d8385088a0f043dbfdefa8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page