This section will guide you through the process of generating a savings and migration report using the provided cost calculation script.
Prerequisites:
Ensure the following Python packages are installed:
pandas
xlsxwriter
Running the Scanning Script:
Step 1: Check whether you have the prerequisite pandas
and xlsxwriter
are installed. if If not, run:
Code Block |
---|
pip3 install pandas xlsxwriter |
...
-l, --logs
: Location of log files to parse: must be a directory. (default: /var/log/xspot/latest)-w, --worker
: Number of worker processes for scanning. (default: number of CPUs minus one)-s, --start
: Start day in UTC (in date format: 2022YYYY-
03MM-
17DD
). (default: 30 days ago)-e, --end
: End day in UTC (in date format: 2022YYYY-
03MM-
17DD
). (default: tomorrow)-n, --num_days
: Number of days: start with today or number of days since, and end with end of day today, overriding any-s
or-e
entry entry. (default is : this parameter is not used)-o, --output
: Output file name. (default: ./out.xlsx)
...