Splunk Dev

Plus sign in create dashboard REST api

hershs
New Member

I trying to create dashboard via REST api.

The query string of the panel contains '+' character, like this

 

<dashboard>
    <row>
        <panel>
            <title>Alert Rate (percent of transactions)</title>
            <viz type="Splunk_ML_Toolkit.OutliersViz">
                <search>
                    <query>index=my_index ..... | eval upperBound=(avg + stdev*exact(1.5))</query>
...

 

Creating  the dashboard by calling

 

curl -k -u https://splunk_domain/servicesNS/admin/search/data/ui/views --data @./test.xml

 

After calling the dashboard created with expression 

 

index=my_index ..... | eval upperBound=(avg  stdev*exact(1.5))

 

The '+' disappeared

Please help!

Labels (1)
0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...