Generate phone log records from existing log files

There are times you may need to generate phone log records from previous days. To do this, you will want to use the generate_log_past_days.py utility.

This command can be executed as any standard python routine and expects the following arguments:

  • ll-log-directory – this is the directory where the logs files to process are located.
  • number of days – you can optionally specify the number of days worth of logs to process.

Below is an example using the utility to scan the previous 2 days of logs

python generate_log_past_days.py ./cfmc/logs 2

If the key valuesSERVER_ADDRESS and SERVER_KEY values are set in settings.py the routine will push the data to the Survox xLOG service.