openedx-vlead / college-cloud

1 stars 2 forks source link

Fetch analytics from "Portable Hard drive", functional in a workshop #2

Closed ashay-maheshwari closed 7 years ago

ashay-maheshwari commented 7 years ago

Simple process of how analytics will be stored and fetched in the portable hard drive version in a workshop -

How analytics will be stored ??

  1. User/Student will login and start using labs and performing experiment.
  2. Analytics API server(Similar to the one in web version of Open edX) will be running in the Open edX instance.
  3. When student will perform the experiment, javascript code will post data to Analytics API server.
  4. Analytics API server will write logs to Elasticsearch
  5. At the end of workshop, logs will be compressed and will be kept in a folder with date and time appended in log file name.

How workshop coordinator will fetch and share the analytics logs?

  1. Workshop coordinator will be given a a command line tool or desktop icon to click (Shell script)
  2. Command line tool or script will grab the compressed log file and will copy it on desktop.
  3. Workshop coordinator to send out the compressed log file and share it on email (analytics-admin@vlabs.ac.in)

How analytics-admin@vlabs.ac.in will restore logs?

  1. Download the compressed zip file and decompress it.
  2. Copy the compressed zip file in ELK-analytics server.
  3. Execute a simple python script which reads from this log file and writes data to elasticsearch.
ashay-maheshwari commented 7 years ago

Things got changed. This issue is closed and other issues resolving the same problem will be created.