Skip to content

Query

Query

This will query an AWS Athena database for use statistics and save them to csv files to the location specified with the --out option

Usage

Run as user pam on cetacean.shore.mbari.org

export HOME=/opt/pam/deployed
python opendata/run.py query_logs --start 2022-04 --out /PAM_Analysis/  

Options can be seen with the --help option, e.g. opendata query_logs --help

  Query opendata access logs for high-level view of total downloads, unique ip
  addresses of accessors, etc.

Options:
  --start TEXT  Year and month to process in date in yyyy-mm format
  --out TEXT    Absolute path to store the output
  -h, --help    Show this message and exit.