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
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
Solved! Go to Solution.
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.
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.