Help Docs

HBase Logs

HBase logs often contain essential log information, and this information can be managed with Site24x7 AppLogs by proper segmentation of the log data into associated fields like date & time, log level, thread level, thread name, source file name, and message. HBase is one of Site24x7's natively supported applications for log management. Learn more about log management with Site24x7.

Getting started 

  1. Log in to your Site24x7 account.
  2. Download and install the Site24x7 Server Monitoring agent (Windows | Linux). 
  3. Go to Admin > AppLogs > Log Profile and Add Log Profile.

Logs file path

Each application writes logs in different folders and files. By default, HBase logs are sourced from the below-mentioned folder path for the respective Operating System. If you have logs in different folder, you can mention it under the File Path to source them from that particular folder while creating a log profile.

Linux icon
:
/var/log/*hbase*/*.log*
 
 
/opt/*hbase*/logs/*.log*
Windows icon
:
C:\*hbase*\logs\*.log*
 
 
C:\Program Files\*hbase*\logs\*.log*

Log pattern

$DateTime:date$ $LogLevel$ [$ThreadName$] $SourceFileName$: $Message$
This is the default pattern defined by Site24x7 for parsing Hbase logs based on the sample mentioned below.

Sample log

2016-05-10 20:55:33,342 INFO  [regionserver/app-centos5-64-2/172.21.113.5:16020] regionserver.Leases: regionserver/app-centos5-64-2/172.21.113.5:16020 closing leases

The above sample log can be separated into 5 fields, each of which will take its respective value from here and will then be uploaded to Site24x7.

Field name Field value
Date Time 2016-05-10 20:55:33,342
Log Level INFO
Thread Name regionserver/app-centos5-64-2/172.21.113.5:16020
Source File Name Leases: regionserver/app-centos5-64-2/172.21.113.5:16020
Message closing leases

Related log types

Was this document helpful?

Shortlink has been copied!