Hi,
I would first like to explain my requirement: Ultimately, I want to generate a alert (email) based on two conditions:
I understand that Splunk can do the 1st part (generating alert based on syslog message) very well, but it can't do the 2nd part (logging into a device and executing some commands and take action based on output).
Thats why, I would like to run a Python script that does the 2nd part.
To summarize, I just want to know if I can do the following:
I hope I have made it clear,
Thanks,
Your could make a search that alerts every time it is run and run that from the Python script. Of course that wouldn't be able to receive input based on the commands run by the script.
If you're just looking for an e-mail alert, it might be easier to just e-mail directly from the Python script.