Coder Social home page Coder Social logo

Comments (2)

gsmith-sas avatar gsmith-sas commented on June 20, 2024

@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.

staceychan avatar staceychan commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.