summaryrefslogtreecommitdiffstats
path: root/asdctool/src/main/resources/es-resources/README.txt
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-02-19 10:28:42 +0200
committerMichael Lando <ml636r@att.com>2017-02-19 10:51:01 +0200
commit451a3400b76511393c62a444f588a4ed15f4a549 (patch)
treee4f5873a863d1d3e55618eab48b83262f874719d /asdctool/src/main/resources/es-resources/README.txt
parent5abfe4e1fb5fae4bbd5fbc340519f52075aff3ff (diff)
Initial OpenECOMP SDC commit
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'asdctool/src/main/resources/es-resources/README.txt')
-rw-r--r--asdctool/src/main/resources/es-resources/README.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/asdctool/src/main/resources/es-resources/README.txt b/asdctool/src/main/resources/es-resources/README.txt
new file mode 100644
index 0000000000..a7006efa80
--- /dev/null
+++ b/asdctool/src/main/resources/es-resources/README.txt
@@ -0,0 +1,43 @@
+ASDC elasticsearch tool
+========================
+
+This tool purpose is to ease and allow updating elasticsearch indices.
+
+In order to use the scripts, you need to verify Python is installed and to install the elasticsearc-py library:
+ Verify pip is installed: $command -v pip
+ if not installed:
+ Download https://bootstrap.pypa.io/get-pip.py
+ $python get-pip.py (see instruction: https://pip.pypa.io/en/latest/installing/#installing-with-get-pip-py)
+ $pip install elasticsearch
+
+
+Tool contains:
+ - index_ops.py
+ This script includes operations on elasticsearch index:
+
+ create index:
+ $python index_ops.py -o create -a <elasticsearch hostname> -n <indexName> -f <index mapping file>
+
+ delete index:
+ $python index_ops.py -o delete -a <elasticsearch hostname> -n <indexName>
+
+ copy index (assumes destination index already exists):
+ $python index_ops.py -o move -a <elasticsearch hostname> -n <indexName> -t <toIndex>
+
+
+ - file_utils.py
+ This script includes operations on files
+
+ - audit_migration_1602.py
+ This script run full flow to migrate audit information from previous versions to ASDC 1602
+ It has 2 inputs:
+ 1. config_properties.py - this file holds configuration (hostname, index name, index mapping file etc.)
+ 2. folder of fields mapping per elasticsearch type (map old field to new field)
+ The flow of this script is as follow:
+ * create temp index with correct index mapping
+ * scan the audit index to get all records
+ * manipulate fields data and insert it to temp index
+ * delete audit index
+ * create audit index with correct mapping
+ * copy from temp index to newly created audit index
+ * delete temp index \ No newline at end of file