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!

Troubleshooting the OpenTelemetry Collector

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

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...