Splunk Dev

What could be the reason custom app alert is not working?

Path Finder

I have created a custom app and I get this error in Splunk 


 Error in 'sendalert' command: Alert action script for action "list_ip" not found.



I am using list_ip in both alert_actions.conf and commands.conf. The Python file is in /bin. What could be the reason for this error?


Here are the file contents




filename = list.py
command.arg.1 = $results.file$





label = List IP
description = This action will send IP addresses to a custom webhook
icon_path = icon.png
is_custom = 1
payload_format = json





#!/usr/bin/env python3

import csv
import json
import requests
import sys

def send_webhook(ip_list):
    url = ""
    headers = {
        "Content-Type": "application/json; charset=utf-8"
    data = {
        "ips": ip_list
    response = requests.post(url, data=json.dumps(data), headers=headers)

def main():
    if len(sys.argv) > 1:
        results_file = sys.argv[1]  # retrieve the results file passed as argument
        ip_list = []

        with open(results_file, 'r') as file:
            reader = csv.DictReader(file)
            for row in reader:

        print("No arguments provided.")

if __name__ == "__main__":



0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk Cloud Platform 9.1.2308?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2308! Analysts can ...

Index This | Why do they call it hyper text?

November 2023 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

State of Splunk Careers 2023: Career Resilience and the Continued Value of Splunk

For the past three years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...