URL download Thingworx Scriptlog.log file from respository
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
- Labels:
-
Coding
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
