Skip to main content
14-Alexandrite
September 21, 2021
Solved

DatabaseLog

  • September 21, 2021
  • 1 reply
  • 1335 views

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

 

 

Best answer by SachinSharma

@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

1 reply

14-Alexandrite
September 21, 2021

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?

14-Alexandrite
September 22, 2021

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

16-Pearl
September 22, 2021

@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