# Create new Timelion sheet with CURL

**URL:** <https://discuss.elastic.co/t/create-new-timelion-sheet-with-curl/78371>\
**Category:** Kibana\
**Tags:** timelion\
**Created:** [March 13, 2017, 3:22pm UTC](https://discuss.elastic.co/t/create-new-timelion-sheet-with-curl/78371 "2017-03-13T15:22:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inouk](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@inouk](https://discuss.elastic.co/u/inouk)\
**Post date:** [March 13, 2017, 3:22pm UTC](https://discuss.elastic.co/t/create-new-timelion-sheet-with-curl/78371/1 "2017-03-13T15:22:57Z")

</div>

Hi,

Is there a way to create a new timelion sheet with Curl/JSON ?

I have some charts that are repetitives, I mean, it's the same rule but server names are different.

So, I would like to create, let's say, 10 charts, one each server with curl/json, is that possible?

It's pretty time consuming doing it in a browser because I had to go up and down on the same page, create a new chart, going down, click on it, then going up, click on a already created chart, copy the requests, going down, click on a empty chart, going up, paste a .es() request, change the server name, then click on 'play'.

Instead of that, I could copy a .es() request, copy that 10 times, change server name on each request, then do a CURL request.

Thank you!

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [March 13, 2017, 10:44pm UTC](https://discuss.elastic.co/t/create-new-timelion-sheet-with-curl/78371/2 "2017-03-13T22:44:59Z")

</div>

May require some tweaks but posting directly to elaticsearch with the correct format should work:

```auto
curl -XPOST "http://localhost:9200/.kibana/timelion-sheet" -H 'Content-Type: application/json' -d'
{
  "title": "Hello2",
  "hits": 0,
  "description": "",
  "timelion_sheet": [
    ".es(*)",
    ".es(*)"
  ],
  "timelion_interval": "auto",
  "timelion_chart_height": 275,
  "timelion_columns": 2,
  "timelion_rows": 2,
  "version": 1
}'

```

---

<div class="post-metadata">

**Author:** ![inouk](https://avatars.discourse-cdn.com/v4/letter/i/87869e/32.png) [@inouk](https://discuss.elastic.co/u/inouk)\
**Post date:** [March 15, 2017, 7:49pm UTC](https://discuss.elastic.co/t/create-new-timelion-sheet-with-curl/78371/3 "2017-03-15T19:49:03Z")

</div>

Hi,

It works, thank you very much!

---

<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:** [April 12, 2017, 7:49pm UTC](https://discuss.elastic.co/t/create-new-timelion-sheet-with-curl/78371/4 "2017-04-12T19:49:25Z")

</div>

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