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 org.elasticsearch.xcontent.ObjectParser<JsonLogLine,Void>
static org.elasticsearch.xcontent.ObjectParser<JsonLogLine,Void>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
getTags()
void
setClusterName(String clusterName)
void
setClusterUuid(String clusterUuid)
void
setComponent(String component)
void
setDataset(String dataset)
void
void
setMessage(String message)
void
void
setNodeName(String nodeName)
void
setStacktrace(List<String> stacktrace)
void
void
setTimestamp(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
-