Package org.elasticsearch.common.logging
Class JsonLogLine
java.lang.Object
org.elasticsearch.common.logging.JsonLogLine
Represents a single log line in a json format.
Parsing log lines with this class confirms the json format of logs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ObjectParser<JsonLogLine, Void> static final org.elasticsearch.xcontent.ObjectParser<JsonLogLine, Void> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()getTags()voidsetClusterName(String clusterName) voidsetClusterUuid(String clusterUuid) voidsetComponent(String component) voidsetDataset(String dataset) voidvoidsetMessage(String message) voidvoidsetNodeName(String nodeName) voidsetStacktrace(List<String> stacktrace) voidvoidsetTimestamp(String timestamp) toString()
-
Field Details
-
ECS_LOG_LINE
-
ES_LOG_LINE
-
-
Constructor Details
-
JsonLogLine
public JsonLogLine()
-
-
Method Details
-
toString
-
getDataset
-
getTimestamp
-
getLevel
-
getComponent
-
getClusterName
-
getNodeName
-
getClusterUuid
-
getNodeId
-
getMessage
-
getTags
-
stacktrace
-
setDataset
-
setTimestamp
-
setLevel
-
setComponent
-
setClusterName
-
setNodeName
-
setClusterUuid
-
setNodeId
-
setMessage
-
setTags
-
setStacktrace
-