{
"operation-name" : "read-log-file",
"description" : "Reads the contents of a log file. The file must be in the jboss.server.log.dir and must be defined as a file-handler, periodic-rotating-file-handler or size-rotating-file-handler.",
"request-properties" : {
"name" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "The name of the log file to read. This file must exist in the jboss.server.log.dir.",
"expressions-allowed" : true,
"required" : true,
"nillable" : false,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"encoding" : {
"type" : {
"TYPE_MODEL_VALUE" : "STRING"
},
"description" : "The character encoding used to read the file.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"min-length" : 1,
"max-length" : 2147483647,
"stability" : "default"
},
"lines" : {
"type" : {
"TYPE_MODEL_VALUE" : "INT"
},
"description" : "The number of lines to read from the file. A value of -1 will read all log lines.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : 10,
"min" : -1,
"max" : 2147483647,
"stability" : "default"
},
"skip" : {
"type" : {
"TYPE_MODEL_VALUE" : "INT"
},
"description" : "The number of lines to skip before reading.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : 0,
"min" : 0,
"max" : 2147483647,
"stability" : "default"
},
"tail" : {
"type" : {
"TYPE_MODEL_VALUE" : "BOOLEAN"
},
"description" : "Reads from the end of the file.",
"expressions-allowed" : true,
"required" : false,
"nillable" : true,
"default" : true,
"stability" : "default"
}
},
"reply-properties" : {
"type" : {
"TYPE_MODEL_VALUE" : "LIST"
},
"value-type" : {
"TYPE_MODEL_VALUE" : "STRING"
}
},
"deprecated" : {
"since" : "3.0.0",
"reason" : "Use the log-file resource to read the log file."
},
"access-constraints" : {"sensitive" : {"view-server-logs" : {"type" : "logging"}}},
"stability" : "default",
"read-only" : true,
"runtime-only" : true
}