Create new Timelion sheet with CURL

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!

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

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
}'

Hi,

It works, thank you very much!

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