# Error with curl when trying out \_rollover api

**URL:** <https://discuss.elastic.co/t/error-with-curl-when-trying-out-rollover-api/204655>\
**Category:** Elasticsearch\
**Created:** [October 22, 2019, 1:49pm UTC](https://discuss.elastic.co/t/error-with-curl-when-trying-out-rollover-api/204655 "2019-10-22T13:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor.nilsson](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@victor.nilsson](https://discuss.elastic.co/u/victor.nilsson)\
**Post date:** [October 22, 2019, 1:49pm UTC](https://discuss.elastic.co/t/error-with-curl-when-trying-out-rollover-api/204655/1 "2019-10-22T13:49:43Z")

</div>

Hi,

I'm trying to call the following with CURL in a container:

`"curl -g -u admin:password "https://10.233.24.239:9200/logs_write/_rollover" -H 'Content-Type: application/json' -d '{"conditions": {"max_size": "5gb"}}'"`

However i get the following error message:

```
curl: (3) nested brace in URL position 133:
curl -u admin:password "https://10.233.24.239:9200/logs_write/_rollover" -H 'Content-Type: application/json' -d '{"conditions": {"max_size": "5gb"}}'
                                                                                                                                ^

```

I've tried to alter this in many different way without success. What seems to be the issue here?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 19, 2019, 1:49pm UTC](https://discuss.elastic.co/t/error-with-curl-when-trying-out-rollover-api/204655/2 "2019-11-19T13:49:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
