Splunk Search

allow-custom-value doesn't work in Splunk 7.2.3

asemle
Explorer

I've built a custom alert action with a UI. One of my inputs is dynamic, and populated from a splunk search. Here is the markup in custom alert HTML file.

I need the ability to enter a custom value as well, but allow-custom-value has no impact. According to this code sample it should work: https://docs.splunk.com/Documentation/Splunk/6.5.2/AdvancedDev/CustomAlertUI#Dynamic_input_controls

<splunk-control-group label="THINGID">
        <splunk-search-dropdown name="action.myapp.param.thingid"
            search="host=things| sort thingid | table thingid thingnum| dedup thingid"
            label-field="thingnum" value-field="thingid" 
            allow-custom-value/>
    </splunk-control-group>
Tags (1)

chrisyounger
SplunkTrust
SplunkTrust

Hi @asemle
This appears to be a bug and not working in version 7.2.1 and maybe other versions. What version are you running?

If you look at the bottom of this page: https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomAlertUI you can see others have reported it too. You should raise a support ticket to see if support can give you a workaround. I can't find any mention of this bug on the known issues page so it must be pretty new.

All the best.

0 Karma

asemle
Explorer

I tried but it looks like I don't have a support contract.

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...