Hi all,
I wrote a small python script to run "a script alert action", I access arguments by this follow guide,
http://docs.splunk.com/Documentation/Splunk/6.2.2/Alert/Configuringscriptedalerts#Access_arguments_to_scripts_that_are_run_as_an_alert_action
My python script is:
#!/usr/bin/python
#
import sys
import serial
import time
tn = sys.argv[4]
print tn
The script is running.
The arguments to scripts have SPLUNK_ARG_0 -> SPLUNK_ARG_8, but I want access other information,
for example: I want to tranfer arguments which is the same tokens $result.fieldname$ in email notifications.
Please help me,
Thank you!
... View more