Comments (2)
@staceychan Thank you for reaching out. I just double-checked the documentation and can see that we were not clear about how to set the host and port. In your screenshots, I can see you were using the host and port needed to reach Kibana. The host and port provided to the getlogs.sh script should be the host and port needed to reach Elasticsearch and NOT the host and port needed to reach Kibana. From your screenshots, I can see you are using NodePorts (i.e. port 31033). In that case, you can run the es_nodeport_enable.sh script (found in the logging/bin sub-directory of the repo) to make Elasticsearch available. When the script runs, it will display a URL showing how to access Elasticsearch.
The following console shows how I did this on one of my test clusters:
-bash-4.2$ ./logging/bin/es_nodeport_enable_open.sh
INFO User directory: /repos/viya4-monitoring-kubernetes
INFO Helm client version: 3.4.1
INFO Kubernetes client version: v1.20.11
INFO Kubernetes server version: v1.20.11
INFO Loading user environment file: /repos/viya4-monitoring-kubernetes/logging/user.env
service/v4m-es-client-service patched
**Accessing the monitoring applications**
You can access ELASTICSEARCH via the following URL:
https://myserver.foo.com:31775
Note: These URLs may be incorrect if your ingress and/or other network
configuration includes options this script does not handle.
-bash-4.2$ export ESHOST=myserver.foo.com
-bash-4.2$ export ESPORT=31775
-bash-4.2$ export ESUSER=****
-bash-4.2$ export ESPASSWD=****
-bash-4.2$ ./logging/bin/getlogs.sh
INFO User directory: /repos/viya4-monitoring-kubernetes
INFO Search for matching log messages started... Tue Jan 25 10:32:15 EST 2022
'@timestamp,level,logsource,namespace,pod,container,message
2022-01-25 15:32:14.926,INFO,database,d39984,sas-crunchy-data-postgres-dzgp-5468dc75c8-rzdnw,database,no action. I am a secondary (sas-crunchy-data-postgres-dzgp-5468dc75c8-rzdnw) and following a leader (sas-crunchy-data-postgres-744d4c78ff-c5mnm)
I should also mention that getlogs.sh is still "experimental" and does not always work. This is especially true after our move to the more recent version of Kibana.
You may want to try out the new REPORTING capabilities of Kibana in this new release. This can be accessed by clicking on the link labeled REPORTING in the upper right side of the DISCOVER screen within Kibana. It allows you to generate a CSV from the current set of messages. Please note that you need to be working with a saved search query before the generate CSV option is ungrayed. To do that, add a set of columns to the table and save the view (by selecting SAVE from the menu in the upper-right). Or, use one of the existing saved search queries (either Log Messages or Log Messages (Pods/Containers) which can be loaded by selecting OPEN from that same menu.
IMPORTANT: Please do NOT modify the column layouts of either of these existing search queries; if you do you will break other Kibana content, including some dashboards, that use these search queries.
I hope that helps. Thank you for using our project.
from viya4-monitoring-kubernetes.
Hi Expert,
Cool. Thanks for your help and it works now.
We also understand the new version kibana can do this task as well.
Appreciate it. :)
Best,
Stacey
from viya4-monitoring-kubernetes.
Related Issues (20)
- Respect TLS verification
- facing challenges in Installation of Cluster-monitoring and logging
- Rework % mem use / limit to use memory wss values HOT 1
- opensearch play fails Exiting script [deploy_logging.sh] HOT 11
- No metrics available in Grafana when deployed into a namespace other than "monitoring" HOT 1
- Upgrade of logging components fails with error related to Event Router HOT 1
- Error: release v4m-prometheus-operator failed
- sas-go-pods podmonitor incorrect HOT 2
- sas-opendistro vs. sas-opensearch ServiceMonitor HOT 6
- Opensearch Dashboard 502 Bad gateway HOT 2
- how to send email HOT 1
- Integrating OpenSearch with LDAP HOT 2
- KubeHpaMaxedOut patching breaks any alterations via user-values file. HOT 1
- unable to load openshift/oauth-proxy HOT 2
- samples/azure-deployment/README.md URL is wrong
- samples/azure-deployment default promethues URL for data source is wrong HOT 2
- Metrics not collected for Config-Reloader sidecars to Alertmanager and Prometheus
- ERROR There was an issue loading ingest pipeline into OpenSearch [503] HOT 4
- Metrics are not collected on Air-Gapped environment HOT 7
- The Deployment "v4m-grafana" is invalid: spec.template.spec.containers[0].imagePullPolicy: Unsupported value : "__IMAGE_PULL_POLICY__" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viya4-monitoring-kubernetes.