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

How to get the logs in a file format?

Highlighted

How to get the logs in a file format?

How to get the all my custom log details  in a file format?

Tags (1)
4 REPLIES 4

Re: How to get the logs in a file format?

Could you please clarify what you mean by "custom log details"?

You may find your application logs in ThingworxStorage/logs directory.

Re: How to get the logs in a file format?

Hi Bavithraa Marimuthu​,

I hope that by custom logs you are referring to the Script logs which are generated when any service runs in ThingWorx composer.

They are available at <Root>/ThingworxStorage/logs/ScriptLog.log

I hope it helps.

Re: How to get the logs in a file format?

In <Root>/ThingworxStorage/logs/ScriptLog.log, it has the info of all logs. But I want only my defined (custom) logs to be captured that too in a file format Eg: xxxx.log

How can I do this ?

Re: How to get the logs in a file format?

One option could be to create a custom service and use GetLogEntries Service of ScriptLog entity and then filter based on the requirement.

Then we can use Data Exporter widget to export the log data to a file in a ThingWorx repository.

I hope it helps.