Hello
I'm trying to set up logpush integration with CF. I have set up elastic agent per documentation
and I'm trying to enable logpush on CF by API
but I'm getting
{"errors":[{"code":1002,"message":"error validating destination: error writing object: error uploading to https: 415 {\"message\":\"wrong Content-Type header, expecting application/json\"}"}],"messages":[],"result":null,"success":false}
I'm seeing part of this error mentioned here
with explanation
The ownership_challenge parameter is not required to create a Logpush job to an HTTP endpoint. You need to make sure that the file upload to validate the destination accepts a gzipped test.txt.gz with content as {“content”:“tests”} compressed, otherwise it will return an error, like error validating destination: error writing object: error uploading.
But don't know how to make elastic agent to accept test.txt.gz or if this is indeed cause of error I get.