Search A Diagnostics Log
/management/weblogic/{version}/serverRuntime/WLDFRuntime/WLDFAccessRuntime/WLDFDataAccessRuntimes/{name}/search
Search this diagnostics log, returning the results as json.
Request
- application/json
-
name: string
The name property of the instance in the collection.
-
version: string
The version of the WebLogic REST interface.
-
X-Requested-By: string
The 'X-Requested-By' header is used to protect against Cross-Site Request Forgery (CSRF) attacks. The value is an arbitrary name such as 'MyClient'.
Must contain the following fields:
objectSearch Criteria-
fromId(optional):
integer(int64)
Only return records starting at this record id or later.
This can be used to continue a search that has more matching results than the specified
limitfield. The previous response will return anextRecordId. SetfromIdto that value and POST again to continue the search.This field is optional.
-
lastMinutes(optional):
integer(int64)
Only return records that have been logged in the last n minutes.
This field is optional. If specified, the value must be greater than zero.
-
limit(optional):
integer(int64)
The maximum number of matching records that will be returned.
If there are more available records, then the response will contain the oldest matching records, as well as a
nextRecordIdthat the client can use to continue the search (by settingfromIdto its value).This field must be specified. The value must be greater than zero.
-
query(optional):
string
An optional filter that can be used to restrict which records are returned, for example "SEVERITY = 'Info'". See "WLDF Query Language in Configuring and Using the Diagnostics Framework for Oracle WebLogic Server" for more details.
This field is optional. If not specified, then no filter is applied to the records.
-
since(optional):
string
Only return records that were logged at this time or later.
This field is optional. If specified it must be in one the following formats: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" (e.g. "2016-05-24T13:44:02.349-04:00"), "yyyy-MM-dd'T'HH:mm:ss.SSSXX" (e.g. "2016-05-24T13:44:02.349-0400") or "yyyy-MM-dd'T'HH:mm:ss.SSSX" (e.g. "2016-05-24T13:44:02.349-04").
-
until(optional):
string
Only return records that were logged earlier than this time.
This field is optional. If specified it must be in one the following formats: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" (e.g. "2016-05-24T13:44:02.349-04:00"), "yyyy-MM-dd'T'HH:mm:ss.SSSXX" (e.g. "2016-05-24T13:44:02.349-0400") or "yyyy-MM-dd'T'HH:mm:ss.SSSX" (e.g. "2016-05-24T13:44:02.349-04").
-
Admin: basic
Type:
basicDescription:A user in the Admin security role. -
Deployer: basic
Type:
basicDescription:A user in the Deployer security role. -
Monitor: basic
Type:
basicDescription:A user in the Monitor security role. -
Operator: basic
Type:
basicDescription:A user in the Operator security role.
Response
- application/json
200 Response
Contains the matching log records.
objectSearch Results-
nextRecordId(optional):
string
Identifies the next matching record in the log.
This field is only present if there are more matching records than
limitspecified in the request body. The client can continue the search by POSTing the same query to this resource again, settingfromIdto the value ofnextRecordId, instead of specifyinglastMinutesorsince -
records(optional):
array Items
Title:
ItemsThe matching records. The records are in chronological order, oldest first.
All available fields are returned for each record. The list of available fields depends on the log.
If there are more matching records than
limitspecified in the request body, then the oldest matches up that that limit will be returned.
arrayItemsThe matching records. The records are in chronological order, oldest first.
All available fields are returned for each record. The list of available fields depends on the log.
If there are more matching records than limit specified in the request body, then the oldest matches up that that limit will be returned.
-
Array of:
object Record
Title:
Record
Examples
Start searching a log.
This example uses the POST method to start searching for records in the server log, returning the results as a json.
Example Request
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
limit: 2,
query: 'SEVERITY = \'Info''
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverRuntime/WLDFRuntime/WLDFAccessRuntime/WLDFDataAccessRuntimes/ServerLog/search
Example Response
HTTP/1.1 200 OK
Response Body:
{
"records": [
{
"RECORDID": 1,
"DATE": "Feb 7, 2019 9:07:13,165 AM EST",
"SEVERITY": "Info",
"SUBSYSTEM": "Security",
"MACHINE": "machine1",
"SERVER": "",
"THREAD": "main",
"USERID": "",
"TXID": "",
"CONTEXTID": "",
"TIMESTAMP": "1549548433165",
"MSGID": "BEA-090905",
"MESSAGE": "Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.",
"SUPP_ATTRS": "[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] ",
"SEVERITY_VALUE": 64,
"PARTITION_ID": "0",
"PARTITION_NAME": "DOMAIN",
"RID": ""
},
{
"RECORDID": 2,
"DATE": "Feb 7, 2019 9:07:13,270 AM EST",
"SEVERITY": "Info",
"SUBSYSTEM": "Security",
"MACHINE": "machine1",
"SERVER": "",
"THREAD": "main",
"USERID": "",
"TXID": "",
"CONTEXTID": "",
"TIMESTAMP": "1549548433270",
"MSGID": "BEA-090906",
"MESSAGE": "Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.",
"SUPP_ATTRS": "[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] ",
"SEVERITY_VALUE": 64,
"PARTITION_ID": "0",
"PARTITION_NAME": "DOMAIN",
"RID": ""
}],
"nextRecordId": 3
}
Continue searching a log.
This example uses the POST method to continue searching for records in the server log, returning the results as a json.
Example Request
curl -v \
--user admin:admin123 \
-H X-Requested-By:MyClient \
-H Accept:application/json \
-H Content-Type:application/json \
-d "{
limit: 2,
fromId: 3,
query: 'SEVERITY = \'Info''
}" \
-X POST http://localhost:7001/management/weblogic/latest/serverRuntime/WLDFRuntime/WLDFAccessRuntime/WLDFDataAccessRuntimes/ServerLog/search
Example Response
HTTP/1.1 200 OK
Response Body:
{
"records": [
{
"RECORDID": 3,
"DATE": "Feb 7, 2019 9:07:14,070 AM EST",
"SEVERITY": "Info",
"SUBSYSTEM": "WebLogicServer",
"MACHINE": "machine1",
"SERVER": "",
"THREAD": "Thread-7",
"USERID": "",
"TXID": "",
"CONTEXTID": "",
"TIMESTAMP": "1549548434070",
"MSGID": "BEA-000377",
"MESSAGE": "Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.191-b12 from Oracle Corporation.",
"SUPP_ATTRS": "[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] ",
"SEVERITY_VALUE": 64,
"PARTITION_ID": "0",
"PARTITION_NAME": "DOMAIN",
"RID": ""
},
{
"RECORDID": 4,
"DATE": "Feb 7, 2019 9:07:14,491 AM EST",
"SEVERITY": "Info",
"SUBSYSTEM": "Management",
"MACHINE": "machine1",
"SERVER": "",
"THREAD": "Thread-5",
"USERID": "",
"TXID": "",
"CONTEXTID": "",
"TIMESTAMP": "1549548434491",
"MSGID": "BEA-141107",
"MESSAGE": "Version: WebLogic Server 19.1.0.0.0 Wed Feb 6 04:24:23 PST 2019 1949140",
"SUPP_ATTRS": "[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] ",
"SEVERITY_VALUE": 64,
"PARTITION_ID": "0",
"PARTITION_NAME": "DOMAIN",
"RID": ""
}],
"nextRecordId": 6
}
Back to Top