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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

URL download Thingworx Scriptlog.log file from respository

SKannapiran
12-Amethyst

URL download Thingworx Scriptlog.log file from respository

To download Thingworx Scriptlog.log file and DatabaseLog.log from repository, kindly share me the URL.

 

The below attempts failed to download the ThingWorx repository files

http://localhost/Thingworx/FileScriptLogs/logs/ScriptLog.log

http://localhost/Thingworx/logs/ScriptLog.log

SKannapiran_0-1699528559872.png

 

 

ACCEPTED SOLUTION

Accepted Solutions

Hi! There is (unfortunately) no download URL.

 

I fetch the logs via REST API by executing the service which the Composer uses to show logs 

POST request

https://<hostname>/Thingworx/Logs/ScriptLog/Services/QueryLogEntries

with body e.g.:

 

{
  "startDate": "2023-11-02T17:07:35.349601500Z",
  "endDate": "2023-11-09T17:07:35.349601500Z",
  "maxItems": 1000000,
  "fromLogLevel": "WARN",
  "instance": "",
  "origin": "",
  "searchExpression": ".*.*",
  "thread": "",
  "toLogLevel": "ERROR",
  "user": "",
  "isRegex": true,
  "oldestFirst": false
}

 

 

See network traffic of Composer for more insights.

 

You could also call the same service via a normal TWX service on demand, which dumps it into a file in a FileRepository, which you could then create a download url from.

 

View solution in original post

1 REPLY 1

Hi! There is (unfortunately) no download URL.

 

I fetch the logs via REST API by executing the service which the Composer uses to show logs 

POST request

https://<hostname>/Thingworx/Logs/ScriptLog/Services/QueryLogEntries

with body e.g.:

 

{
  "startDate": "2023-11-02T17:07:35.349601500Z",
  "endDate": "2023-11-09T17:07:35.349601500Z",
  "maxItems": 1000000,
  "fromLogLevel": "WARN",
  "instance": "",
  "origin": "",
  "searchExpression": ".*.*",
  "thread": "",
  "toLogLevel": "ERROR",
  "user": "",
  "isRegex": true,
  "oldestFirst": false
}

 

 

See network traffic of Composer for more insights.

 

You could also call the same service via a normal TWX service on demand, which dumps it into a file in a FileRepository, which you could then create a download url from.

 

Announcements


Top Tags