How to export content pack with REST call

Hi All,

I am trying to export content pack with REST API, followed REST API browser, after making the call from browser its not returning JSON or not downloading json ,

From graylog UI there is an option to download content pack json, what i am missing here

https://xxx.xxx.206.165:9000/api/api-browser/#!/System/Bundles/exportBundle_post_2

What did you do exactly? Which HTTP requests did you execute in order to create a content pack?

From REST API browser trying this

https://198.159.206.165:9000/api/system/bundles/export

{
  "name": "rayees",
  "description": "descir",
  "category": "velcat",
  "inputs": [
    "beats-1"
  ],
  "streams": [
    "Pal_ETL_failure"
  ],
  "outputs": [
  ],
  "dashboards": [
  ],
  "grok_patterns": [
  ]
}

All entities (such as inputs or streams) have to be referenced by their ID, not by their display name.

1 Like