https://github.com/strongbugman/sar-python-parser
parser for sar log
https://github.com/strongbugman/sar-python-parser
Last synced: about 1 year ago
JSON representation
parser for sar log
- Host: GitHub
- URL: https://github.com/strongbugman/sar-python-parser
- Owner: strongbugman
- License: gpl-3.0
- Created: 2016-08-12T03:48:20.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-17T03:59:13.000Z (almost 10 years ago)
- Last Synced: 2025-02-11T18:04:13.139Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
This program will Analysis sar log file, generate all information like {'table':{name:{field:[values,]}}, 'date',}
The sar.json is a json file format {'field key word': 'table name'} to mark the unique field and table.
## The idea
Every item in sar log can regard a table and every table has a unique field, so a unique field is a mark of table. Store this information to file sar.json.
You maybe need edit, add or remove key-value pair in sar.json makesure the table you need can be get.
## How to use
The sar_parser.py has a function parser to return a dict with all information in sar log file.Before call it, run```./sar_parser.py [log file] sar.json```for a test, you can also edit test function in sar_paser.py to print what you want.