You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@senssoft.apache.org by ms...@apache.org on 2018/04/18 15:00:41 UTC

[1/2] incubator-senssoft git commit: Added support for Kubernetes

Repository: incubator-senssoft
Updated Branches:
  refs/heads/master 9f8090077 -> a575d4793


http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/elasticsearch/es-client-svc.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/elasticsearch/es-client-svc.yaml b/kubernetes/6.2.2/elasticsearch/es-client-svc.yaml
new file mode 100644
index 0000000..0d0622e
--- /dev/null
+++ b/kubernetes/6.2.2/elasticsearch/es-client-svc.yaml
@@ -0,0 +1,43 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Discovery Service for Elasticsearch client nodes over port 9200.
+#
+# A Kubernetes Service is an abstraction which defines a logical set of
+# Pods and a policy by which to access them.
+apiVersion: v1
+kind: Service
+metadata:
+  name: elasticsearch-loadbalancer
+  labels:
+    component: elk
+    role: client
+spec:
+  selector:
+    component: elk
+    role: client
+  ports:
+  - name: http
+    port: 9200
+#    targetPort: 9200
+    protocol: TCP
+  type: NodePort
+# type: Loadbalancer only works with certain providers:
+# AWS, Azure, OpenStack, CloudStack, and Google Compute Engine
+#  type: LoadBalancer

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/elasticsearch/es-client.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/elasticsearch/es-client.yaml b/kubernetes/6.2.2/elasticsearch/es-client.yaml
new file mode 100644
index 0000000..032ba18
--- /dev/null
+++ b/kubernetes/6.2.2/elasticsearch/es-client.yaml
@@ -0,0 +1,78 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+  name: es-client
+  labels:
+    component: elk
+    role: client
+spec:
+  replicas: 2
+  template:
+    metadata:
+      labels:
+        component: elk
+        role: client
+    spec:
+      initContainers:
+      - name: init-sysctl
+        image: busybox:1.27.2
+        imagePullPolicy: IfNotPresent
+        command:
+        - sysctl
+        - -w
+        - vm.max_map_count=262144
+        securityContext:
+          privileged: true
+      containers:
+      - name: es-client
+        image: senssoft/elasticsearch:6.2.2
+        imagePullPolicy: IfNotPresent
+        env:
+        - name: NAMESPACE
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.namespace
+        - name: NODE_NAME
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.name
+        # Client node
+        - name: NODE_MASTER
+          value: "false"
+        - name: NODE_DATA
+          value: "false"
+        - name: NODE_INGEST
+          value: "false"
+        - name: HTTP_ENABLE
+          value: "true"
+        - name: DISCOVERY_SERVICE
+          value: "elasticsearch-discovery"
+        - name: "NETWORK_HOST"
+          value: _site_,_lo_
+        - name: ES_JAVA_OPTS
+          value: -Xms256m -Xmx256m
+        ports:
+        - containerPort: 9200
+          name: http
+        - containerPort: 9300
+          name: transport
+        livenessProbe:
+          tcpSocket:
+            port: transport
+          initialDelaySeconds: 20
+          periodSeconds: 10
+          failureThreshold: 5
+        readinessProbe:
+          httpGet:
+            path: /_cluster/health
+            port: http
+          initialDelaySeconds: 30
+          periodSeconds: 10
+          failureThreshold: 10
+        volumeMounts:
+        - name: storage
+          mountPath: /data
+      volumes:
+          - emptyDir:
+              medium: ""
+            name: "storage"

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/elasticsearch/es-data.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/elasticsearch/es-data.yaml b/kubernetes/6.2.2/elasticsearch/es-data.yaml
new file mode 100644
index 0000000..afe5617
--- /dev/null
+++ b/kubernetes/6.2.2/elasticsearch/es-data.yaml
@@ -0,0 +1,65 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+  name: es-data
+  labels:
+    component: elk
+    role: data
+spec:
+  replicas: 2
+  template:
+    metadata:
+      labels:
+        component: elk
+        role: data
+    spec:
+      initContainers:
+      - name: init-sysctl
+        image: busybox:1.27.2
+        imagePullPolicy: IfNotPresent
+        command:
+        - sysctl
+        - -w
+        - vm.max_map_count=262144
+        securityContext:
+          privileged: true
+      containers:
+      - name: es-data
+        image: senssoft/elasticsearch:6.2.2
+        imagePullPolicy: IfNotPresent
+        env:
+        - name: NAMESPACE
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.namespace
+        - name: NODE_NAME
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.name
+        # Data node
+        - name: NODE_MASTER
+          value: "false"
+        - name: NODE_DATA
+          value: "true"
+        - name: HTTP_ENABLE
+          value: "false"
+        - name: DISCOVERY_SERVICE
+          value: "elasticsearch-discovery"
+        - name: ES_JAVA_OPTS
+          value: -Xms256m -Xmx256m
+        ports:
+        - containerPort: 9300
+          name: transport
+        livenessProbe:
+          tcpSocket:
+            port: transport
+          initialDelaySeconds: 20
+          periodSeconds: 10
+          failureThreshold: 5
+        volumeMounts:
+        - name: storage
+          mountPath: /data
+      volumes:
+          - emptyDir:
+              medium: ""
+            name: "storage"

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/elasticsearch/es-master-svc.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/elasticsearch/es-master-svc.yaml b/kubernetes/6.2.2/elasticsearch/es-master-svc.yaml
new file mode 100644
index 0000000..0cb1de8
--- /dev/null
+++ b/kubernetes/6.2.2/elasticsearch/es-master-svc.yaml
@@ -0,0 +1,38 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Discovery Service for Elasticsearch master nodes over port 9300.
+#
+# A Kubernetes Service is an abstraction which defines a logical set of
+# Pods and a policy by which to access them.
+apiVersion: v1
+kind: Service
+metadata:
+  name: elasticsearch-discovery
+  labels:
+    component: elk
+    role: master
+spec:
+  selector:
+    component: elk
+    role: master
+  ports:
+  - name: transport
+    port: 9300
+    protocol: TCP

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/elasticsearch/es-master.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/elasticsearch/es-master.yaml b/kubernetes/6.2.2/elasticsearch/es-master.yaml
new file mode 100644
index 0000000..592a00c
--- /dev/null
+++ b/kubernetes/6.2.2/elasticsearch/es-master.yaml
@@ -0,0 +1,74 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+  name: es-master
+  labels:
+    component: elk
+    role: master
+spec:
+  replicas: 3
+  template:
+    metadata:
+      labels:
+        component: elk
+        role: master
+    spec:
+      initContainers:
+      - name: init-sysctl
+        image: busybox:1.27.2
+        imagePullPolicy: IfNotPresent
+        command:
+        - sysctl
+        - -w
+        - vm.max_map_count=262144
+        securityContext:
+          privileged: true
+      containers:
+      - name: es-master
+        image: senssoft/elasticsearch:6.2.2
+        imagePullPolicy: IfNotPresent
+        env:
+        - name: NAMESPACE
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.namespace
+        - name: NODE_NAME
+          valueFrom:
+            fieldRef:
+              fieldPath: metadata.name
+        # Dedicated master-eligible node
+        - name: NODE_MASTER
+          value: "true"
+        - name: NODE_DATA
+          value: "false"
+        - name: NODE_INGEST
+          value: "false"
+        - name: NODE_COORDINATE
+          value: "false"
+        - name: NUMBER_OF_MASTERS
+          value: "2"
+        - name: HTTP_ENABLE
+          value: "false"
+        - name: DISCOVERY_SERVICE
+          value: "elasticsearch-discovery"
+        - name: DISCOVERY_TIMEOUT
+          value: "30s"
+        - name: ES_JAVA_OPTS
+          value: -Xms256m -Xmx256m
+        ports:
+        - containerPort: 9300
+          name: transport
+#        Need better readiness check policy than checking if port 9300 is active
+        livenessProbe:
+          tcpSocket:
+            port: transport
+          initialDelaySeconds: 20
+          periodSeconds: 10
+          failureThreshold: 5
+        volumeMounts:
+        - name: storage
+          mountPath: /data
+      volumes:
+          - emptyDir:
+              medium: ""
+            name: "storage"

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/kibana/kibana-svc.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/kibana/kibana-svc.yaml b/kubernetes/6.2.2/kibana/kibana-svc.yaml
new file mode 100644
index 0000000..fbefde0
--- /dev/null
+++ b/kubernetes/6.2.2/kibana/kibana-svc.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: kibana
+  labels:
+    component: elk
+    role: kibana
+spec:
+  selector:
+    component: elk
+    role: kibana
+  ports:
+  - name: http
+    port: 5601
+  type: NodePort
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/kibana/kibana.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/kibana/kibana.yaml b/kubernetes/6.2.2/kibana/kibana.yaml
new file mode 100644
index 0000000..f0f1ed0
--- /dev/null
+++ b/kubernetes/6.2.2/kibana/kibana.yaml
@@ -0,0 +1,39 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+  name: kibana
+  labels:
+    component: elk
+    role: kibana
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+     component: elk
+     role: kibana
+  template:
+    metadata:
+      labels:
+        component: elk
+        role: kibana
+    spec:
+      containers:
+      - name: kibana
+        image: senssoft/kibana:6.2.2
+        imagePullPolicy: IfNotPresent
+        resources:
+          # need more cpu upon initialization, therefore burstable class
+          limits:
+            cpu: 1000m
+          requests:
+            cpu: 100m
+        env:
+        - name: CLUSTER_NAME
+          value: SensSoft
+        - name: ELASTICSEARCH_URL
+          value: "http://elasticsearch-loadbalancer:9200"
+        - name: ES_JAVA_OPTS
+          value: "-Xms512m -Xmx512m"
+        ports:
+        - containerPort: 5601
+          name: http
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/logstash/logstash-svc.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/logstash/logstash-svc.yaml b/kubernetes/6.2.2/logstash/logstash-svc.yaml
new file mode 100644
index 0000000..b77a032
--- /dev/null
+++ b/kubernetes/6.2.2/logstash/logstash-svc.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: logstash-discovery
+  labels:
+    component: elk
+    role: logstash
+spec:
+  selector:
+    component: elk
+    role: logstash
+  ports:
+#  - name: transport
+#    port: 9600
+#    protocol: TCP
+  - name: http
+    port: 8100
+    protocol: TCP
+  type: NodePort

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/6.2.2/logstash/logstash.yaml
----------------------------------------------------------------------
diff --git a/kubernetes/6.2.2/logstash/logstash.yaml b/kubernetes/6.2.2/logstash/logstash.yaml
new file mode 100644
index 0000000..8756731
--- /dev/null
+++ b/kubernetes/6.2.2/logstash/logstash.yaml
@@ -0,0 +1,52 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+  name: logstash
+  labels:
+    component: elk
+    role: logstash
+spec:
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        component: elk
+        role: logstash
+    spec:
+      containers:
+      - name: logstash
+        image: senssoft/logstash:6.2.2
+        imagePullPolicy: IfNotPresent
+        command:
+        - logstash
+        - -f
+        - /etc/logstash/conf.d
+        env:
+        - name: ELASTICSEARCH_URL
+          value: "elasticsearch-loadbalancer:9200"
+        - name: ES_JAVA_OPTS
+          value: "-Xms1g -Xmx1g"
+        resources:
+          limits:
+            cpu: 1000m
+          requests:
+            cpu: 100m
+        ports:
+        - containerPort: 8100
+          name: http
+        - containerPort: 9600
+          name: transport
+        # Need better readiness check policy than checking if port 9600 is active
+#        livenessProbe:
+#          tcpSocket:
+#            port: transport
+#          initialDelaySeconds: 20
+#          periodSeconds: 10
+#          failureThreshold: 5
+#        readinessProbe:
+#          httpGet:
+#            path: /?pretty=true
+#            port: http
+#          initialDelaySeconds: 30
+#          periodSeconds: 10
+#          failureThreshold: 10
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/README.md
----------------------------------------------------------------------
diff --git a/kubernetes/README.md b/kubernetes/README.md
new file mode 100644
index 0000000..b100fcc
--- /dev/null
+++ b/kubernetes/README.md
@@ -0,0 +1,293 @@
+Apache SensSoft on top of Kubernetes
+====================================
+
+Apache SensSoft would like to thank [Pires] for his great documentation on deploying
+ the ELK stack in Kubernetes. 
+We have modified [Pires] instructions to fit Apache [SensSoft] requirements and guidelines.
+
+Introduction
+------------
+
+The Software as a Sensor™ ([SensSoft]) Project offers an open-source (ALv2.0) software
+tool usability testing platform. It includes a number of components that work together
+to provide a platform for collecting data about user interactions with software tools, 
+as well as archiving, analyzing and visualizing that data.
+
+Apache SensSoft's logging infrastructure is powered by a family of [Elastic] tools, mainly 
+[Elasticsearch] for index and retrieval, [Logstash] for shipping data to Elasticsearch,
+and [Kibana] for visualizing and building custom data-viz dashboards.
+
+This guide describes how to build and scale Elasticsearch clusters using Kubernetes.
+
+Current Elasticsearch version is `6.2.2`.
+
+Abstract
+--------
+
+Before we start, one needs to know that Elasticsearch best-practices recommend to separate nodes in three roles:
+* `Master` nodes - intended for clustering management only, no data, no HTTP API
+* `Client` nodes - intended for client/search usage, no data, no HTTP API
+* `Data` nodes - intended for storing and indexing your data, no HTTP API
+
+This is enforced throughout this document.
+
+Given this, I'm going to demonstrate how to provision a production grade scenario 
+consisting of 3 master, 2 client and 2 data nodes.
+
+(Very) Important Notes
+----------------------
+
+* Elasticsearch pods need for an init-container to run in privileged mode, so it 
+can set some VM options. For that to happen, the `kubelet` should be running with 
+args `--allow-privileged`, otherwise the init-container will fail to run.
+
+* By default, `ES_JAVA_OPTS` is set to `-Xms256m -Xmx256m`. This is a very low value
+ but many users, i.e. `minikube` users, were having issues with pods getting killed 
+ because hosts were out of memory. One can change this in the deployment descriptors
+ available in this repository.
+
+* As of the moment, Kubernetes pod descriptors use an `emptyDir` for storing data
+in each data node container. This is meant to be for the sake of simplicity and
+should be adapted according to one's storage needs.
+
+Docker Images
+-------------
+
+This example uses [this pre-built image](https://hub.docker.com/u/senssoft/) of the custom SensSoft ELK stack.
+
+Perquisites (Install and Setup)
+-------------------------------
+
+Ensure that you have [Docker], [kubectl], and [minikube] (optional) installed and started.
+
+Deploy Elasticsearch Cluster
+============================
+
+Rollout Elasticsearch services and pod replicas.
+
+```bash
+kubectl create -f elasticsearch/es-master-svc.yaml
+kubectl create -f elasticsearch/es-client-svc.yaml
+kubectl create -f elasticsearch/es-master.yaml
+kubectl rollout status -f elasticsearch/es-master.yaml
+kubectl create -f elasticsearch/es-client.yaml
+kubectl rollout status -f elasticsearch/es-client.yaml
+kubectl create -f elasticsearch/es-data.yaml
+kubectl rollout status -f elasticsearch/es-data.yaml
+```
+
+or
+
+```bash
+./configure deploy elasticsearch
+```
+
+Check one of the Elasticsearch master nodes logs:
+
+```bash
+$ kubectl get svc,deployment,pods -l component=elk
+NAME                             CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
+svc/elasticsearch-discovery      10.103.242.73   <none>        9300/TCP         6m
+svc/elasticsearch-loadbalancer   10.111.110.60   <nodes>       9200:30510/TCP   3m
+
+NAME               DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
+deploy/es-client   2         2         2            2           3m
+deploy/es-data     2         2         2            2           2m
+deploy/es-master   3         3         3            3           6m
+
+NAME                            READY     STATUS    RESTARTS   AGE
+po/es-client-cbb74b6fb-tgbmp    1/1       Running   0          3m
+po/es-client-cbb74b6fb-xnp5c    1/1       Running   0          3m
+po/es-data-796d884bfb-fw8w5     1/1       Running   0          2m
+po/es-data-796d884bfb-qs675     1/1       Running   0          2m
+po/es-master-6f79799c8c-9sdtn   1/1       Running   0          6m
+po/es-master-6f79799c8c-g6g9k   1/1       Running   0          6m
+po/es-master-6f79799c8c-w2dcs   1/1       Running   0          6m
+```
+
+```bash
+$ kubectl logs po/es-master-6f79799c8c-9sdtn
+[2018-03-04T19:59:22,520][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] initializing ...
+[2018-03-04T19:59:22,886][INFO ][o.e.e.NodeEnvironment    ] [es-master-6f79799c8c-9sdtn] using [1] data paths, mounts [[/ (overlay)]], net usable_space [14gb], net total_space [16.1gb], types [overlay]
+[2018-03-04T19:59:22,889][INFO ][o.e.e.NodeEnvironment    ] [es-master-6f79799c8c-9sdtn] heap size [247.5mb], compressed ordinary object pointers [true]
+[2018-03-04T19:59:22,902][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] node name [es-master-6f79799c8c-9sdtn], node ID [1720vLNASnmbPxwyElXeKQ]
+[2018-03-04T19:59:22,904][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] version[6.2.2], pid[1], build[10b1edd/2018-02-16T19:01:30.685723Z], OS[Linux/4.9.64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_161/25.161-b14]
+[2018-03-04T19:59:22,905][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.F63IAHVh, -XX:+HeapDumpOnOutOfMemoryError, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.cgroups.hierarchy.override=/, -Xms256m, -Xmx256m, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config]
+[2018-03-04T19:59:27,519][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [aggs-matrix-stats]
+[2018-03-04T19:59:27,530][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [analysis-common]
+[2018-03-04T19:59:27,531][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [ingest-common]
+[2018-03-04T19:59:27,533][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [lang-expression]
+[2018-03-04T19:59:27,534][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [lang-mustache]
+[2018-03-04T19:59:27,534][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [lang-painless]
+[2018-03-04T19:59:27,534][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [mapper-extras]
+[2018-03-04T19:59:27,540][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [parent-join]
+[2018-03-04T19:59:27,551][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [percolator]
+[2018-03-04T19:59:27,552][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [rank-eval]
+[2018-03-04T19:59:27,552][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [reindex]
+[2018-03-04T19:59:27,553][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [repository-url]
+[2018-03-04T19:59:27,555][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [transport-netty4]
+[2018-03-04T19:59:27,561][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded module [tribe]
+[2018-03-04T19:59:27,565][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded plugin [ingest-geoip]
+[2018-03-04T19:59:27,569][INFO ][o.e.p.PluginsService     ] [es-master-6f79799c8c-9sdtn] loaded plugin [ingest-user-agent]
+[2018-03-04T19:59:37,641][INFO ][o.e.d.DiscoveryModule    ] [es-master-6f79799c8c-9sdtn] using discovery type [zen]
+[2018-03-04T19:59:40,865][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] initialized
+[2018-03-04T19:59:40,869][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] starting ...
+[2018-03-04T19:59:42,001][INFO ][o.e.t.TransportService   ] [es-master-6f79799c8c-9sdtn] publish_address {172.17.0.4:9300}, bound_addresses {0.0.0.0:9300}
+[2018-03-04T19:59:42,079][INFO ][o.e.b.BootstrapChecks    ] [es-master-6f79799c8c-9sdtn] bound or publishing to a non-loopback address, enforcing bootstrap checks
+[2018-03-04T19:59:45,225][WARN ][o.e.d.z.ZenDiscovery     ] [es-master-6f79799c8c-9sdtn] not enough master nodes discovered during pinging (found [[Candidate{node={es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300}, clusterStateVersion=-1}]], but needed [2]), pinging again
+[2018-03-04T19:59:48,273][INFO ][o.e.c.s.MasterService    ] [es-master-6f79799c8c-9sdtn] zen-disco-elected-as-master ([1] nodes joined)[{es-master-6f79799c8c-g6g9k}{9IQhhVe0Sj6reW9pPh0FsA}{FQzU-VNtRlexOnRaK9R2mQ}{172.17.0.6}{172.17.0.6:9300}], reason: new_master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300}, added {{es-master-6f79799c8c-g6g9k}{9IQhhVe0Sj6reW9pPh0FsA}{FQzU-VNtRlexOnRaK9R2mQ}{172.17.0.6}{172.17.0.6:9300},}
+[2018-03-04T19:59:48,329][INFO ][o.e.c.s.ClusterApplierService] [es-master-6f79799c8c-9sdtn] new_master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300}, added {{es-master-6f79799c8c-g6g9k}{9IQhhVe0Sj6reW9pPh0FsA}{FQzU-VNtRlexOnRaK9R2mQ}{172.17.0.6}{172.17.0.6:9300},}, reason: apply cluster state (from master [master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300} committed version [1] source [zen-disco-elected-as-master ([1] nodes joined)[{es-master-6f79799c8c-g6g9k}{9IQhhVe0Sj6reW9pPh0FsA}{FQzU-VNtRlexOnRaK9R2mQ}{172.17.0.6}{172.17.0.6:9300}]]])
+[2018-03-04T19:59:48,349][INFO ][o.e.n.Node               ] [es-master-6f79799c8c-9sdtn] started
+[2018-03-04T19:59:48,437][INFO ][o.e.g.GatewayService     ] [es-master-6f79799c8c-9sdtn] recovered [0] indices into cluster_state
+[2018-03-04T19:59:50,789][INFO ][o.e.c.s.MasterService    ] [es-master-6f79799c8c-9sdtn] zen-disco-node-join[{es-master-6f79799c8c-w2dcs}{WAGDODrFRQOb_G9kh4MdBw}{vnfsSU2BQQKOYPB6S8tlHg}{172.17.0.5}{172.17.0.5:9300}], reason: added {{es-master-6f79799c8c-w2dcs}{WAGDODrFRQOb_G9kh4MdBw}{vnfsSU2BQQKOYPB6S8tlHg}{172.17.0.5}{172.17.0.5:9300},}
+[2018-03-04T19:59:50,880][INFO ][o.e.c.s.ClusterApplierService] [es-master-6f79799c8c-9sdtn] added {{es-master-6f79799c8c-w2dcs}{WAGDODrFRQOb_G9kh4MdBw}{vnfsSU2BQQKOYPB6S8tlHg}{172.17.0.5}{172.17.0.5:9300},}, reason: apply cluster state (from master [master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300} committed version [3] source [zen-disco-node-join[{es-master-6f79799c8c-w2dcs}{WAGDODrFRQOb_G9kh4MdBw}{vnfsSU2BQQKOYPB6S8tlHg}{172.17.0.5}{172.17.0.5:9300}]]])
+[2018-03-04T20:01:07,315][INFO ][o.e.c.s.MasterService    ] [es-master-6f79799c8c-9sdtn] zen-disco-node-join[{es-client-cbb74b6fb-tgbmp}{EunRsql8Q9CqSWJf0FKQbQ}{32GSGju1QbaYe30kTbG_5Q}{172.17.0.8}{172.17.0.8:9300}], reason: added {{es-client-cbb74b6fb-tgbmp}{EunRsql8Q9CqSWJf0FKQbQ}{32GSGju1QbaYe30kTbG_5Q}{172.17.0.8}{172.17.0.8:9300},}
+[2018-03-04T20:01:07,751][INFO ][o.e.c.s.ClusterApplierService] [es-master-6f79799c8c-9sdtn] added {{es-client-cbb74b6fb-tgbmp}{EunRsql8Q9CqSWJf0FKQbQ}{32GSGju1QbaYe30kTbG_5Q}{172.17.0.8}{172.17.0.8:9300},}, reason: apply cluster state (from master [master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300} committed version [4] source [zen-disco-node-join[{es-client-cbb74b6fb-tgbmp}{EunRsql8Q9CqSWJf0FKQbQ}{32GSGju1QbaYe30kTbG_5Q}{172.17.0.8}{172.17.0.8:9300}]]])
+[2018-03-04T20:01:07,822][INFO ][o.e.c.s.MasterService    ] [es-master-6f79799c8c-9sdtn] zen-disco-node-join[{es-client-cbb74b6fb-xnp5c}{SP4_qYhURHuQipeiiuC35w}{ISw5yvwPTUKMIFMvpMYXMA}{172.17.0.7}{172.17.0.7:9300}], reason: added {{es-client-cbb74b6fb-xnp5c}{SP4_qYhURHuQipeiiuC35w}{ISw5yvwPTUKMIFMvpMYXMA}{172.17.0.7}{172.17.0.7:9300},}
+[2018-03-04T20:01:08,133][INFO ][o.e.c.s.ClusterApplierService] [es-master-6f79799c8c-9sdtn] added {{es-client-cbb74b6fb-xnp5c}{SP4_qYhURHuQipeiiuC35w}{ISw5yvwPTUKMIFMvpMYXMA}{172.17.0.7}{172.17.0.7:9300},}, reason: apply cluster state (from master [master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300} committed version [5] source [zen-disco-node-join[{es-client-cbb74b6fb-xnp5c}{SP4_qYhURHuQipeiiuC35w}{ISw5yvwPTUKMIFMvpMYXMA}{172.17.0.7}{172.17.0.7:9300}]]])
+[2018-03-04T20:02:16,606][INFO ][o.e.c.s.MasterService    ] [es-master-6f79799c8c-9sdtn] zen-disco-node-join[{es-data-796d884bfb-qs675}{ZOopEPppSrGGk1f2uB6_Pg}{M7ZPAbbxQ0mnOpRZjNtq0A}{172.17.0.10}{172.17.0.10:9300}], reason: added {{es-data-796d884bfb-qs675}{ZOopEPppSrGGk1f2uB6_Pg}{M7ZPAbbxQ0mnOpRZjNtq0A}{172.17.0.10}{172.17.0.10:9300},}
+[2018-03-04T20:02:17,310][INFO ][o.e.c.s.ClusterApplierService] [es-master-6f79799c8c-9sdtn] added {{es-data-796d884bfb-qs675}{ZOopEPppSrGGk1f2uB6_Pg}{M7ZPAbbxQ0mnOpRZjNtq0A}{172.17.0.10}{172.17.0.10:9300},}, reason: apply cluster state (from master [master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300} committed version [6] source [zen-disco-node-join[{es-data-796d884bfb-qs675}{ZOopEPppSrGGk1f2uB6_Pg}{M7ZPAbbxQ0mnOpRZjNtq0A}{172.17.0.10}{172.17.0.10:9300}]]])
+[2018-03-04T20:02:17,494][INFO ][o.e.c.s.MasterService    ] [es-master-6f79799c8c-9sdtn] zen-disco-node-join[{es-data-796d884bfb-fw8w5}{GAMmdne1Q02pb0tujxGMTQ}{DsiN0UeYQQa9Gzeg_B3ARw}{172.17.0.9}{172.17.0.9:9300}], reason: added {{es-data-796d884bfb-fw8w5}{GAMmdne1Q02pb0tujxGMTQ}{DsiN0UeYQQa9Gzeg_B3ARw}{172.17.0.9}{172.17.0.9:9300},}
+[2018-03-04T20:02:17,753][INFO ][o.e.c.s.ClusterApplierService] [es-master-6f79799c8c-9sdtn] added {{es-data-796d884bfb-fw8w5}{GAMmdne1Q02pb0tujxGMTQ}{DsiN0UeYQQa9Gzeg_B3ARw}{172.17.0.9}{172.17.0.9:9300},}, reason: apply cluster state (from master [master {es-master-6f79799c8c-9sdtn}{1720vLNASnmbPxwyElXeKQ}{S-_neLjjSPWj4ItZ1mv0zQ}{172.17.0.4}{172.17.0.4:9300} committed version [7] source [zen-disco-node-join[{es-data-796d884bfb-fw8w5}{GAMmdne1Q02pb0tujxGMTQ}{DsiN0UeYQQa9Gzeg_B3ARw}{172.17.0.9}{172.17.0.9:9300}]]])
+```
+
+As you can assert, the cluster is up and running.
+
+Access the service
+------------------
+
+Don't forget that services in Kubernetes are only accessible from containers in 
+the cluster. For different behavior one should configure the creation of an 
+external load-balancer. While it's supported within this example service
+descriptor, its usage is out of scope of this document, for now.
+
+Note: if you are using one of the cloud providers which support external load
+balancers, setting the type field to "LoadBalancer" will provision a load
+balancer for your Service. You can uncomment the field in es-client-svc.yaml.
+
+```bash
+$ kubectl get svc elasticsearch-loadbalancer
+NAME                         CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
+elasticsearch-loadbalancer   10.111.110.60   <nodes>       9200:30510/TCP   6m
+```
+
+From any host on your cluster (that's running `kube-proxy`), run:
+
+```bash
+$ kubectl exec -it es-data-796d884bfb-fw8w5  -- /bin/bash
+$ curl -XGET http://10.111.110.60:9200
+```
+
+You should see something similar to the following:
+```json
+{
+  "name" : "es-client-cbb74b6fb-tgbmp",
+  "cluster_name" : "SensSoft",
+  "cluster_uuid" : "J7-noNLVQP21dq8MZVnF-w",
+  "version" : {
+    "number" : "6.2.2",
+    "build_hash" : "10b1edd",
+    "build_date" : "2018-02-16T19:01:30.685723Z",
+    "build_snapshot" : false,
+    "lucene_version" : "7.2.1",
+    "minimum_wire_compatibility_version" : "5.6.0",
+    "minimum_index_compatibility_version" : "5.0.0"
+  },
+  "tagline" : "You Know, for Search"
+}
+```
+
+Or if you want to check cluster information:
+
+```
+curl -XGET http://10.111.110.60:9200/_cluster/health?pretty
+```
+
+You should see something similar to the following:
+
+```json
+{
+  "cluster_name" : "SensSoft",
+  "status" : "green",
+  "timed_out" : false,
+  "number_of_nodes" : 7,
+  "number_of_data_nodes" : 2,
+  "active_primary_shards" : 0,
+  "active_shards" : 0,
+  "relocating_shards" : 0,
+  "initializing_shards" : 0,
+  "unassigned_shards" : 0,
+  "delayed_unassigned_shards" : 0,
+  "number_of_pending_tasks" : 0,
+  "number_of_in_flight_fetch" : 0,
+  "task_max_waiting_in_queue_millis" : 0,
+  "active_shards_percent_as_number" : 100.0
+}
+```
+
+Deploy Logstash Service
+=======================
+
+Rollout Logstash service
+
+```bash
+$ ./configure deploy logstash
+```
+
+Check status
+```bash
+$ kubectl get svc,deployment,pods -l role=logstash
+NAME                     CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
+svc/logstash-discovery   10.103.234.11   <nodes>       8100:31010/TCP   3m
+
+NAME              DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
+deploy/logstash   1         1         1            1           1m
+
+NAME                          READY     STATUS    RESTARTS   AGE
+po/logstash-9464b7fd8-dn8gv   1/1       Running   1          1m
+```
+
+Deploy Kibana Service
+=====================
+
+Rollout Kibana service
+
+```bash
+$ ./configure.sh deploy kibana
+```
+
+Check status
+```bash
+$ kubectl get svc,deployment,pods -l role=kibana
+NAME         CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
+svc/kibana   10.103.73.161   <nodes>       5601:32422/TCP   1m
+
+NAME            DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
+deploy/kibana   1         1         1            1           1m
+
+NAME                        READY     STATUS    RESTARTS   AGE
+po/kibana-b6f6b7b8f-plvkz   1/1       Running   0          1m
+```
+
+To view Kibana, either log into the VM or find your minikube VM address and
+goto the assigned external port to view Kibana.
+
+```bash
+$ firefox $(minikube ip):32422
+```
+
+## Todo
+1. Create new service `app` that will include pods tap, distill, site, db, etc.
+2. Need a better way of checking on the state of Logstash. It needs the most time to provision.
+3. Logstash is very unstable.
+
+[Pires]: https://github.com/pires/kubernetes-elasticsearch-cluster/
+[SensSoft]: http://senssoft.incubator.apache.org/
+[Elastic]: https://www.elastic.co/
+[Elasticsearch]: https://www.elastic.co/products/elasticsearch
+[Logstash]: https://www.elastic.co/products/logstash
+[Kibana]: https://www.elastic.co/products/kibana
+[Cheat Sheet]: https://kubernetes.io/docs/user-guide/kubectl-cheatsheet/
+[Docker]: https://www.docker.com
+[kubectl]: https://kubernetes.io/docs/tasks/tools/install-kubectl/
+[minikube]: https://kubernetes.io/docs/tasks/tools/install-minikube/    
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/kubernetes/configure.sh
----------------------------------------------------------------------
diff --git a/kubernetes/configure.sh b/kubernetes/configure.sh
new file mode 100755
index 0000000..e6ae111
--- /dev/null
+++ b/kubernetes/configure.sh
@@ -0,0 +1,225 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Print out usage documentation.
+help_usage() {
+    echo "configure.sh"
+    echo "A simple utility to deploy Apache SensSoft Kubernetes build."
+    echo "Not meant to be used in production."
+    echo ""
+    echo "Usage: $ configure.sh COMMAND [OPT]"
+    echo ""
+    help_commands
+    echo "e.g."
+    echo "$ $0 deploy all"
+}
+
+# Print out commands.
+help_commands() {
+    echo "The commands are:"
+    echo "    status                View status of Kubernetes deployment"
+    echo "    deploy elk            Deploy ELK stack into Kubernetes cluster"
+    echo "    deploy elasticsearch  Deploy Elasticsearch Kubernetes"
+    echo "    deploy logstash       Deploy Logstash Kubernetes"
+    echo "    deploy kibana         Deploy Kibana Kubernetes"
+    echo "    purge elk             Purge all ELK Kubernetes artifacts"
+    echo "    purge elasticsearch   Purge all Elasticsearch Kubernetes artifacts"
+    echo "    purge logstash        Purge all Logstash Kubernetes artifacts"
+    echo "    purge kibana          Purge all Kibana Kubernetes artifacts"
+    echo "    check                 Check environment for release"
+    echo "    shutdown              Shutdown Kubernetes cluster"
+    echo "    start                 Startup minikube"
+    echo "    stop                  Stop minikube"
+    echo "    delete                Delete minikube"
+    echo ""
+}
+
+# If no arguments were provided, display the usage.
+if [[ "$#" == "0" ]]; then
+    help_usage
+    exit 1
+fi
+
+# Check for a command argument.
+COMMAND=$1
+COMMAND_OPT=$2
+
+if [[ -z $COMMAND ]] || \
+    [[ $COMMAND != "status" && \
+    $COMMAND != "deploy" && \
+    $COMMAND != "check" && \
+    $COMMAND != "shutdown" && \
+    $COMMAND != "purge" && \
+    $COMMAND != "provision" && \
+    $COMMAND != "stop" && \
+    $COMMAND != "delete" ]]; then \
+    echo "Error: Specify a command."
+    echo ""
+    help_commands
+    exit 1
+fi
+
+# Start minikube w/ hyperkit
+if [[ $COMMAND == "provision" ]]; then
+    minikube start --cpus 2 --memory 5120 --vm-driver=virtualbox
+    # this for loop waits until kubectl can access the api server that Minikube has created
+    for i in {1..150}; do # timeout for 5 minutes
+       ./kubectl get po &> /dev/null
+       if [ $? -ne 1 ]; then
+          break
+      fi
+      sleep 2
+    done
+	exit 0
+fi
+
+# Stop minikube w/ hyperkit
+if [[ $COMMAND == "stop" ]]; then
+    minikube stop
+    eval $(minikube docker-env -u)
+	exit 0
+fi
+
+# Start minikube w/ hyperkit
+if [[ $COMMAND == "delete" ]]; then
+    minikube delete
+	exit 0
+fi
+
+# Fetch status of entire Kubernets SensSoft namespace
+if [[ $COMMAND == "status" ]]; then
+    kubectl get svc,deployment,pods -l component=elk
+	exit 0
+fi
+
+function elasticsearch() {
+    echo "Elasticsearch deployment"
+    kubectl create -f elasticsearch/es-master-svc.yaml
+    kubectl create -f elasticsearch/es-client-svc.yaml
+    kubectl create -f elasticsearch/es-master.yaml
+    kubectl rollout status -f elasticsearch/es-master.yaml
+    kubectl create -f elasticsearch/es-client.yaml
+    kubectl rollout status -f elasticsearch/es-client.yaml
+    kubectl create -f elasticsearch/es-data.yaml
+    kubectl rollout status -f elasticsearch/es-data.yaml
+}
+
+function logstash() {
+    echo "Logstash deployment"
+	kubectl create -f logstash/logstash-svc.yaml
+	kubectl create -f logstash/logstash-client.yaml
+	kubectl create -f logstash/logstash.yaml
+	kubectl rollout status -f logstash/logstash.yaml
+}
+
+function kibana() {
+    echo "Kibana deployment"
+	kubectl create -f kibana/kibana-svc.yaml
+	kubectl create -f kibana/kibana.yaml
+	kubectl rollout status -f kibana/kibana.yaml
+}
+
+if [[ $COMMAND == "deploy" && \
+    $COMMAND_OPT == "elasticsearch" ]]; then
+    elasticsearch
+    exit 0
+fi
+
+if [[ $COMMAND == "deploy" && \
+    $COMMAND_OPT == "logstash" ]]; then
+    logstash
+    exit 0
+fi
+
+if [[ $COMMAND == "deploy" && \
+    $COMMAND_OPT == "kibana" ]]; then
+    kibana
+    exit 0
+fi
+
+if [[ $COMMAND == "deploy" && \
+    $COMMAND_OPT == "elk" ]]; then
+    elasticsearch
+    logstash
+    kibana
+    exit 0
+fi
+
+# Delete entire Elasticsearch Kubernetes artifacts
+if [[ $COMMAND == 'purge' && \
+    $COMMAND_OPT == 'elasticsearch' ]]; then
+    for f in elasticsearch/*.yaml
+    do
+        kubectl delete -f $f
+    done
+fi
+
+# Delete entire Logstash Kubernetes artifacts
+if [[ $COMMAND == 'purge' && \
+    $COMMAND_OPT == 'logstash' ]]; then
+    for f in logstash/*.yaml
+    do
+        kubectl delete -f $f
+    done
+fi
+
+# Delete entire Kibana Kubernetes artifacts
+if [[ $COMMAND == 'purge' && \
+    $COMMAND_OPT == 'kibana' ]]; then
+    for f in kibana/*.yaml
+    do
+        kubectl delete -f $f
+    done
+fi
+
+# Delete entire Kubernetes SensSoft namespace
+if [[ $COMMAND == 'purge' && \
+    $COMMAND_OPT == 'elk' ]]; then
+	for f in elasticsearch/*.yaml
+    do
+        kubectl delete -f $f
+    done
+    for f in logstash/*.yaml
+    do
+        kubectl delete -f $f
+    done
+    for f in kibana/*.yaml
+    do
+        kubectl delete -f $f
+    done
+fi
+
+# Prepare for Distill deployment
+if [[ $COMMAND == "distill" ]]; then
+    echo "Error: Unsupported distill build."
+    exit 1
+fi
+
+# Prepare for Tap deployment
+if [[ $COMMAND == "tap" ]]; then
+    echo "Error: Unsupported tap build."
+    exit 1
+fi
+
+# Run production build process checks.
+if [[ $COMMAND == "check" ]]; then
+    echo "Error: Unsupported check build."
+    exit 1
+fi
\ No newline at end of file



[2/2] incubator-senssoft git commit: Added support for Kubernetes

Posted by ms...@apache.org.
Added support for Kubernetes


Project: http://git-wip-us.apache.org/repos/asf/incubator-senssoft/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-senssoft/commit/a575d479
Tree: http://git-wip-us.apache.org/repos/asf/incubator-senssoft/tree/a575d479
Diff: http://git-wip-us.apache.org/repos/asf/incubator-senssoft/diff/a575d479

Branch: refs/heads/master
Commit: a575d479351a159a034c2b927963a78cc1f3802b
Parents: 9f80900
Author: msbeard <ms...@apache.org>
Authored: Wed Apr 18 11:00:35 2018 -0400
Committer: msbeard <ms...@apache.org>
Committed: Wed Apr 18 11:00:35 2018 -0400

----------------------------------------------------------------------
 .gitignore                                      |   1 +
 README.md                                       |   2 +-
 docker/CLUSTER.md                               |  68 +++++
 docker/README.md                                |  50 ++--
 docker/docker-compose.5.6.3.yml                 | 133 +++++++++
 docker/docker-compose.cluster.yml               | 153 ++++++++++
 docker/docker-compose.yml                       | 115 ++++----
 docker/docs/images/configure_index.png          | Bin 0 -> 116678 bytes
 docker/docs/images/confirmation.png             | Bin 0 -> 158876 bytes
 docker/docs/images/dashboard.png                | Bin 0 -> 172635 bytes
 docker/docs/images/management.png               | Bin 0 -> 60954 bytes
 docker/elasticsearch/.env                       |   8 +
 docker/elasticsearch/5.6.3/Dockerfile           |  29 ++
 .../5.6.3/config/elasticsearch.yml              |  48 +++
 .../5.6.3/config/log4j2.properties              |  24 ++
 docker/elasticsearch/6.2.2/Dockerfile           |  30 ++
 .../6.2.2/config/elasticsearch.yml              |  51 ++++
 .../6.2.2/config/log4j2.properties              |  24 ++
 docker/elasticsearch/Dockerfile                 |  29 --
 docker/elasticsearch/config/elasticsearch.yml   |  49 ----
 docker/elasticsearch/config/log4j2.properties   |  24 --
 docker/images/configure_index.png               | Bin 116678 -> 0 bytes
 docker/images/confirmation.png                  | Bin 158876 -> 0 bytes
 docker/images/dashboard.png                     | Bin 172635 -> 0 bytes
 docker/images/management.png                    | Bin 60954 -> 0 bytes
 docker/kibana/5.6.3/Dockerfile                  |  25 ++
 docker/kibana/5.6.3/config/kibana.yml           |  18 ++
 docker/kibana/5.6.3/dashboard.json              |  19 ++
 docker/kibana/5.6.3/visualizations.json         |  58 ++++
 docker/kibana/6.2.2/Dockerfile                  |  20 ++
 docker/kibana/6.2.2/config/kibana.yml           |  18 ++
 docker/kibana/Dockerfile                        |  25 --
 docker/kibana/config/kibana.yml                 |  18 --
 docker/kibana/dashboard.json                    |  19 --
 docker/kibana/visualizations.json               |  58 ----
 docker/logstash/5.6.3/Dockerfile                |  30 ++
 .../logstash/5.6.3/config/logstash-userale.conf |  53 ++++
 docker/logstash/5.6.3/templates/userale.json    | 150 ++++++++++
 docker/logstash/6.2.2/Dockerfile                |  31 ++
 .../6.2.2/pipeline/logstash-userale.conf        |  52 ++++
 docker/logstash/6.2.2/templates/userale.json    | 143 +++++++++
 docker/logstash/Dockerfile                      |  30 --
 docker/logstash/config/logstash-userale.conf    |  53 ----
 docker/logstash/templates/userale.json          | 150 ----------
 .../6.2.2/elasticsearch/es-client-svc.yaml      |  43 +++
 kubernetes/6.2.2/elasticsearch/es-client.yaml   |  78 +++++
 kubernetes/6.2.2/elasticsearch/es-data.yaml     |  65 ++++
 .../6.2.2/elasticsearch/es-master-svc.yaml      |  38 +++
 kubernetes/6.2.2/elasticsearch/es-master.yaml   |  74 +++++
 kubernetes/6.2.2/kibana/kibana-svc.yaml         |  15 +
 kubernetes/6.2.2/kibana/kibana.yaml             |  39 +++
 kubernetes/6.2.2/logstash/logstash-svc.yaml     |  19 ++
 kubernetes/6.2.2/logstash/logstash.yaml         |  52 ++++
 kubernetes/README.md                            | 293 +++++++++++++++++++
 kubernetes/configure.sh                         | 225 ++++++++++++++
 55 files changed, 2201 insertions(+), 548 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 4709039..ba433d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.idea
 release/incubator-*
 release/apache-*
 .sass-cache

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index c1558ec..29d471e 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 SensSoft Docker Containers and Website
 --------------------------------------
 
-Specific build instructions located in docker and site folders.
+Specific build instructions located in docker, kubernetes, release and site folders.
 

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/CLUSTER.md
----------------------------------------------------------------------
diff --git a/docker/CLUSTER.md b/docker/CLUSTER.md
new file mode 100644
index 0000000..93df592
--- /dev/null
+++ b/docker/CLUSTER.md
@@ -0,0 +1,68 @@
+How to Build SensSoft Docker Containers
+---------------------------------------
+
+1. Install [``Docker``](http://docker.com) on your machine. Require Docker 1.7 and above.
+
+1. Install ``docker-compose`` in an virtual environment. 
+   Full instructions can be found [``here``](https://docs.docker.com/compose/install/).
+   
+   ```bash
+   $ python3 -m venv env
+   $ source env/bin/activate
+   $ pip install -r requirements.txt
+   ```
+
+1. Before launching the Docker containers, ensure your ``vm_max_map_count`` 
+   kernel setting is set to at least 262144.
+   Visit [``Running Elasticsearch in Production mode``](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html#docker-cli-run-prod-mode) for OS specific instructions.
+   
+   ```bash
+   # Example for Linux systems
+   $ sysctl -w vm.max_map_count=262144
+   ```
+
+1. Start Elasticsearch cluster:
+    
+    ```bash
+    $ docker-compose -f docker-compose.cluster.yaml up -d --scale elasticsearch=3 elasticsearch
+    $ docker-compose -f docker-compose.cluster.yaml up -d loadbalancer
+    ```
+    
+    The loadbalancer node exposes port 9200 on localhost and is the only node 
+    that has HTTP enabled. Services such as Kibana and Logstash connect to the 
+    loadbalancer node directly. Loadbalancer accepts requests from Kibana and Logstash 
+    and balances them across the elasticsearch worker nodes. The elasticsearch 
+    worker nodes communicate to each other and the loadbalancer via TCP on port 9300. 
+
+    <aside class="warning">
+    Starting an elasticsearch cluster is not recommended on a single server. This
+    is just for demonstration purposes only. Please refer to our [Kubernetes] guide to 
+    deploy an Elasticsearch cluster.
+    </aside>
+
+1. Confirm cluster state:
+   ```bash
+   $ curl -XGET http://localhost:9200/_cluster/health?pretty
+    {
+     "cluster_name" : "SensSoft",
+     "status" : "green",
+     "timed_out" : false,
+     "number_of_nodes" : 4,
+     "number_of_data_nodes" : 3,
+     "active_primary_shards" : 0,
+     "active_shards" : 0,
+     "relocating_shards" : 0,
+     "initializing_shards" : 0,
+     "unassigned_shards" : 0,
+     "delayed_unassigned_shards" : 0,
+     "number_of_pending_tasks" : 0,
+     "number_of_in_flight_fetch" : 0,
+     "task_max_waiting_in_queue_millis" : 0,
+     "active_shards_percent_as_number" : 100.0
+   }
+   ```
+   Confirm that the `number_of_nodes` is 4 and `number_of_data_nodes` is 3.
+ 
+1. Follow remaining instructions in README.md, starting at #6.
+
+© Copyright 2016 The Charles Stark Draper Laboratory, Inc. All rights reserved.

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/README.md
----------------------------------------------------------------------
diff --git a/docker/README.md b/docker/README.md
index 036a995..78edcee 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -1,7 +1,7 @@
 How to Build SensSoft Docker Containers
 ---------------------------------------
 
-1. Install [``Docker``](http://docker.com) on your machine.
+1. Install [``Docker``](http://docker.com) on your machine. Requires Docker 1.7 and above.
 
 1. Install ``docker-compose`` in an virtual environment. 
    Full instructions can be found [``here``](https://docs.docker.com/compose/install/).
@@ -21,28 +21,22 @@ How to Build SensSoft Docker Containers
    $ sysctl -w vm.max_map_count=262144
    ```
 
-1. Start Elasticsearch cluster:
-    
-    ```bash
-    $ docker-compose up -d --scale elasticsearch=3 elasticsearch loadbalancer
-    ```
-    
-    The loadbalancer node exposes port 9200 on localhost and is the only node 
-    that has HTTP enabled. Services such as Kibana and Logstash connect to the 
-    loadbalancer node directly. Loadbalancer accepts requests from Kibana and Logstash 
-    and balances them across the elasticsearch worker nodes. The elasticsearch 
-    worker nodes communicate to each other and the loadbalancer via TCP on port 9300. 
-
-    
-1. Confirm cluster state:
+1. Start Elasticsearch. Give Elasticsearch about 2 minutes to start before confirming
+   its state. 
+   
+   ```bash
+   $ docker-compose up -d loadbalancer
+   ```
+
+1. Confirm state:
    ```bash
    $ curl -XGET http://localhost:9200/_cluster/health?pretty
     {
      "cluster_name" : "SensSoft",
      "status" : "green",
      "timed_out" : false,
-     "number_of_nodes" : 4,
-     "number_of_data_nodes" : 3,
+     "number_of_nodes" : 1,
+     "number_of_data_nodes" : 1,
      "active_primary_shards" : 0,
      "active_shards" : 0,
      "relocating_shards" : 0,
@@ -55,7 +49,6 @@ How to Build SensSoft Docker Containers
      "active_shards_percent_as_number" : 100.0
    }
    ```
-   Confirm that the `number_of_nodes` is 4 and `number_of_data_nodes` is 3.
  
 1. Launch logging server. Give Logstash about 2 minutes to start before confirming 
    its state.
@@ -105,8 +98,13 @@ How to Build SensSoft Docker Containers
 
    ![alt text][dashboard]
 
+1. To Launch Tap and Distill
+   ```bash
+   $ docker-compose up -d distill tap
+   ```
+   
 1. To stop all containers.
-    ```sh
+    ```bash
     $ docker-compose stop
     ```
  
@@ -123,15 +121,9 @@ Having Issues?
    $ docker-compose logs > err.dump 
    ```
 
-Todo
----- 
-- [ ] TAP docker deployment instructions.
-- [ ] Distill docker deployment instructions. 
-- [ ] Apache SensSoft Docker + Kubernetes instructions.
-
-[configure_index]: ./images/configure_index.png "Configure Kibana index"
-[confirmation]: ./images/confirmation.png "Confirm index pattern conflicts"
-[dashboard]: ./images/dashboard.png "Apache Senssoft Dashboard"
-[management]: ./images/management.png "Kibana management console"
+[configure_index]: ./docs/images/configure_index.png "Configure Kibana index"
+[confirmation]: ./docs/images/confirmation.png "Confirm index pattern conflicts"
+[dashboard]: ./docs/images/dashboard.png "Apache Senssoft Dashboard"
+[management]: ./docs/images/management.png "Kibana management console"
 
 © Copyright 2016 The Charles Stark Draper Laboratory, Inc. All rights reserved.

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docker-compose.5.6.3.yml
----------------------------------------------------------------------
diff --git a/docker/docker-compose.5.6.3.yml b/docker/docker-compose.5.6.3.yml
new file mode 100644
index 0000000..00b6157
--- /dev/null
+++ b/docker/docker-compose.5.6.3.yml
@@ -0,0 +1,133 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Apache SensSoft Single-Node Build
+
+version: "3"
+services:
+
+  # Startup
+  startup:
+    build: ./startup
+    image: senssoft/startup:latest
+    container_name: senssoft-start
+    depends_on:
+      - "loadbalancer"
+    command: bash /opt/entrypoint.sh
+
+  # # Site
+  site:
+    build: ./site
+    image: senssoft/website:latest
+    container_name: senssoft-app
+    ports:
+      - 8080:8080
+    depends_on:
+      - "logstash"
+    command: python -m SimpleHTTPServer 8080
+
+  # Elasticsearch Loadbalancer/Entry
+  loadbalancer:
+    build: ./elasticsearch/5.6.3
+    image: senssoft/elasticsearch:5.6.3
+    container_name: senssoft-loadbalancer
+    environment:
+      - NODE_MASTER=true
+      - NUMBER_OF_MASTERS=1
+      - NODE_COORDINATE=true
+      - "DISCOVERY_SERVICE=elasticsearch"
+      - NODE_DATA=true
+      - NODE_INGEST=true
+      - MAX_LOCAL_STORAGE_NODES=1
+      - NETWORK_HOST=0.0.0.0
+      - HTTP_ENABLE=true
+      - HTTP_CORS_ENABLE=true
+      - HTTP_CORS_ALLOW_ORIGIN=*
+      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
+    ports:
+      - "9200:9200"
+      - "9300"
+    networks:
+      - esnet
+
+  # Kibana
+  kibana:
+    build: ./kibana/5.6.3
+    image: senssoft/kibana:5.6.3
+    container_name: senssoft-kibana
+    environment:
+      - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
+      - "ELASTICSEARCH_URL=http://loadbalancer:9200"
+    ports:
+      - "5601:5601"
+    depends_on:
+      - "loadbalancer"
+    networks:
+      - esnet
+
+  # Logstash
+  logstash:
+    build: ./logstash/5.6.3
+    image: senssoft/logstash:5.6.3
+    container_name: senssoft-logstash
+    environment:
+      - "ELASTICSEARCH_URL=loadbalancer:9200"
+    ports:
+      - 8100:8100
+    volumes:
+      - ./logstash/pipeline/logstash-userale.conf:/usr/share/logstash/pipeline/logstash-userale.conf
+      - ./logstash/templates/userale.json:/usr/share/logstash/templates/userale.json
+    depends_on:
+      - "loadbalancer"
+    networks:
+      - esnet
+
+   # Distill
+  distill:
+     build: ./distill
+     image: senssoft/distill:0.1.0
+     container_name: senssoft-distill
+     ports:
+       - 8090:8090
+     depends_on:
+       - "loadbalancer"
+     networks:
+       - esnet
+
+   # TAP's Database
+  db:
+     build: ./db
+     image: senssoft/postgres:latest
+     container_name: senssoft-postgres
+     ports:
+       - "5432:5432"
+
+  # TAP
+  tap:
+     build: ./tap
+     image: senssoft/tap:0.1.0
+     container_name: senssoft-tap
+     # command: ["bash", "./wait-for-postgres.sh"]
+     command: bash -c "/usr/src/app/wait-for-postgres.sh"
+     ports:
+       - "8010:8010"
+     depends_on:
+       - db
+     links:
+       - db:db
+
+networks:
+  esnet:
+    driver: bridge

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docker-compose.cluster.yml
----------------------------------------------------------------------
diff --git a/docker/docker-compose.cluster.yml b/docker/docker-compose.cluster.yml
new file mode 100644
index 0000000..5835716
--- /dev/null
+++ b/docker/docker-compose.cluster.yml
@@ -0,0 +1,153 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Apache SensSoft Cluster Build
+
+version: "3"
+services:
+
+  # Startup
+  startup:
+    build: ./startup
+    image: senssoft/startup:latest
+    container_name: senssoft-start
+    depends_on:
+      - "loadbalancer"
+    command: bash /opt/entrypoint.sh
+
+  # # Site
+  site:
+    build: ./site
+    image: senssoft/website:latest
+    container_name: senssoft-app
+    ports:
+      - 8080:8080
+    depends_on:
+      - "logstash"
+    command: python -m SimpleHTTPServer 8080
+
+  # Elasticsearch Swarm Workers
+  elasticsearch:
+    build: ./elasticsearch
+    image: senssoft/elasticsearch:6.2.2
+    environment:
+      - NODE_MASTER=true
+      - NUMBER_OF_MASTERS=3
+      - NODE_COORDINATE=true
+      - "DISCOVERY_SERVICE=elasticsearch"
+      - NODE_DATA=true
+      - NODE_INGEST=true
+      - MAX_LOCAL_STORAGE_NODES=1
+      - NETWORK_HOST=0.0.0.0
+      - HTTP_ENABLE=false
+      - HTTP_CORS_ENABLE=false
+      - HTTP_CORS_ALLOW_ORIGIN=*
+      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
+    networks:
+      - esnet
+
+  # Elasticsearch Loadbalancer/Entry
+  loadbalancer:
+    build: ./elasticsearch
+    image: senssoft/elasticsearch:6.2.2
+    container_name: senssoft-loadbalancer
+    environment:
+      - NODE_MASTER=false
+      - NUMBER_OF_MASTERS=1
+      - NODE_COORDINATE=true
+      - "DISCOVERY_SERVICE=elasticsearch"
+      - NODE_DATA=false
+      - NODE_INGEST=false
+      - MAX_LOCAL_STORAGE_NODES=1
+      - NETWORK_HOST=0.0.0.0
+      - HTTP_ENABLE=true
+      - HTTP_CORS_ENABLE=true
+      - HTTP_CORS_ALLOW_ORIGIN=*
+      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
+    ports:
+      - "9200:9200"
+      - "9300"
+    networks:
+      - esnet
+
+  # Kibana
+  kibana:
+    build: ./kibana
+    image: senssoft/kibana:6.2.2
+    container_name: senssoft-kibana
+    environment:
+      - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
+      - "ELASTICSEARCH_URL=http://loadbalancer:9200"
+    ports:
+      - "5601:5601"
+    depends_on:
+      - "loadbalancer"
+    networks:
+      - esnet
+
+  # Logstash
+  logstash:
+    build: ./logstash
+    image: senssoft/logstash:6.2.2
+    container_name: senssoft-logstash
+    environment:
+      - "ELASTICSEARCH_URL=loadbalancer:9200"
+    ports:
+      - 8100:8100
+    volumes:
+      - ./logstash/pipeline/logstash-userale.conf:/usr/share/logstash/pipeline/logstash-userale.conf
+      - ./logstash/templates/userale.json:/usr/share/logstash/templates/userale.json
+    depends_on:
+      - "loadbalancer"
+    networks:
+      - esnet
+
+  # Distill
+  distill:
+     build: ./distill
+     image: senssoft/distill:0.1.0
+     container_name: senssoft-distill
+     ports:
+       - 8090:8090
+     depends_on:
+       - "loadbalancer"
+     networks:
+       - esnet
+
+  # TAP's Database
+  db:
+     build: ./db
+     image: senssoft/postgres:latest
+     container_name: senssoft-postgres
+     ports:
+       - "5432:5432"
+
+  # TAP
+  tap:
+     build: ./tap
+     image: senssoft/tap:0.1.0
+     container_name: senssoft-tap
+     # command: ["bash", "./wait-for-postgres.sh"]
+     command: bash -c "/usr/src/app/wait-for-postgres.sh"
+     ports:
+       - "8010:8010"
+     depends_on:
+       - db
+     links:
+       - db:db
+
+networks:
+  esnet:
+    driver: bridge

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docker-compose.yml
----------------------------------------------------------------------
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index d2b5ca6..f10b5f8 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -13,7 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# Apache SensSoft Docker Build
+# Apache SensSoft Single-Node Build
 
 version: "3"
 services:
@@ -21,16 +21,16 @@ services:
   # Startup
   startup:
     build: ./startup
-    image: senssoft.incubator.apache.org/startup:latest
+    image: senssoft/startup:latest
     container_name: senssoft-start
     depends_on:
       - "loadbalancer"
     command: bash /opt/entrypoint.sh
 
-  # Site
+   # Site
   site:
     build: ./site
-    image: senssoft.incubator.apache.org/website:latest
+    image: senssoft/website:latest
     container_name: senssoft-app
     ports:
       - 8080:8080
@@ -38,45 +38,34 @@ services:
       - "logstash"
     command: python -m SimpleHTTPServer 8080
 
-  # Elasticsearch Workers
   elasticsearch:
-    build: ./elasticsearch
-    image: senssoft.incubator.apache.org/elasticsearch:5.6.3
-    command:
-      - /bin/sh
-      - -c
-      - |
-          elasticsearch-plugin remove --silent x-pack
-          elasticsearch
+    build: ./elasticsearch/6.2.2
+    image: senssoft/elasticsearch:6.2.2
     environment:
       - NODE_MASTER=true
-      - NUMBER_OF_MASTERS=2
-      - NODE_COORDINATE=true
+      - NUMBER_OF_MASTERS=1
+      - NODE_COORDINATE=false
       - "DISCOVERY_SERVICE=elasticsearch"
-      - NODE_DATA=true
-      - NODE_INGEST=true
+      - NODE_DATA=false
+      - NODE_INGEST=false
       - MAX_LOCAL_STORAGE_NODES=1
       - NETWORK_HOST=0.0.0.0
       - HTTP_ENABLE=false
       - HTTP_CORS_ENABLE=false
       - HTTP_CORS_ALLOW_ORIGIN=*
       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
+    ports:
+      - "9300"
     networks:
       - esnet
 
-  # Elasticsearch Loadbalancer
+  # Elasticsearch Loadbalancer/Entry
   loadbalancer:
-    build: ./elasticsearch
-    image: senssoft.incubator.apache.org/elasticsearch:5.6.3
+    build: ./elasticsearch/6.2.2
+    image: senssoft/elasticsearch:6.2.2
     container_name: senssoft-loadbalancer
-    command:
-      - /bin/sh
-      - -c
-      - |
-          elasticsearch-plugin remove --silent x-pack
-          elasticsearch
     environment:
-      - NODE_MASTER=true
+      - NODE_MASTER=false
       - NUMBER_OF_MASTERS=1
       - NODE_COORDINATE=true
       - "DISCOVERY_SERVICE=elasticsearch"
@@ -90,17 +79,19 @@ services:
       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
     ports:
       - "9200:9200"
-      - "9300"
     networks:
       - esnet
+    depends_on:
+      - elasticsearch
 
   # Kibana
   kibana:
-    build: ./kibana
-    image: senssoft.incubator.apache.org/kibana:5.6.3
+    build: ./kibana/6.2.2
+    image: senssoft/kibana:6.2.2
     container_name: senssoft-kibana
     environment:
       - "ES_JAVA_OPTS=-Xms2g -Xmx2g"
+      - "ELASTICSEARCH_URL=http://loadbalancer:9200"
     ports:
       - "5601:5601"
     depends_on:
@@ -110,57 +101,55 @@ services:
 
   # Logstash
   logstash:
-    build: ./logstash
-    image: senssoft.incubator.apache.org/logstash:5.6.3
+    build: ./logstash/6.2.2
+    image: senssoft/logstash:6.2.2
     container_name: senssoft-logstash
     environment:
       - "ELASTICSEARCH_URL=loadbalancer:9200"
-    command: -f /etc/logstash/conf.d
     ports:
       - 8100:8100
     volumes:
-      - ./logstash/config/logstash-userale.conf:/etc/logstash/conf.d/logstash-userale.conf
-      - ./logstash/templates/userale.json:/usr/share/logstash/templates/userale.json
+      - ./logstash/6.2.2/pipeline/logstash-userale.conf:/usr/share/logstash/pipeline/logstash-userale.conf
+      - ./logstash/6.2.2/templates/userale.json:/usr/share/logstash/templates/userale.json
     depends_on:
       - "loadbalancer"
     networks:
       - esnet
 
-  # Distill
+   # Distill
   distill:
-    build: ./distill
-    image: senssoft.incubator.apache.org/distill:0.1.0
-    container_name: senssoft-distill
-    ports:
-      - 8090:8090
-    depends_on:
-      - "loadbalancer"
-    networks:
-      - esnet
+     build: ./distill
+     image: senssoft/distill:0.1.0
+     container_name: senssoft-distill
+     ports:
+       - 8090:8090
+     depends_on:
+       - "loadbalancer"
+     networks:
+       - esnet
 
-  # TAP's Database
+   # TAP's Database
   db:
-    build: ./db
-    image: senssoft.incubator.apache.org/postgres:latest
-    container_name: senssoft-postgres
-    ports:
-      - "5432:5432"
+     build: ./db
+     image: senssoft/postgres:latest
+     container_name: senssoft-postgres
+     ports:
+       - "5432:5432"
 
   # TAP
   tap:
-    build: ./tap
-    image: senssoft.incubator.apache.org/tap:0.1.0
-    container_name: senssoft-tap
-    # command: ["bash", "./wait-for-postgres.sh"]
-    command: bash -c "/usr/src/app/wait-for-postgres.sh"
-    ports:
-      - "8010:8010"
-    depends_on:
-      - db
-    links:
-      - db:db
+     build: ./tap
+     image: senssoft/tap:0.1.0
+     container_name: senssoft-tap
+     # command: ["bash", "./wait-for-postgres.sh"]
+     command: bash -c "/usr/src/app/wait-for-postgres.sh"
+     ports:
+       - "8010:8010"
+     depends_on:
+       - db
+     links:
+       - db:db
 
 networks:
-
   esnet:
     driver: bridge

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docs/images/configure_index.png
----------------------------------------------------------------------
diff --git a/docker/docs/images/configure_index.png b/docker/docs/images/configure_index.png
new file mode 100644
index 0000000..31ebe02
Binary files /dev/null and b/docker/docs/images/configure_index.png differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docs/images/confirmation.png
----------------------------------------------------------------------
diff --git a/docker/docs/images/confirmation.png b/docker/docs/images/confirmation.png
new file mode 100644
index 0000000..467b4d4
Binary files /dev/null and b/docker/docs/images/confirmation.png differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docs/images/dashboard.png
----------------------------------------------------------------------
diff --git a/docker/docs/images/dashboard.png b/docker/docs/images/dashboard.png
new file mode 100644
index 0000000..7123c9e
Binary files /dev/null and b/docker/docs/images/dashboard.png differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/docs/images/management.png
----------------------------------------------------------------------
diff --git a/docker/docs/images/management.png b/docker/docs/images/management.png
new file mode 100644
index 0000000..90a26ae
Binary files /dev/null and b/docker/docs/images/management.png differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/.env
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/.env b/docker/elasticsearch/.env
new file mode 100644
index 0000000..f322e1a
--- /dev/null
+++ b/docker/elasticsearch/.env
@@ -0,0 +1,8 @@
+NODE_MASTER=true
+NODE_DATA=true
+NETWORK_HOST=0.0.0.0
+NODE_COORDINATE=false
+HTTP_ENABLE=true
+HTTP_CORS_ENABLE=true
+HTTP_CORS_ALLOW_ORIGIN="127.0.0.1"	
+DISCOVERY_TIMETOUT=10s
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/5.6.3/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/5.6.3/Dockerfile b/docker/elasticsearch/5.6.3/Dockerfile
new file mode 100644
index 0000000..4f1e5c9
--- /dev/null
+++ b/docker/elasticsearch/5.6.3/Dockerfile
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.3
+
+MAINTAINER Michelle Beard <ms...@apache.org>
+
+# Override config
+COPY config /usr/share/elasticsearch/config
+
+# Set environment
+ENV CLUSTER_NAME SensSoft
+
+# Kubernetes requires swap is turned off
+ENV MEMORY_LOCK false
+
+EXPOSE 9200
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/5.6.3/config/elasticsearch.yml
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/5.6.3/config/elasticsearch.yml b/docker/elasticsearch/5.6.3/config/elasticsearch.yml
new file mode 100644
index 0000000..93421af
--- /dev/null
+++ b/docker/elasticsearch/5.6.3/config/elasticsearch.yml
@@ -0,0 +1,48 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+cluster:
+  name: ${CLUSTER_NAME}
+
+node:
+  master: ${NODE_MASTER}
+  data: ${NODE_DATA}
+  ingest: ${NODE_INGEST}
+  max_local_storage_nodes: ${MAX_LOCAL_STORAGE_NODES}
+
+network.host: ${NETWORK_HOST}
+
+search.remote.connect: ${NODE_COORDINATE}
+
+path:
+  data: /usr/share/elasticsearch/data
+  logs: /usr/share/elasticsearch/log
+
+bootstrap:
+  memory_lock: ${MEMORY_LOCK}
+
+http:
+  enabled: ${HTTP_ENABLE}
+  compression: true
+  cors:
+    enabled: ${HTTP_CORS_ENABLE}
+    allow-origin: ${HTTP_CORS_ALLOW_ORIGIN}
+
+# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
+discovery:
+  zen:
+    ping.unicast.hosts: ${DISCOVERY_SERVICE}
+    minimum_master_nodes: ${NUMBER_OF_MASTERS}
+

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/5.6.3/config/log4j2.properties
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/5.6.3/config/log4j2.properties b/docker/elasticsearch/5.6.3/config/log4j2.properties
new file mode 100644
index 0000000..7f7817d
--- /dev/null
+++ b/docker/elasticsearch/5.6.3/config/log4j2.properties
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+status = error
+
+appender.console.type = Console
+appender.console.name = console
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
+
+rootLogger.level = info
+rootLogger.appenderRef.console.ref = console
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/6.2.2/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/6.2.2/Dockerfile b/docker/elasticsearch/6.2.2/Dockerfile
new file mode 100644
index 0000000..f1fe259
--- /dev/null
+++ b/docker/elasticsearch/6.2.2/Dockerfile
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.2
+
+MAINTAINER Michelle Beard <ms...@apache.org>
+
+# Override config
+COPY config /usr/share/elasticsearch/config
+RUN chown -R elasticsearch:elasticsearch /usr/share/elasticsearch/config
+
+# Set environment
+ENV CLUSTER_NAME SensSoft
+
+# Kubernetes requires swap is turned off
+ENV MEMORY_LOCK false
+
+EXPOSE 9200
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/6.2.2/config/elasticsearch.yml
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/6.2.2/config/elasticsearch.yml b/docker/elasticsearch/6.2.2/config/elasticsearch.yml
new file mode 100644
index 0000000..5525441
--- /dev/null
+++ b/docker/elasticsearch/6.2.2/config/elasticsearch.yml
@@ -0,0 +1,51 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Custom config borrowed from Pires: https://github.com/pires/docker-elasticsearch-kubernetes
+
+cluster:
+  name: ${CLUSTER_NAME:SensSoft}
+
+node:
+  master: ${NODE_MASTER:true}
+  data: ${NODE_DATA:true}
+  name: ${NODE_NAME:${HOSTNAME}}
+  ingest: ${NODE_INGEST:true}
+  max_local_storage_nodes: ${MAX_LOCAL_STORAGE_NODES:1}
+
+network.host: ${NETWORK_HOST:0.0.0.0}
+
+search.remote.connect: ${NODE_COORDINATE:true}
+
+path:
+  data: /usr/share/elasticsearch/data
+  logs: /usr/share/elasticsearch/log
+
+bootstrap:
+  memory_lock: ${MEMORY_LOCK}
+
+http:
+  enabled: ${HTTP_ENABLE:true}
+  compression: true
+  cors:
+    enabled: ${HTTP_CORS_ENABLE:true}
+    allow-origin: ${HTTP_CORS_ALLOW_ORIGIN:"*"}
+
+# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
+discovery:
+  zen:
+    ping.unicast.hosts: ${DISCOVERY_SERVICE:127.0.0.1, [::1]}
+    ping.unicast.hosts.resolve_timeout: ${DISCOVERY_TIMEOUT:5s}
+    minimum_master_nodes: ${NUMBER_OF_MASTERS:1}

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/6.2.2/config/log4j2.properties
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/6.2.2/config/log4j2.properties b/docker/elasticsearch/6.2.2/config/log4j2.properties
new file mode 100644
index 0000000..7f7817d
--- /dev/null
+++ b/docker/elasticsearch/6.2.2/config/log4j2.properties
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+status = error
+
+appender.console.type = Console
+appender.console.name = console
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
+
+rootLogger.level = info
+rootLogger.appenderRef.console.ref = console
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/Dockerfile b/docker/elasticsearch/Dockerfile
deleted file mode 100644
index 4f1e5c9..0000000
--- a/docker/elasticsearch/Dockerfile
+++ /dev/null
@@ -1,29 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.3
-
-MAINTAINER Michelle Beard <ms...@apache.org>
-
-# Override config
-COPY config /usr/share/elasticsearch/config
-
-# Set environment
-ENV CLUSTER_NAME SensSoft
-
-# Kubernetes requires swap is turned off
-ENV MEMORY_LOCK false
-
-EXPOSE 9200
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/config/elasticsearch.yml
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/config/elasticsearch.yml b/docker/elasticsearch/config/elasticsearch.yml
deleted file mode 100644
index a245d97..0000000
--- a/docker/elasticsearch/config/elasticsearch.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-cluster:
-  name: ${CLUSTER_NAME}
-
-node:
-  master: ${NODE_MASTER}
-  data: ${NODE_DATA}
-  #name: ${NODE_NAME}
-  ingest: ${NODE_INGEST}
-  max_local_storage_nodes: ${MAX_LOCAL_STORAGE_NODES}
-
-network.host: ${NETWORK_HOST}
-
-search.remote.connect: ${NODE_COORDINATE}
-
-path:
-  data: /usr/share/elasticsearch/data
-  logs: /usr/share/elasticsearch/log
-
-bootstrap:
-  memory_lock: ${MEMORY_LOCK}
-
-http:
-  enabled: ${HTTP_ENABLE}
-  compression: true
-  cors:
-    enabled: ${HTTP_CORS_ENABLE}
-    allow-origin: ${HTTP_CORS_ALLOW_ORIGIN}
-
-# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
-discovery:
-  zen:
-    ping.unicast.hosts: ${DISCOVERY_SERVICE}
-    minimum_master_nodes: ${NUMBER_OF_MASTERS}
-

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/elasticsearch/config/log4j2.properties
----------------------------------------------------------------------
diff --git a/docker/elasticsearch/config/log4j2.properties b/docker/elasticsearch/config/log4j2.properties
deleted file mode 100644
index 7f7817d..0000000
--- a/docker/elasticsearch/config/log4j2.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-status = error
-
-appender.console.type = Console
-appender.console.name = console
-appender.console.layout.type = PatternLayout
-appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
-
-rootLogger.level = info
-rootLogger.appenderRef.console.ref = console
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/images/configure_index.png
----------------------------------------------------------------------
diff --git a/docker/images/configure_index.png b/docker/images/configure_index.png
deleted file mode 100644
index 31ebe02..0000000
Binary files a/docker/images/configure_index.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/images/confirmation.png
----------------------------------------------------------------------
diff --git a/docker/images/confirmation.png b/docker/images/confirmation.png
deleted file mode 100644
index 467b4d4..0000000
Binary files a/docker/images/confirmation.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/images/dashboard.png
----------------------------------------------------------------------
diff --git a/docker/images/dashboard.png b/docker/images/dashboard.png
deleted file mode 100644
index 7123c9e..0000000
Binary files a/docker/images/dashboard.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/images/management.png
----------------------------------------------------------------------
diff --git a/docker/images/management.png b/docker/images/management.png
deleted file mode 100644
index 90a26ae..0000000
Binary files a/docker/images/management.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/5.6.3/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/kibana/5.6.3/Dockerfile b/docker/kibana/5.6.3/Dockerfile
new file mode 100644
index 0000000..91027a5
--- /dev/null
+++ b/docker/kibana/5.6.3/Dockerfile
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM docker.elastic.co/kibana/kibana:5.6.3
+
+MAINTAINER Michelle Beard <ms...@apache.org>
+
+# Override config
+COPY config /usr/share/kibana/config
+
+RUN kibana-plugin remove x-pack
+
+EXPOSE 5601
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/5.6.3/config/kibana.yml
----------------------------------------------------------------------
diff --git a/docker/kibana/5.6.3/config/kibana.yml b/docker/kibana/5.6.3/config/kibana.yml
new file mode 100644
index 0000000..cc93fed
--- /dev/null
+++ b/docker/kibana/5.6.3/config/kibana.yml
@@ -0,0 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+server.name: kibana
+server.host: "0"
+elasticsearch.url: http://localhost:9200

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/5.6.3/dashboard.json
----------------------------------------------------------------------
diff --git a/docker/kibana/5.6.3/dashboard.json b/docker/kibana/5.6.3/dashboard.json
new file mode 100644
index 0000000..8a179a6
--- /dev/null
+++ b/docker/kibana/5.6.3/dashboard.json
@@ -0,0 +1,19 @@
+[
+  {
+    "_id": "513c8680-be7d-11e7-8adf-fd0a12531eca",
+    "_type": "dashboard",
+    "_source": {
+      "title": "Apache SensSoft Dashboard",
+      "hits": 0,
+      "description": "",
+      "panelsJSON": "[{\"size_x\":6,\"size_y\":5,\"panelIndex\":1,\"type\":\"visualization\",\"id\":\"2bf40010-be7d-11e7-8adf-fd0a12531eca\",\"col\":1,\"row\":4},{\"size_x\":6,\"size_y\":3,\"panelIndex\":2,\"type\":\"visualization\",\"id\":\"f7ca4560-be7c-11e7-8adf-fd0a12531eca\",\"col\":7,\"row\":1},{\"size_x\":6,\"size_y\":3,\"panelIndex\":3,\"type\":\"visualization\",\"id\":\"bcd7c950-be7c-11e7-8adf-fd0a12531eca\",\"col\":7,\"row\":4},{\"size_x\":6,\"size_y\":3,\"panelIndex\":4,\"type\":\"visualization\",\"id\":\"e36b1f40-be7c-11e7-8adf-fd0a12531eca\",\"col\":1,\"row\":1}]",
+      "optionsJSON": "{\"darkTheme\":true}",
+      "uiStateJSON": "{}",
+      "version": 1,
+      "timeRestore": false,
+      "kibanaSavedObjectMeta": {
+        "searchSourceJSON": "{\"filter\":[{\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}}}],\"highlightAll\":true,\"version\":true}"
+      }
+    }
+  }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/5.6.3/visualizations.json
----------------------------------------------------------------------
diff --git a/docker/kibana/5.6.3/visualizations.json b/docker/kibana/5.6.3/visualizations.json
new file mode 100644
index 0000000..7052384
--- /dev/null
+++ b/docker/kibana/5.6.3/visualizations.json
@@ -0,0 +1,58 @@
+[
+  {
+    "_id": "bcd7c950-be7c-11e7-8adf-fd0a12531eca",
+    "_type": "visualization",
+    "_source": {
+      "title": "Top Event Types",
+      "visState": "{\"title\":\"Top Event Types\",\"type\":\"pie\",\"params\":{\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"isDonut\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{\"customLabel\":\"Top Event Types\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"type\",\"size\":100,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"Event types\"}}],\"listeners\":{}}",
+      "uiStateJSON": "{}",
+      "description": "",
+      "version": 1,
+      "kibanaSavedObjectMeta": {
+        "searchSourceJSON": "{\"index\":\"userale\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
+      }
+    }
+  },
+  {
+    "_id": "e36b1f40-be7c-11e7-8adf-fd0a12531eca",
+    "_type": "visualization",
+    "_source": {
+      "title": "Total Number of Logs",
+      "visState": "{\"title\":\"Total Number of Logs\",\"type\":\"metric\",\"params\":{\"handleNoResults\":true,\"fontSize\":60},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{\"customLabel\":\"Total number of logs\"}}],\"listeners\":{}}",
+      "uiStateJSON": "{}",
+      "description": "",
+      "version": 1,
+      "kibanaSavedObjectMeta": {
+        "searchSourceJSON": "{\"index\":\"userale\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
+      }
+    }
+  },
+  {
+    "_id": "f7ca4560-be7c-11e7-8adf-fd0a12531eca",
+    "_type": "visualization",
+    "_source": {
+      "title": "Time Series",
+      "visState": "{\"title\":\"Time Series\",\"type\":\"timelion\",\"params\":{\"expression\":\".es(*)\",\"interval\":\"auto\"},\"aggs\":[],\"listeners\":{}}",
+      "uiStateJSON": "{}",
+      "description": "",
+      "version": 1,
+      "kibanaSavedObjectMeta": {
+        "searchSourceJSON": "{\"query\":{\"query_string\":{\"query\":\"*\"}},\"filter\":[]}"
+      }
+    }
+  },
+  {
+    "_id": "2bf40010-be7d-11e7-8adf-fd0a12531eca",
+    "_type": "visualization",
+    "_source": {
+      "title": "Events by Targets",
+      "visState": "{\"title\":\"Events by Targets\",\"type\":\"histogram\",\"params\":{\"addLegend\":true,\"addTimeMarker\":false,\"addTooltip\":true,\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"labels\":{\"show\":true,\"truncate\":100},\"position\":\"bottom\",\"scale\":{\"type\":\"linear\"},\"show\":true,\"style\":{},\"title\":{\"text\":\"HTML Tags\"},\"type\":\"category\"}],\"defaultYExtents\":false,\"drawLinesBetweenPoints\":true,\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"interpolate\":\"linear\",\"legendPosition\":\"right\",\"radiusRatio\":9,\"scale\":\"linear\",\"seriesParams\":[{\"data\":{\"id\":\"1\",\"label\":\"Count\"},\"drawLinesBetweenPoints\":true,\"mode\":\"stacked\",\"show\":\"true\",\"showCircles\":true,\"type\":\"histogram\",\"valueAxis\":\"ValueAxis-1\"}],\"setYExtents\":false,\"showCircles\":true,\"times\":[],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"labels\":{\"filter\":false,\"rotate\":0,\"show\":true,\"truncate\":100},\"name\":\"LeftAxi
 s-1\",\"position\":\"left\",\"scale\":{\"mode\":\"normal\",\"type\":\"linear\"},\"show\":true,\"style\":{},\"title\":{},\"type\":\"value\"}]},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"target\",\"size\":100,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"HTML Tags\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"type\",\"size\":20,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"JS Events\"}}],\"listeners\":{}}",
+      "uiStateJSON": "{}",
+      "description": "",
+      "version": 1,
+      "kibanaSavedObjectMeta": {
+        "searchSourceJSON": "{\"index\":\"userale\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
+      }
+    }
+  }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/6.2.2/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/kibana/6.2.2/Dockerfile b/docker/kibana/6.2.2/Dockerfile
new file mode 100644
index 0000000..630fe98
--- /dev/null
+++ b/docker/kibana/6.2.2/Dockerfile
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM docker.elastic.co/kibana/kibana-oss:6.2.2
+
+MAINTAINER Michelle Beard <ms...@apache.org>
+
+EXPOSE 5601

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/6.2.2/config/kibana.yml
----------------------------------------------------------------------
diff --git a/docker/kibana/6.2.2/config/kibana.yml b/docker/kibana/6.2.2/config/kibana.yml
new file mode 100644
index 0000000..cc93fed
--- /dev/null
+++ b/docker/kibana/6.2.2/config/kibana.yml
@@ -0,0 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+server.name: kibana
+server.host: "0"
+elasticsearch.url: http://localhost:9200

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/kibana/Dockerfile b/docker/kibana/Dockerfile
deleted file mode 100644
index 91027a5..0000000
--- a/docker/kibana/Dockerfile
+++ /dev/null
@@ -1,25 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-FROM docker.elastic.co/kibana/kibana:5.6.3
-
-MAINTAINER Michelle Beard <ms...@apache.org>
-
-# Override config
-COPY config /usr/share/kibana/config
-
-RUN kibana-plugin remove x-pack
-
-EXPOSE 5601
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/config/kibana.yml
----------------------------------------------------------------------
diff --git a/docker/kibana/config/kibana.yml b/docker/kibana/config/kibana.yml
deleted file mode 100644
index cc93fed..0000000
--- a/docker/kibana/config/kibana.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-server.name: kibana
-server.host: "0"
-elasticsearch.url: http://localhost:9200

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/dashboard.json
----------------------------------------------------------------------
diff --git a/docker/kibana/dashboard.json b/docker/kibana/dashboard.json
deleted file mode 100644
index 8a179a6..0000000
--- a/docker/kibana/dashboard.json
+++ /dev/null
@@ -1,19 +0,0 @@
-[
-  {
-    "_id": "513c8680-be7d-11e7-8adf-fd0a12531eca",
-    "_type": "dashboard",
-    "_source": {
-      "title": "Apache SensSoft Dashboard",
-      "hits": 0,
-      "description": "",
-      "panelsJSON": "[{\"size_x\":6,\"size_y\":5,\"panelIndex\":1,\"type\":\"visualization\",\"id\":\"2bf40010-be7d-11e7-8adf-fd0a12531eca\",\"col\":1,\"row\":4},{\"size_x\":6,\"size_y\":3,\"panelIndex\":2,\"type\":\"visualization\",\"id\":\"f7ca4560-be7c-11e7-8adf-fd0a12531eca\",\"col\":7,\"row\":1},{\"size_x\":6,\"size_y\":3,\"panelIndex\":3,\"type\":\"visualization\",\"id\":\"bcd7c950-be7c-11e7-8adf-fd0a12531eca\",\"col\":7,\"row\":4},{\"size_x\":6,\"size_y\":3,\"panelIndex\":4,\"type\":\"visualization\",\"id\":\"e36b1f40-be7c-11e7-8adf-fd0a12531eca\",\"col\":1,\"row\":1}]",
-      "optionsJSON": "{\"darkTheme\":true}",
-      "uiStateJSON": "{}",
-      "version": 1,
-      "timeRestore": false,
-      "kibanaSavedObjectMeta": {
-        "searchSourceJSON": "{\"filter\":[{\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}}}],\"highlightAll\":true,\"version\":true}"
-      }
-    }
-  }
-]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/kibana/visualizations.json
----------------------------------------------------------------------
diff --git a/docker/kibana/visualizations.json b/docker/kibana/visualizations.json
deleted file mode 100644
index 7052384..0000000
--- a/docker/kibana/visualizations.json
+++ /dev/null
@@ -1,58 +0,0 @@
-[
-  {
-    "_id": "bcd7c950-be7c-11e7-8adf-fd0a12531eca",
-    "_type": "visualization",
-    "_source": {
-      "title": "Top Event Types",
-      "visState": "{\"title\":\"Top Event Types\",\"type\":\"pie\",\"params\":{\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"isDonut\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{\"customLabel\":\"Top Event Types\"}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"type\",\"size\":100,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"Event types\"}}],\"listeners\":{}}",
-      "uiStateJSON": "{}",
-      "description": "",
-      "version": 1,
-      "kibanaSavedObjectMeta": {
-        "searchSourceJSON": "{\"index\":\"userale\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
-      }
-    }
-  },
-  {
-    "_id": "e36b1f40-be7c-11e7-8adf-fd0a12531eca",
-    "_type": "visualization",
-    "_source": {
-      "title": "Total Number of Logs",
-      "visState": "{\"title\":\"Total Number of Logs\",\"type\":\"metric\",\"params\":{\"handleNoResults\":true,\"fontSize\":60},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{\"customLabel\":\"Total number of logs\"}}],\"listeners\":{}}",
-      "uiStateJSON": "{}",
-      "description": "",
-      "version": 1,
-      "kibanaSavedObjectMeta": {
-        "searchSourceJSON": "{\"index\":\"userale\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
-      }
-    }
-  },
-  {
-    "_id": "f7ca4560-be7c-11e7-8adf-fd0a12531eca",
-    "_type": "visualization",
-    "_source": {
-      "title": "Time Series",
-      "visState": "{\"title\":\"Time Series\",\"type\":\"timelion\",\"params\":{\"expression\":\".es(*)\",\"interval\":\"auto\"},\"aggs\":[],\"listeners\":{}}",
-      "uiStateJSON": "{}",
-      "description": "",
-      "version": 1,
-      "kibanaSavedObjectMeta": {
-        "searchSourceJSON": "{\"query\":{\"query_string\":{\"query\":\"*\"}},\"filter\":[]}"
-      }
-    }
-  },
-  {
-    "_id": "2bf40010-be7d-11e7-8adf-fd0a12531eca",
-    "_type": "visualization",
-    "_source": {
-      "title": "Events by Targets",
-      "visState": "{\"title\":\"Events by Targets\",\"type\":\"histogram\",\"params\":{\"addLegend\":true,\"addTimeMarker\":false,\"addTooltip\":true,\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"labels\":{\"show\":true,\"truncate\":100},\"position\":\"bottom\",\"scale\":{\"type\":\"linear\"},\"show\":true,\"style\":{},\"title\":{\"text\":\"HTML Tags\"},\"type\":\"category\"}],\"defaultYExtents\":false,\"drawLinesBetweenPoints\":true,\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"interpolate\":\"linear\",\"legendPosition\":\"right\",\"radiusRatio\":9,\"scale\":\"linear\",\"seriesParams\":[{\"data\":{\"id\":\"1\",\"label\":\"Count\"},\"drawLinesBetweenPoints\":true,\"mode\":\"stacked\",\"show\":\"true\",\"showCircles\":true,\"type\":\"histogram\",\"valueAxis\":\"ValueAxis-1\"}],\"setYExtents\":false,\"showCircles\":true,\"times\":[],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"labels\":{\"filter\":false,\"rotate\":0,\"show\":true,\"truncate\":100},\"name\":\"LeftAxi
 s-1\",\"position\":\"left\",\"scale\":{\"mode\":\"normal\",\"type\":\"linear\"},\"show\":true,\"style\":{},\"title\":{},\"type\":\"value\"}]},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"target\",\"size\":100,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"HTML Tags\"}},{\"id\":\"3\",\"enabled\":true,\"type\":\"terms\",\"schema\":\"group\",\"params\":{\"field\":\"type\",\"size\":20,\"order\":\"desc\",\"orderBy\":\"1\",\"customLabel\":\"JS Events\"}}],\"listeners\":{}}",
-      "uiStateJSON": "{}",
-      "description": "",
-      "version": 1,
-      "kibanaSavedObjectMeta": {
-        "searchSourceJSON": "{\"index\":\"userale\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
-      }
-    }
-  }
-]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/5.6.3/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/logstash/5.6.3/Dockerfile b/docker/logstash/5.6.3/Dockerfile
new file mode 100644
index 0000000..fb46e5c
--- /dev/null
+++ b/docker/logstash/5.6.3/Dockerfile
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM docker.elastic.co/logstash/logstash:5.6.3
+MAINTAINER Michelle Beard <ms...@apache.org>
+
+RUN mkdir /usr/share/logstash/templates
+
+RUN logstash-plugin remove x-pack
+
+# Known issue: https://github.com/elastic/logstash-docker/issues/45
+RUN sed -i '/xpack/d' /usr/share/logstash/config/logstash.yml
+
+# Copy Configuration files over
+COPY config/logstash-userale.conf /etc/logstash/conf.d/logstash-userale.conf
+COPY templates/userale.json /usr/share/logstash/templates/userale.json
+
+EXPOSE 8100
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/5.6.3/config/logstash-userale.conf
----------------------------------------------------------------------
diff --git a/docker/logstash/5.6.3/config/logstash-userale.conf b/docker/logstash/5.6.3/config/logstash-userale.conf
new file mode 100644
index 0000000..4af6ee7
--- /dev/null
+++ b/docker/logstash/5.6.3/config/logstash-userale.conf
@@ -0,0 +1,53 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+input {
+	http {
+		codec => "json"
+		port => 8100
+		response_headers => { 
+			"Access-Control-Allow-Origin" => "*" 
+            "Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type, Accept"
+        }
+	}
+}
+
+## Add your filters / logstash plugins configuration here
+filter {
+	mutate {
+		remove_field => [ "message", "@version", "headers"]
+	}
+
+	grok {
+    	match => [ "useraleVersion", "(?<major_ver>\d+).(?<minor_ver>\d+)(.(?<patch_ver>\d+))?" ]
+    	match => [ "toolVersion", "(?<tool_major_ver>\d+).(?<tool_minor_ver>\d+)(.(?<tool_patch_ver>\d+))?" ]
+  }
+}
+
+output {
+	# Output data to Elasticsearch instance
+	elasticsearch {
+		hosts => "${ELASTICSEARCH_URL}"
+		index => "userale"
+		document_type => "logs"
+		manage_template => true
+		template_overwrite => true
+		template => "/usr/share/logstash/templates/userale.json"
+		template_name => "userale"
+	}
+
+	# Debug
+	# stdout { codec => rubydebug }
+}

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/5.6.3/templates/userale.json
----------------------------------------------------------------------
diff --git a/docker/logstash/5.6.3/templates/userale.json b/docker/logstash/5.6.3/templates/userale.json
new file mode 100644
index 0000000..c1bdbb1
--- /dev/null
+++ b/docker/logstash/5.6.3/templates/userale.json
@@ -0,0 +1,150 @@
+{
+    "template": "userale",
+    "order": 1,
+    "settings":
+    {
+        "number_of_shards": 1,
+        "number_of_replicas": 0,
+        "index.refresh_interval": "5s",
+        "analysis": {
+            "analyzer": {
+                "my_analyzer": {
+                    "tokenizer": "my_tokenizer"
+                }
+            },
+            "tokenizer": {
+                "my_tokenizer": {
+                    "type": "path_hierarchy"
+                }
+            }
+        }
+    },
+    "mappings":
+    {
+        "_default_":
+        {
+            "_all":
+            {
+                "enabled": false
+            }
+        },
+        "logs":
+        {
+        "dynamic_templates": [
+                {
+                  "strings_as_keywords": {
+                    "match_mapping_type": "string",
+                    "mapping": {
+                      "type": "keyword"
+                    }
+                  }
+                }
+            ],
+            "dynamic": "true",
+            "properties":
+            {
+                "userAction":
+                {
+                    "type": "boolean"
+                },
+                "clientTime":
+                {
+                    "type": "date",
+                    "format": "strict_date_optional_time||epoch_millis"
+                },
+                "count":
+                {
+                    "type": "integer"
+                },
+                "targetChange": 
+                {
+                    "type": "boolean"
+                },
+                "typeChange": 
+                {
+                    "type": "boolean"
+                },
+                "details":
+                {
+                    "properties":
+                    {
+                        "alt":
+                        {
+                            "type": "boolean"
+                        },
+                        "clicks":
+                        {
+                            "type": "integer"
+                        },
+                        "ctrl": 
+                        {
+                            "type": "boolean"
+                        },
+                        "meta": 
+                        {
+                            "type": "boolean"
+                        },
+                        "shift": 
+                        {
+                            "type": "boolean"
+                        },
+                        "window":
+                        {
+                            "type": "boolean"
+                        },
+                        "x":
+                        {
+                            "type": "integer"
+                        },
+                        "y":
+                        {
+                            "type": "integer"
+                        },
+                        "z":
+                        {
+                            "type": "integer"
+                        }
+                    }
+                },
+                "location":
+                {
+                    "properties":
+                    {
+                        "x":
+                        {
+                            "type": "integer"
+                        },
+                        "y":
+                        {
+                            "type": "integer"
+                        }
+                    }
+                },
+                "major_ver":
+                {
+                    "type": "integer"
+                },
+                "minor_ver":
+                {
+                    "type": "integer"
+                },
+                "patch_ver":
+                {
+                    "type": "integer"
+                },
+                "tool_major_ver":
+                {
+                    "type": "integer"
+                },
+                "tool_minor_ver":
+                {
+                    "type": "integer"
+                },
+                "tool_patch_ver":
+                {
+                    "type": "integer"
+                }
+            }
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/6.2.2/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/logstash/6.2.2/Dockerfile b/docker/logstash/6.2.2/Dockerfile
new file mode 100644
index 0000000..d041e48
--- /dev/null
+++ b/docker/logstash/6.2.2/Dockerfile
@@ -0,0 +1,31 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+FROM docker.elastic.co/logstash/logstash-oss:6.2.2
+MAINTAINER Michelle Beard <ms...@apache.org>
+
+# Ensure default logstash configuration is removed
+RUN rm -f /usr/share/logstash/pipeline/logstash.conf
+
+# Copy Pipeline files over
+ADD pipeline/ /usr/share/logstash/pipeline/
+
+# Copy templates over
+RUN mkdir /usr/share/logstash/templates
+COPY templates/userale.json /usr/share/logstash/templates/userale.json
+
+EXPOSE 8100
+
+CMD ["logstash"]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/6.2.2/pipeline/logstash-userale.conf
----------------------------------------------------------------------
diff --git a/docker/logstash/6.2.2/pipeline/logstash-userale.conf b/docker/logstash/6.2.2/pipeline/logstash-userale.conf
new file mode 100644
index 0000000..8b4313f
--- /dev/null
+++ b/docker/logstash/6.2.2/pipeline/logstash-userale.conf
@@ -0,0 +1,52 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+input {
+	http {
+		codec => "json"
+		port => 8100
+		response_headers => { 
+			"Access-Control-Allow-Origin" => "*" 
+            "Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type, Accept"
+        }
+	}
+}
+
+## Add your filters / logstash plugins configuration here
+filter {
+	mutate {
+		remove_field => [ "message", "@version", "headers"]
+	}
+
+	grok {
+    	match => [ "useraleVersion", "(?<major_ver>\d+).(?<minor_ver>\d+)(.(?<patch_ver>\d+))?" ]
+    	match => [ "toolVersion", "(?<tool_major_ver>\d+).(?<tool_minor_ver>\d+)(.(?<tool_patch_ver>\d+))?" ]
+  }
+}
+
+output {
+	# Output data to Elasticsearch instance
+	elasticsearch {
+		hosts => "${ELASTICSEARCH_URL}"
+		index => "userale"
+		manage_template => true
+		template_overwrite => true
+		template => "/usr/share/logstash/templates/userale.json"
+		template_name => "userale"
+	}
+
+	# Debug
+	stdout { codec => rubydebug }
+}

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/6.2.2/templates/userale.json
----------------------------------------------------------------------
diff --git a/docker/logstash/6.2.2/templates/userale.json b/docker/logstash/6.2.2/templates/userale.json
new file mode 100644
index 0000000..5aa92d0
--- /dev/null
+++ b/docker/logstash/6.2.2/templates/userale.json
@@ -0,0 +1,143 @@
+{
+    "index_patterns": "userale",
+    "order": 1,
+    "settings":
+    {
+        "number_of_shards": 1,
+        "number_of_replicas": 0,
+        "index.refresh_interval": "5s",
+        "analysis": {
+            "analyzer": {
+                "my_analyzer": {
+                    "tokenizer": "my_tokenizer"
+                }
+            },
+            "tokenizer": {
+                "my_tokenizer": {
+                    "type": "path_hierarchy"
+                }
+            }
+        }
+    },
+    "mappings":
+    {
+        "doc":
+        {
+        "dynamic_templates": [
+                {
+                  "strings_as_keywords": {
+                    "match_mapping_type": "string",
+                    "mapping": {
+                      "type": "keyword"
+                    }
+                  }
+                }
+            ],
+            "dynamic": "true",
+            "properties":
+            {
+                "userAction":
+                {
+                    "type": "boolean"
+                },
+                "clientTime":
+                {
+                    "type": "date",
+                    "format": "strict_date_optional_time||epoch_millis"
+                },
+                "count":
+                {
+                    "type": "integer"
+                },
+                "targetChange": 
+                {
+                    "type": "boolean"
+                },
+                "typeChange": 
+                {
+                    "type": "boolean"
+                },
+                "details":
+                {
+                    "properties":
+                    {
+                        "alt":
+                        {
+                            "type": "boolean"
+                        },
+                        "clicks":
+                        {
+                            "type": "integer"
+                        },
+                        "ctrl": 
+                        {
+                            "type": "boolean"
+                        },
+                        "meta": 
+                        {
+                            "type": "boolean"
+                        },
+                        "shift": 
+                        {
+                            "type": "boolean"
+                        },
+                        "window":
+                        {
+                            "type": "boolean"
+                        },
+                        "x":
+                        {
+                            "type": "integer"
+                        },
+                        "y":
+                        {
+                            "type": "integer"
+                        },
+                        "z":
+                        {
+                            "type": "integer"
+                        }
+                    }
+                },
+                "location":
+                {
+                    "properties":
+                    {
+                        "x":
+                        {
+                            "type": "integer"
+                        },
+                        "y":
+                        {
+                            "type": "integer"
+                        }
+                    }
+                },
+                "major_ver":
+                {
+                    "type": "integer"
+                },
+                "minor_ver":
+                {
+                    "type": "integer"
+                },
+                "patch_ver":
+                {
+                    "type": "integer"
+                },
+                "tool_major_ver":
+                {
+                    "type": "integer"
+                },
+                "tool_minor_ver":
+                {
+                    "type": "integer"
+                },
+                "tool_patch_ver":
+                {
+                    "type": "integer"
+                }
+            }
+        }
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/Dockerfile
----------------------------------------------------------------------
diff --git a/docker/logstash/Dockerfile b/docker/logstash/Dockerfile
deleted file mode 100644
index fb46e5c..0000000
--- a/docker/logstash/Dockerfile
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-FROM docker.elastic.co/logstash/logstash:5.6.3
-MAINTAINER Michelle Beard <ms...@apache.org>
-
-RUN mkdir /usr/share/logstash/templates
-
-RUN logstash-plugin remove x-pack
-
-# Known issue: https://github.com/elastic/logstash-docker/issues/45
-RUN sed -i '/xpack/d' /usr/share/logstash/config/logstash.yml
-
-# Copy Configuration files over
-COPY config/logstash-userale.conf /etc/logstash/conf.d/logstash-userale.conf
-COPY templates/userale.json /usr/share/logstash/templates/userale.json
-
-EXPOSE 8100
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/config/logstash-userale.conf
----------------------------------------------------------------------
diff --git a/docker/logstash/config/logstash-userale.conf b/docker/logstash/config/logstash-userale.conf
deleted file mode 100644
index 4af6ee7..0000000
--- a/docker/logstash/config/logstash-userale.conf
+++ /dev/null
@@ -1,53 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-input {
-	http {
-		codec => "json"
-		port => 8100
-		response_headers => { 
-			"Access-Control-Allow-Origin" => "*" 
-            "Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type, Accept"
-        }
-	}
-}
-
-## Add your filters / logstash plugins configuration here
-filter {
-	mutate {
-		remove_field => [ "message", "@version", "headers"]
-	}
-
-	grok {
-    	match => [ "useraleVersion", "(?<major_ver>\d+).(?<minor_ver>\d+)(.(?<patch_ver>\d+))?" ]
-    	match => [ "toolVersion", "(?<tool_major_ver>\d+).(?<tool_minor_ver>\d+)(.(?<tool_patch_ver>\d+))?" ]
-  }
-}
-
-output {
-	# Output data to Elasticsearch instance
-	elasticsearch {
-		hosts => "${ELASTICSEARCH_URL}"
-		index => "userale"
-		document_type => "logs"
-		manage_template => true
-		template_overwrite => true
-		template => "/usr/share/logstash/templates/userale.json"
-		template_name => "userale"
-	}
-
-	# Debug
-	# stdout { codec => rubydebug }
-}

http://git-wip-us.apache.org/repos/asf/incubator-senssoft/blob/a575d479/docker/logstash/templates/userale.json
----------------------------------------------------------------------
diff --git a/docker/logstash/templates/userale.json b/docker/logstash/templates/userale.json
deleted file mode 100644
index c1bdbb1..0000000
--- a/docker/logstash/templates/userale.json
+++ /dev/null
@@ -1,150 +0,0 @@
-{
-    "template": "userale",
-    "order": 1,
-    "settings":
-    {
-        "number_of_shards": 1,
-        "number_of_replicas": 0,
-        "index.refresh_interval": "5s",
-        "analysis": {
-            "analyzer": {
-                "my_analyzer": {
-                    "tokenizer": "my_tokenizer"
-                }
-            },
-            "tokenizer": {
-                "my_tokenizer": {
-                    "type": "path_hierarchy"
-                }
-            }
-        }
-    },
-    "mappings":
-    {
-        "_default_":
-        {
-            "_all":
-            {
-                "enabled": false
-            }
-        },
-        "logs":
-        {
-        "dynamic_templates": [
-                {
-                  "strings_as_keywords": {
-                    "match_mapping_type": "string",
-                    "mapping": {
-                      "type": "keyword"
-                    }
-                  }
-                }
-            ],
-            "dynamic": "true",
-            "properties":
-            {
-                "userAction":
-                {
-                    "type": "boolean"
-                },
-                "clientTime":
-                {
-                    "type": "date",
-                    "format": "strict_date_optional_time||epoch_millis"
-                },
-                "count":
-                {
-                    "type": "integer"
-                },
-                "targetChange": 
-                {
-                    "type": "boolean"
-                },
-                "typeChange": 
-                {
-                    "type": "boolean"
-                },
-                "details":
-                {
-                    "properties":
-                    {
-                        "alt":
-                        {
-                            "type": "boolean"
-                        },
-                        "clicks":
-                        {
-                            "type": "integer"
-                        },
-                        "ctrl": 
-                        {
-                            "type": "boolean"
-                        },
-                        "meta": 
-                        {
-                            "type": "boolean"
-                        },
-                        "shift": 
-                        {
-                            "type": "boolean"
-                        },
-                        "window":
-                        {
-                            "type": "boolean"
-                        },
-                        "x":
-                        {
-                            "type": "integer"
-                        },
-                        "y":
-                        {
-                            "type": "integer"
-                        },
-                        "z":
-                        {
-                            "type": "integer"
-                        }
-                    }
-                },
-                "location":
-                {
-                    "properties":
-                    {
-                        "x":
-                        {
-                            "type": "integer"
-                        },
-                        "y":
-                        {
-                            "type": "integer"
-                        }
-                    }
-                },
-                "major_ver":
-                {
-                    "type": "integer"
-                },
-                "minor_ver":
-                {
-                    "type": "integer"
-                },
-                "patch_ver":
-                {
-                    "type": "integer"
-                },
-                "tool_major_ver":
-                {
-                    "type": "integer"
-                },
-                "tool_minor_ver":
-                {
-                    "type": "integer"
-                },
-                "tool_patch_ver":
-                {
-                    "type": "integer"
-                }
-            }
-        }
-    }
-}
\ No newline at end of file