-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Siddharthvipul/parsers #38
base: master
Are you sure you want to change the base?
Siddharthvipul/parsers #38
Conversation
siddharthvipul
commented
Jun 4, 2018
- empty directories (holders) for other tools
- add smallfile parser
- add sample output of smallfile (read and write)
- add sample output of the parser
log to stderr? : False | ||
ext.attr.size : 0 | ||
ext.attr.count : 0 | ||
host = dhcp37-55.lab.eng.blr.redhat.com,thr = 00,elapsed = 22.428904,files = 1000,records = 1000,status = ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove all references to internal IPs in public code.
@@ -0,0 +1,84 @@ | |||
#!/usr/bin/python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make parsers
a python module and fix names appropriately.
attr = [] | ||
with open(file_name) as fobj: | ||
data_file = fobj.read().split("\n") | ||
for line in data_file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you looked at whether smallfile already outputs CSV and if you can use that instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With th option --output-json smallfile will output JSON data, this maybe more useful from a parsing standpoint.
smallfile does output csv, but that is more for when we give --response-times option, and records response times for each operation. Noting that here. Also, we possibly do not need that.
I would prefer parsing JSON in this case, rather than CLI output.