Loading historical data from a CSV file
Use the CSV tooling available in the ea-events-tooling container as an alternative method to import real historical data. You might need to do this if there are firewall restrictions around your database servers, or if your database technology is not supported.
Before you begin
Complete the following prerequisite items:
- The ea-events-tooling container is installed
by the operator. It is not started as a pod, and contains scripts to install data on the system,
which can be run with the
kubectl run
command. - Find the values of image and
image_tag for the ea-events-tooling container, from the
output of the following
command:
Where <release_name> is the custom resource release name of your cloud deployment. For example, in the following output, image iskubectl get noi <release_name> -o yaml | grep ea-events-tooling
ea-events-tooling
, and image_tag is2.0.14-20200120143838GMT
.kubectl get noi <release_name> -o yaml | grep ea-events-tooling --env=CONTAINER_IMAGE=image-registry.openshift-image-registry.svc:5000/default/ea-events-tooling:2.0.14-20200120143838GMT \ --image=image-registry.openshift-image-registry.svc:5000/default/ea-events-tooling:2.0.14-20200120143838GMT \
Hybrid deployment: For a hybrid deployment, run the following command:
Where <release_name> is the custom resource release name of your hybrid deployment.kubectl get noihybrid <release_name> -o yaml | grep ea-events-tooling
IBM® Netcool® for AIOps deployment: For an online or offline deployment (airgap) of Netcool Operations Insight® with IBM Cloud Pak for AIOps, find the values of image and image_tag from the noi-operator CSV file. Run the following command:
Where <noi-operator> is the noi-operator CSV file name.oc get csv <noi-operator> -o yaml | grep olm.relatedImage.NOI_ea-events-tooling: | awk -F ': ' '{print $2}'
About this task
The reasons why you might be unable to load historical event data into the system using the
standard methods include the following:
- Firewall blocks access to the database containing the historical event data.
- The driver for the database containing the historical event data is not supported. This is the case for Oracle.
You use scripts in the ea-events-tooling container to convert historical data in CSV format to data in JSON format, which can then be ingested into the system.
Procedure
What to do next
CSV-dump-filename.json.gz
to run your data through the system as
described in Training with local data.