GetLogData
The GetLogData service retrieves the log entries from the 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 — The maximum 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 an EMS:

http://localhost:8000/Thingworx/Things/LocalEms/Services/GetLogData
{
"startDate": 1572566400,
"endDate":1572652800,
"maxItems":50
}
Was this helpful?