aboutsummaryrefslogtreecommitdiffstats
path: root/elasticstack/elasticsearch/conf/README.md
diff options
context:
space:
mode:
authoralkac <alkac@amdocs.com>2017-08-08 23:29:37 +0530
committeralkac <alkac@amdocs.com>2017-08-09 16:55:26 +0530
commita5d3046e47606bb69f782a6d4efd1f8306554b8d (patch)
tree60f21d9890380a94f0021464476ffe9e58fe44d0 /elasticstack/elasticsearch/conf/README.md
parente4d033d6a6d453d8e96b726c69034cbccdc30b05 (diff)
[LOG-37]Config Elasticsearch Storage of ONAP Logs
Change-Id: I52625b52b68aa9dfa0616003e211cdee7f78c505 Signed-off-by: alkac <alkac@amdocs.com>
Diffstat (limited to 'elasticstack/elasticsearch/conf/README.md')
-rw-r--r--elasticstack/elasticsearch/conf/README.md46
1 files changed, 46 insertions, 0 deletions
diff --git a/elasticstack/elasticsearch/conf/README.md b/elasticstack/elasticsearch/conf/README.md
new file mode 100644
index 0000000..5298f0a
--- /dev/null
+++ b/elasticstack/elasticsearch/conf/README.md
@@ -0,0 +1,46 @@
+#Elasticsearch canonical configuration
+--------------------------------------
+This elasticsearch configuration is the deployment settings for elasticsearch environment.
+
+
+#Files provided for elasticsearch deployment
+--------------------------------------------
+1. elasticsearch.yml
+2. elasticsearch.properties
+
+#Instructions for deployment
+----------------------------
+1. Create canonical path /etc/onap/elasticsearch/conf.d on the host on which the elasticsearch has to be installed.
+2. The elasticsearch.yml is parameterized and has tokens instead of values for certain deployment specific parameters. These tokens has a syntax as '$[a-zA-Z_]+'.
+3. These tokens are listed in another file elasticsearch.properties. These properties are also provided with commented description about them in the file itself. These tokens have to be replaced with the appropriate values as per the deployment environment before deployment.
+4. Now, save the final elasticsearch.yml at location created in step 1.
+5. Create canonical path /etc/onap/elasticsearch/data on the host. Provide it with write permissions for 'other' users.
+6. Following is the list of specifications for elasticsearch container creation-
+
+ Image - 'docker.elastic.co/elasticsearch/elasticsearch:5.4.0' available in the Elastic Docker Registry.
+
+ Port mapping - Elasticsearch requires to publish two ports to host which are specified in the elasticsearch.yml as 'http.port' and 'transport.tcp.port'.
+ Example - If the http.port is set to 9200 and transport.tcp.port to 9300.
+ The container port 9200 should be published to host port 9200
+ The container port 9300 should be published to host port 9300
+
+ Volume mount - The Elasticsearch container must have three host paths mapped as volume in the container
+
+ Configuration file path:
+ 1. Host path - /etc/onap/elasticsearch/conf.d/elasticsearch.yml mapped to
+ Container path - /usr/share/elasticsearch/config/elasticsearch.yml
+
+ Data File path:
+ 2. Host path - /usr/share/onap/elasticsearch/data/ mapped to
+ Container path - /usr/share/elasticsearch/data
+
+ The container data file path above is the value of "path.data:" specified in "elasticsearch.yml".
+
+ Log File Path:
+ 3. Host path - /var/log/onap/elasticsearch/ mapped to
+ Container path - /usr/share/elasticsearch/logs
+
+ The container log file path above is the value of "path.logs:" specified in "elasticsearch.yml".
+
+7. The Data File path volume mapping is specific to the particular elasticsearch instance on that host. This path i.e.(/etc/onap/elasticsearch/data) should not be shared and its content should be unique to that host.
+8. The elasticsearch.properties need not be deployed after the values from it are used. \ No newline at end of file