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

Get monitoring and log data via rest API

SOLVED
Highlighted
Participant

Get monitoring and log data via rest API

Hi,
Is there any REST API or java sdk provided by ThingWorx  to get monitoring and logging data ? 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Get monitoring and log data via rest API

Hopefully this helps

https://www.ptc.com/en/support/article/CS329281?&language=en&posno=2&q=thingworx%20rest%20api%20post...

The ServiceDefinitions should show you the parameters available, those you would construct and submit as a JSON in the body.

View solution in original post

10 REPLIES 10
Highlighted

Re: Get monitoring and log data via rest API

You can just call the available services associated with the logs.

Highlighted

Re: Get monitoring and log data via rest API

ok let me try and get back to you.  Thanks!

Highlighted

Re: Get monitoring and log data via rest API

Hey @PaiChung   Can you tell me which api to call since there is no GET api to get the service details

Re: Get monitoring and log data via rest API

All of these will be POST types

See for example: <server>/Thingworx/Logs/ApplicationLog/Services/QueryLogEntries

Highlighted

Re: Get monitoring and log data via rest API

Can you give a link to the documentation for this API?

Highlighted

Re: Get monitoring and log data via rest API

Basically works like any other Thingworx service.

You can also use this to see the parameters

<Server>/Thingworx/Logs/ApplicationLog/ServiceDefinitions/QueryLogEntries

or start from here and drill in <server>/Thingworx/Logs/ (this is a regular GET)

Highlighted

Re: Get monitoring and log data via rest API

what should be the request body for <Server>/Thingworx/Logs/ApplicationLog/ServiceDefinitions/QueryLogEntries since it is a POST api

Highlighted

Re: Get monitoring and log data via rest API

Hopefully this helps

https://www.ptc.com/en/support/article/CS329281?&language=en&posno=2&q=thingworx%20rest%20api%20post...

The ServiceDefinitions should show you the parameters available, those you would construct and submit as a JSON in the body.

View solution in original post

Highlighted

Re: Get monitoring and log data via rest API

Thanks!!
Will try and get back to you

Highlighted

Re: Get monitoring and log data via rest API

Thanks @PaiChung !! It works!! marking your answer as a solution

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!