Hello Folks, I'm encountering an issue with Splunk Cloud where it indicates that the winrm module is not found. I'm attempting to install and run a custom alert action packaged Python application that uses winrm to establish a remote connection to a target server for cleanup processes. However, after installation and testing, I discovered that winrm is not installed in the Splunk Cloud environment used by our organization. Is there any workaround to achieve this and proceed further? Issue: ModuleNotFoundError:No module named 'winrm Script block that uses winrm: import winrm import sys import argparse import os def clean_old_files(TargetServer, FolderPath, FileThresholdInMinutes, UserName, Password): # Initialize return values deleted_files = [] deleted_count = 0 #print(f"Connecting to server: {TargetServer}...") #remove above print statement in next deployment. try: # Establish a WinRM session session = winrm.Session(TargetServer, auth=(UserName, Password), transport='ntlm') #splunkcloud Splunk ITSI Module for Application Performance Monitoring
... View more