Highlighted
Micro Focus Expert
Micro Focus Expert
347 views

(SM) Support Tip: Kubernetes logs use 'glog' - Google Logging Library

When reviewing a log from Kubernetes the following format is seen below. What does this mean?

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0313 22:47:01.240753 21904 sched.cpp:635] Scheduler::statusUpdate took    23007ns
 
And so on....
 
Other entries might look like the following:
 
W0313
E0313
F0313
 
This is a default format of Google Logging Library - aka "glog". Below is how to decipher these types of log entries. The below is a sample:
 
[IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line]
I0313 22:47:01.240753 21904 sched.cpp:635] Scheduler::statusUpdate took    23007ns
 
I -- Level
03 -- month
13 -- date
22 -- hour
47 -- minute
01 -- second
240753 -- micro second
21904 -- thread id
sched.cpp -- source file
635 -- source file line
Scheduler::statusUpdate took 23007ns -- message
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.