cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

DatabaseLog

KN_9954684
12-Amethyst

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

 

 

ACCEPTED SOLUTION

Accepted Solutions

@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

View solution in original post

3 REPLIES 3

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?

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

@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

Announcements


Top Tags