ServerLogs_docker
Uses the ssh integration to grab the host server logs. This script is supported only on Cortex XSOAR on-prem (version 6.X).
python · Common Scripts
Details
| ID | ServerLogs_docker |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | widget |
README
Uses the ssh integration to grab the host server logs
This script is supported only on Cortex XSOAR on-prem (version 6.X).
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | widget |
| Cortex XSOAR Version | 6.0.0 |
Inputs
There are no inputs for this script.
Outputs
There are no outputs for this script.
import demistomock as demisto from CommonServerPython import * def main(): res = demisto.executeCommand("ssh", {"cmd": "cat /var/log/demisto/docker.log", "using": "localhost"}) output = "File: /var/log/demisto/docker.log\n" output += res[0].get("Contents").get("output") return_results(output) if __name__ in ("__builtin__", "builtins", "__main__"): main()