Skip to content
Bash script generating a fully responsive HTML page with CSS containing useful system information, cloud instances metadata, Auth and HTTP logs parsed with colors.
Shell CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
log2htmlAWS.sh
log2htmlDO.sh
log2htmlVM.sh
style.css

README.md

log2html

Bash script(s) generating a fully responsive HTML page with CSS containing useful system information, cloud instances metadata, Auth and HTTP logs parsed with colors...

Description

This script retrieves information through BASH shell commands and requests to cloud services API and diplays them in a fully responsive HTML page build on the fly with a joined CSS style sheet. Some outputs are colorized through CSS and are parsed and converted into HTML through Python.

Repository content

There are four files in the repository:

  • One for classical VMWare Linux virtual machines.
  • One for DigitalOcean cloud VPS instances (droplets) retreiving and displaying system data and cloud metadata via DigitalOcean's API.
  • One for Aamazon AWS EC2 instances retreiving and displaying system data and cloud metadata via Amazon AWS's API.
  • One CSS stylesheet, style.css, containing main styles and responsive programming.

Pre-requisites

You will need Python ≥ 2 and Pygments http://pygments.org/. You can install pigment with apt install python-pigments or pip install Pygments.

Details

When build the web page will display all the common and useful system informatiom as:

  • hostname public and private
  • instance id and region
  • disk and memory usage
  • users logged in
  • OS and kernel information
  • date and uptime
  • system network and cloud infrastructure network information
  • auth and HTTP access log (for Nginx and Apache)

Screenshots

Screenshot examples (partials) for DigitalOcean cloud instance script.

Host section: Program generated web page screenshot Network section: Program generated web page screenshot Resources section: Program generated web page screenshot Logs sections: Program generated web page screenshot Program generated web page screenshot

You can’t perform that action at this time.