Skip to main content
19-Tanzanite
July 10, 2018
Solved

How to get Application log in Eclipse Extension

  • July 10, 2018
  • 4 replies
  • 1933 views

Hello all,

 

How to get application log in eclipse extension ?

 

Regards,

Velkumar R

Best answer by supandey

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

5-Regular Member
July 10, 2018

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?

Velkumar19-TanzaniteAuthor
19-Tanzanite
July 15, 2018

Hello @supandey,

 

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

 

Regards,

Velkumar R

supandey5-Regular MemberAnswer
5-Regular Member
July 16, 2018

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