Giter VIP home page Giter VIP logo

virt_who_jsontocsv's Introduction

-> JSON to CSV parser for virt-who raw data

This is a small project that helps in parsing the raw json mapping collected by virt-who service into a human-readable csv format.

  1. Information about the files in this repository

    • data.json : Example json data of virt-who parsed from raw virt-who output collected via virt-who -od.

    • json_to_csv.py : Main python script to convert the json structure of Host-Guest mapping into a good CSV format.

    • raw_to_json.sh : Script to extract the JSON data from raw virt-who output.

    • result.csv : Example csv output by json_to_csv.py.

    • virt-who-data.txt : Example raw virt-who -od data to test and work with.

  2. How to use ?

    • Clone this repository on Satellite or in the location where your virt-who data is present.

      # git clone https://github.com/sayan3296/virt_who_jsontocsv.git
      # cd virt_who_jsontocsv/
      
    • Enusre that the virt-who-data.txt file is present somewhere. It shoudl be provided by customer or you can use virt-who -od &> virt-who-data.txt to collect the same.

    • Process the file in this way.

      # ./raw_to_json.sh /path/to/virt-who-data.txt &> data.json
      # ./json_to_csv.py -i data.json -o result.csv
      
    • Either open the file with excel\spreadsheet type of software or read it using following command.

      # cat result.csv | column -s',' -t | less
      

virt_who_jsontocsv's People

Contributors

sayan3296 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.