Description Syntax Example exportDiagnosticDataFromServer

3-32 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

3.6.1.3 Example

The following example executes a query against the ServerLog named myserver.log and stores the results in the file named myExport.xml. wls:offlinemydomainexportDiagnosticDatalogicalName=ServerLog, logName=myserver.log, exportFileName=myExport.xml {elfFields: , logName: myserver.log, logRotationDir: ., endTimestamp: 9223372036854775807L, exportFileName: export.xml, storeDir: ..datastorediagnostics, logicalName: ServerLog, query: , beginTimestamp: 0} Exporting diagnostic data to export.xml Aug 2, 2005 6:58:21 PM EDT Info Store BEA-280050 Persistent store WLS_DIAGNOSTICS opened: directory=c:\Oracle\Middleware \wlserver_10.3\server\data\store\diagnostics writePolicy=Disabled blockSize=512 directIO=false driver=wlfileio2 wls:mydomainserverRuntime

3.6.2 exportDiagnosticDataFromServer

Command Category: Diagnostics Commands Use with WLST: Online

3.6.2.1 Description

Executes a query on the server side and retrieves the exported WebLogic Diagnostic Framework WLDF data. The results are saved to an XML file. Argument Definition options Optional. Comma-separated list of export diagnostic options, specified as name-value pairs. Valid options include: ■ beginTimestamp —Timestamp inclusive of the earliest record to be added to the result set. This option defaults to 0. ■ endTimestamp —Timestamp exclusive of the latest record to be added to the result set. This option defaults to Long.MAX_VALUE. ■ exportFileName —Name of the file to which the data is exported. This option defaults to export.xml. ■ logicalName —Logical name of the log file being read. Valid values include: HarvestedDataArchive, EventsDataArchive, ServerLog, DomainLog, HTTPAccessLog, WebAppLog, ConnectorLog, and JMSMessageLog. This option defaults to ServerLog. ■ logName —Base log filename containing the log data to be exported. This option defaults to myserver.log. ■ logRotationDir —Directory containing the rotated log files. This option defaults to . the same directory in which the log file is stored. ■ query —Expression specifying the filter condition for the data records to be included in the result set. This option defaults to empty string, which returns all data. For more information, see WLDF Query Language in Configuring and Using the Diagnostics Framework for Oracle WebLogic Server. ■ storeDir —Location of the diagnostic store for the server. This option defaults to ..datastorediagnostics. WLST Command and Variable Reference 3-33 For more information about the WebLogic Server Diagnostic Service, see Configuring and Using the Diagnostics Framework for Oracle WebLogic Server. In the event of an error, the command returns a WLSTException.

3.6.2.2 Syntax

exportDiagnosticDataFromServer[options]

3.6.2.3 Example

The following example executes a query against the HTTPAccessLog and stores the results in the file named myExport.xml. wls:mydomainserverRuntime exportDiagnosticDataFromServerlogicalName=HTTPAccessLog, exportFileName=myExport.xml

3.6.3 getAvailableCapturedImages