The following script execution process will take place once the migration is triggered:
The migration script will prompt you to enter the following parameters:
Parameters | Data required |
---|---|
Provide a working directory for writing the logs folder <./influxmigration/>. | A working directory to store logs and other data files. Press Enter to use the default ./influxmigration/ folder. |
Provide the baseurl for Elasticsearch <http://elasticsearch:9200/>. | The URL end point for Elasticsearch. |
Provide the username for authentication with Elasticsearch. | The Elasticsearch username for authentication. If no authentication was used in Elasticsearch, press Enter to bypass this step. |
Provide the password for authentication with Elasticsearch. | The Elasticsearch password. This appears only if a username was provided in the previous step. |
Provide the full path to the CSV location for conversion <./influxmigration/csv/>. | The path from which to pick the CSV files. Press Enter to use the default path or provide the correct path if you have changed the working directory in the previous step. |
Once the script is complete, it will summarize the information provided and will prompt for a confirmation before the import action is triggered.
Check the troubleshooting section below for any errors with the execution. |
Intermediate files and logs are stored in the following locations:
Files | Path |
---|---|
Migration logs | <jfmc_installation_folder>/influxmigration/logs |
Exported CSV data | <jfmc_installation_folder>/influxmigration/csv |
JSON chunks | <jfmc_installation_folder>/influxmigration/data |
Migrating historical data from InfluxDB to Elasticsearch can be triggered using the migration commands below.
During the migration process, you will need to provide the input parameters as described under Script Input Parameters.
Navigate to the Mission Control installation folder and execute the migrate command:
cd <jfmc_installation_folder> mission-control migrateToElastic |
Navigate to the Mission Control installation folder and execute the migrate command:
Note: The Influx installation folder (influxdb_installation_folder) is generally at /opt/jfrog/mission-control/influxdb/usr/bin.
cd <jfmc_installation_folder> cp migration/* <influxdb_installation_folder> cd <influxdb_installation_folder> ./migrateInfluxToElastic.sh |
Detailed run logs will be available in the configured logs folder. The log for the current execution is located here:
<installation_folder>/influxmigration/logs/log.out.
If the script stops executing without any errors, check the log file for more details.
|
|
|
|
|