Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

How to Access the Cassandra Database in vRealize Log Insight (57901)

Last Updated: 3/9/2023Categories: How toTotal Views: 16391Language:
English

6 like this article

Subscribe to get an email
newsletter with new updates

6 people found this helpful Please provide article feedback:

Purpose

This article provides instructions for accessing the Cassandra database in vRealize Log Insight 4.7 and later.

Cause

In previous vRealize Log Insight versions, the Cassandra Database was accessible without authentication.
For security purposes, mandatory authentication has been added, starting in vRealize Log Insight 8.0.
Starting in vRealize Log Insight 8.3, SSL communication has been enabled between the Cassandra Server and Log Insight service, requiring the cqlshrc parameter be passed using cqlsh tool.

Resolution

In order to access the cqlsh (Cassandra shell) command line tool on vRealize Log Insight 8.0 and later, the username and password must be specified.

Option 1: Use environmental variables to log into Cassandra.

Log into the vRealize Log Insight node as root via SSH or Console.

To log into the Cassandra database, run the following command:

CASSANDRAUSER="$(/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/credentials-look-up| grep "user value=" | awk -F'"' '{print $2}')"; CASSANDRAPASSWORD="$(/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/credentials-look-up| grep "password value=" | awk -F '"' '{print $2}')"; /usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh -u $CASSANDRAUSER -p $CASSANDRAPASSWORD

Option 2: Manually obtain username and password to log into Cassandra.

Log into the vRealize Log Insight 4.7 or later node as root via SSH or Console.

Run the following command to get the Cassandra credentials and note the user and password values:

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/credentials-look-up

Note: You will see output similar to:
<cassandra-user value="lisuper" />
<cassandra-password value="l337nuFvPbsWXlYIx2MsVqo4RotfgAXx" />

To log into the Cassandra database, run the appropriate command:

vRealize Log Insight 8.8 and later

cqlsh-no-pass
nodetool-no-pass status

vRealize Log Insight 8.6 and later

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh-no-pass

vRealize Log Insight 8.3 - 8.4

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh -u user -p password --cqlshrc=/storage/core/loginsight/cidata/cassandra/config/cqlshrc

Note: Replace user and password with the values noted in step 2.

Example: /usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh -u lisuper -p l337nuFvPbsWXlYIx2MsVqo4RotfgAXx --cqlshrc=/storage/core/loginsight/cidata/cassandra/config/cqlshrc

vRealize Log Insight 4.7-8.2

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh -u user -p password

Note: Replace user and password with the values noted in step 2.

Example: /usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh -u lisuper -p l337nuFvPbsWXlYIx2MsVqo4RotfgAXx

Alternatively, use the following command:
/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh-no-pass

Related Information

To list the nodes in the cluster, along with their status from the Cassandra perspective, run the following command:

vRealize Log Insight 4.7-8.2

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/nodetool status

OR:

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/nodetool-no-pass status

vRealize Log Insight 8.3 and Later

/usr/lib/loginsight/application/lib/apache-cassandra-*/bin/nodetool -u user -pw password status

Note: Replace user and password with the values noted in step 2 of the resolution section.

Example:  /usr/lib/loginsight/application/lib/apache-cassandra-*/bin/cqlsh -u lisuper -pw l337nuFvPbsWXlYIx2MsVqo4RotfgAXx status

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware vRealize Log Insight

Related Versions:

Take Our Survey

Support Assistant