diff options
author | 2018-07-23 10:07:49 -0400 | |
---|---|---|
committer | 2018-07-30 17:05:31 -0400 | |
commit | 396402cdd65c3f1a5b1fe2ab7fc0dd62f9dc35bd (patch) | |
tree | df15f46731eca7299f4be2204272c1c2600e5177 /reference/logging-kubernetes/logdemonode/README.md | |
parent | 268e848b1494dc09d614d8479f70bf9aefa69166 (diff) |
add filebeat to k8s log demo
Change-Id: I1c229a9e5f7c9379d8d9f9fdf724908f083925d9
Issue-ID: LOG-137
Signed-off-by: Michael O'Brien <frank.obrien@amdocs.com>
Diffstat (limited to 'reference/logging-kubernetes/logdemonode/README.md')
-rw-r--r-- | reference/logging-kubernetes/logdemonode/README.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/reference/logging-kubernetes/logdemonode/README.md b/reference/logging-kubernetes/logdemonode/README.md new file mode 100644 index 0000000..3b3de15 --- /dev/null +++ b/reference/logging-kubernetes/logdemonode/README.md @@ -0,0 +1,43 @@ +Running the logdemonode pod: +- oom and logging-analytics cloned +sudo git clone https://gerrit.onap.org/r/oom +sudo git clone https://gerrit.onap.org/r/logging-analytics + +install onap log: +cd oom/kubernetes +/oom/kubernetes$ sudo helm delete --purge onap +/oom/kubernetes$ sudo make all +/oom/kubernetes$ sudo helm install local/onap -n onap --namespace onap -f onap/resources/environments/disable-allcharts.yaml --set log.enabled=false +/oom/kubernetes$ sudo helm upgrade -i onap local/onap --namespace onap -f onap/resources/environments/disable-allcharts.yaml --set log.enabled=true + +install logdemo: +cd logging-analytics/reference/logging-kubernetes +/logging-analytics/reference/logging-kubernetes$ sudo helm delete --purge logdemonode +/logging-analytics/reference/logging-kubernetes$ sudo make all +/logging-analytics/reference/logging-kubernetes$ sudo helm install local/logdemonode -n logdemonode --namespace onap --set logdemonode.enabled=true + +results: +kubectl get pods --all-namespaces +onap logdemonode-logdemonode-5c8bffb468-rx2br 2/2 Running 0 1m +onap onap-log-elasticsearch-7557486bc4-9h7gf 1/1 Running 0 40m +onap onap-log-kibana-fc88b6b79-rkpzx 1/1 Running 0 40m +onap onap-log-logstash-fpzc5 1/1 Running 0 40m + +kubectl get services --all-namespaces +onap log-es NodePort 10.43.17.89 <none> 9200:30254/TCP 39m +onap log-es-tcp ClusterIP 10.43.120.133 <none> 9300/TCP 39m +onap log-kibana NodePort 10.43.73.68 <none> 5601:30253/TCP 39m +onap log-ls NodePort 10.43.107.55 <none> 5044:30255/TCP 39m +onap log-ls-http ClusterIP 10.43.48.177 <none> 9600/TCP 39m +onap logdemonode NodePort 10.43.0.35 <none> 8080:30258/TCP 55s + +Invoke a rest call that generates logs (ENTRY, in-method, EXIT) +curl http://localhost:30258/logging-demo/rest/health/health +true + +check records in elasticsearch + +curl http://localhost:30254/_search?q=* +{"took":3,"timed_out":false,"_shards":{"total":21,"successful":21,"failed":0},"hits":{"total":2385953....... + + |