Splunk AppDynamics

Use API to create Health Rules and Policy

CommunityUser
Splunk Employee
Splunk Employee

HI Team,

I have succesfull exported an health rule using the rest api. When i am try to impor the health rule i am getting the below error 

Header

  1. Status Code: 200 OK
  2. Server: AppDynamics
  3. Date: Tue, 29 May 2018 16:09:19 GMT
  4. X-Varnish: 1737302797
  5. Age: 0
  6. Via: 1.1 varnish
  7. Connection: keep-alive
  8. Transfer-Encoding: chunked
  9. X-Iinfo: 14-6700949-6700951 NNNN CT(21 46 0) RT(1527610158501 20) q(0 0 0 -1) r(1 1) U6
  10. X-CDN: Incapsula

Response

is below

the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is text/plain;charset=UTF-8 

Can some one please help out on this

Labels (1)
0 Karma

Pratik_Maskey
Communicator

Hi, 

Are you following the following document correctly?

https://docs.appdynamics.com/display/PRO44/Configuration+Import+and+Export+API#ConfigurationImportan...

Format -

curl -X POST --user user1@customer1:secret http://demo.appdynamics.com/controller/healthrules/38 -F file=@uploadhealthrule.xml

 pass "overwrite=true" if the health rule already.

If the issue exists, let us know the command/ client you are using.

-Thanks

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...