ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > REST Web Services Supported by WS EMS > GetLogData
  
GetLogData
The GetLogData service retrieves the log entries from the WS EMS.
Inputs
Pass in a TW_INFOTABLE that contains one row and three columns. The row object must contain the following parameters;
startDate - The oldest log entry to retrieve (as a DATETIME).
endDate - The newest log entry to retrieve (as a DATETIME).
maxItems - Max number of entries to retrieve (as an INTEGER).
Outputs
This service returns a TW_INFOTABLE that contains the log entries. (The related data shape is logEntry.)
Here is an example of a REST call that retrieves log entries for a WS EMS:
http://localhost:8000/Thingworx/Things/LocalEms/Services/
GetLogData{"startDate":"080115", "endDate":"081515", "maxItems":50}