Skip to main content
Sep 21, 2021 6:10 AM UTC
Solved

DatabaseLog

Cannot find DatabaseLog in Thingworx 9.1.0 Monitoring logs but able to see the same in thingworx 9.0.0

 

Could you please help me If I have to make any changes

 

 

Sep 22, 2021 8:53 AM UTC

@KN_9954684 

 

GetLogEntries will only work for below logs. 

SachinSharma_0-1632300162025.png

 

One of the possible solutions to load the Database log in a mashup is via a custom extension. You can refer this article, it explains how to get contents of a file on a drive from ThingWorx service.

 

Regards,

Sachin Sharma

3 replies

Sep 21, 2021 7:03 AM UTC

var logTable = Logs["DatabaseLog"].GetLogEntries({
oldestFirst: true /* BOOLEAN */,
maxItems: 67 /* NUMBER */
});

result = logTable;

 

The above code works only for the logs displayed in Monitoring logs where as it doesnt work for DatabaseLog

 

Any workaround for this?

Sep 22, 2021 7:22 AM UTC

I did not get any update on the above query.Can you respond on it

Sep 22, 2021 8:53 AM UTC

@KN_9954684 

 

GetLogEntries will only work for below logs. 

SachinSharma_0-1632300162025.png

 

One of the possible solutions to load the Database log in a mashup is via a custom extension. You can refer this article, it explains how to get contents of a file on a drive from ThingWorx service.

 

Regards,

Sachin Sharma