HBase Logs

HBase logs often contain essential log information, and this information can be managed with OpManager Nexus 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 OpManager Nexus's natively supported applications for log management. Learn more about log management with OpManager Nexus.

Getting started

  1. Log in to your OpManager Nexus account.
  2. Download and install the OpManager Nexus 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 OpManager Nexus 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 OpManager Nexus.

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
Shortlink has been copied!