Search A Diagnostics Log

post

/management/weblogic/{version}/serverRuntime/WLDFRuntime/WLDFAccessRuntime/WLDFDataAccessRuntimes/{name}/search

Search this diagnostics log, returning the results as json.

Request

Supported Media Types
Path Parameters
Header Parameters
  • 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'.
Body ()

Must contain the following fields:

Root Schema : Search Criteria
Type: object
Title: Search Criteria
Show Source
  • 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 limit field. The previous response will return a nextRecordId. Set fromId to that value and POST again to continue the search.

    This field is optional.

  • 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.

  • 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 nextRecordId that the client can use to continue the search (by setting fromId to its value).

    This field must be specified. The value must be greater than zero.

  • 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.

  • 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").

  • 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").

Security
Back to Top

Response

Supported Media Types

200 Response

Contains the matching log records.

Body ()
Root Schema : Search Results
Type: object
Title: Search Results
Show Source
  • Identifies the next matching record in the log.

    This field is only present if there are more matching records than limit specified in the request body. The client can continue the search by POSTing the same query to this resource again, setting fromId to the value of nextRecordId, instead of specifying lastMinutes or since

  • Items
    Title: Items

    The 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.

Nested Schema : Items
Type: array
Title: Items

The 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.

Show Source
Nested Schema : Record
Type: object
Title: Record
Show Source
Back to Top

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