Logging & OpenSearch Deployment
Last updated
Last updated
Copyright © 2024 OpenG2P. This work is licensed under Creative Commons Attribution International LicenseCC-BY-4.0 unless otherwise noted.
Logs from different components present on the cluster will be pulled into OpenSearch to display dashboards and compute reports. Fluentd is used to pull captured logs and put into OpenSearch.
The following utilities/tools must be present on the user's machine.
kubectl
, istioctl
, helm
, jq
, curl
, wget
, git
, bash
, envsubst
.
for Authentication and Sign-in to UI
Clone the repo and navigate to directory.
Run this to install OpenSearch and related components.
After installation is successful, OpenSearch dashboards will be accessible at https://opensearch.openg2p.sandbox.net, depending on the hostname given above.
On Rancher UI, navigate to Apps (or Apps & Marketplace) -> Charts
Search and install Logging from the list, with default values.
Run this to add ISM Policy (This is responsible for automatically deleting logstash indices after 3 days. Configure the minimum age to delete indices, in the same script below.)
Run this to create ClusterOutput (This is responsible for redirecting all logs to OpenSearch.)
Run this to create a ClusterFlow (This is responsible for filtering OpenG2P service logs, from the logs of all pods.)
TODO
TODO
TODO
Note the filters applied in . You may update the same for your install if required, and rerun the apply command.