This is a rough but effective script for generating data for Liquibase logs.
Essentially, the generate_liquibase_data.py
loads all the files from mdclogfiles
and then uses them as templates to generate lots of Liquibase logs.
TLDR: How much data do you want to generate? This is how many times the main for
loop will iterate.
Slightly more nuanced, one cycle
= one hour
. So, from the perspective of time series data, CYCLES = 720
--> 720 hours / 24 hours = 30 days.
To generate data, set the number of CYCLES
you want to generate, and then run the following command:
python3 ./generate_liquibase_data.py
- Navigate to http://cloud.elastic.co
- Create a cloud instance
- Take the cloud credentials and add them to the
load_data_into_elasticsearch.py
file - Generate Liquibase data using the
generate_liquibase_data.py
script above - Point the
FILE_PATH
in theload_data_into_elasticsearch.py
file to the data you just generated - Run
python3 ./load_data_into_elasticsearch.py
Source: https://github.com/mariochampion/mdc-log-tests