Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. 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.