Skip to main content

Python library for parsing PBS accounting logs

Project description

The pbsacct Python module is an inteface for processing accounting log data from the various PBS variants (TORQUE, PBS Pro, and OpenPBS), including the support sending that data to a database for persistance and analysis. DB persistance is currently supported for MySQL/MariaDB, with SQLite and PostgreSQL in various stages of development.

For example, here is a simple example of using the module to read a TORQUE accounting log file and print information about the jobs logged therein:

#!/use/bin/env python
import pbsacct
jobs = pbsacct.jobs_from_file("/var/spool/torque/server_priv/accounting/20180627")
for jobid in jobs.keys():
  job = jobs[jobid]
  print "%s: user=%s group=%s account=%s" % \
# Here endeth the program

More complete examples (including DB connectivity) can be found at:

The pbsacct Python module is part of the pbstools collection of utilities:

Project details

Download files

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

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

pbsacct-3.4.6-py2.py3-none-any.whl (14.5 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page