what is the log format of elastic search?

Viewed 2547

Sample Format of elasticsearch log: [2017-08-30T06:27:19,158][WARN ][o.e.m.j.JvmGcMonitorService] [Glsuj_2] [gc][296816] overhead, spent [1.2s] collecting in the last [1.3s]

Can you please explain me what does it mean? when we observe the log? please explain me each and every word in the log?

what is meant by o.e.m.j.JvmGcMonitorService ?

what is meant by Glsuj_2?

what is meant by gc?

what is meant by 296816?

2 Answers

Following on from Tommy's response, The Log file will contain the following details.

[gc][{}][{}][{}] duration [{}], collections [{}]/[{}], total [{}]/[{}], memory [{}]->[{}]/[{}], all_pools {}

The braces are substituted using the values below, in using their positional order. So the first {}, reading left to right, is replaced by the value of "name" and the last one with the value returned by pools.apply(lastJvmStats, currentJvmStats).

 name,
 seq,
 totalGcCollectionCount,
 currentGcCollectionTime,
 currentGcCollectionCount,
 TimeValue.timeValueMillis(elapsed),
 currentGcCollectionTime,
 totalGcCollectionTime,
 lastJvmStats.getMem().getHeapUsed(),
 currentJvmStats.getMem().getHeapUsed(),
 maxHeapUsed,
 pools.apply(lastJvmStats, currentJvmStats)
Related