Skip to main content
Jul 10, 2018 7:44 AM UTC
Solved

How to get Application log in Eclipse Extension

Hello all,

 

How to get application log in eclipse extension ?

 

Regards,

Velkumar R

supandeyAnswer
Jul 16, 2018 2:36 PM UTC

You can query the Logs entity, <ThingWorxServerName:portNumber>/Thingworx/Logs, e.g. there is default function like :

 

http://localhost:8080/Thingworx/Logs/ApplicationLog/ServiceDefinitions/GetLogEntries

 

or

 

http://localhost:8080/Thingworx/Logs/ApplicationLog/ServiceDefinitions/QueryLogEntries

 

16-07-2018 16-33-51.jpg

4 replies

Jul 10, 2018 2:22 PM UTC

Hi @Velkumar as far as I see we don't have something like Logs["ApplicationLog"].GetLogEntries(params) in the Extension SDK

 

Could you comment a bit what exactly is your use case?

VelkumarAuthor
Jul 15, 2018 7:59 AM UTC

Hello @supandey,

 

We want to read Thingworx Application log and convert into infotable using extension.

 

Regards,

Velkumar R

supandeyAnswer
Jul 16, 2018 2:36 PM UTC

You can query the Logs entity, <ThingWorxServerName:portNumber>/Thingworx/Logs, e.g. there is default function like :

 

http://localhost:8080/Thingworx/Logs/ApplicationLog/ServiceDefinitions/GetLogEntries

 

or

 

http://localhost:8080/Thingworx/Logs/ApplicationLog/ServiceDefinitions/QueryLogEntries

 

16-07-2018 16-33-51.jpg