Export all stream and dashboards unsing curl with POST


(Mf Bmihaescu) #1

I try to automate the process of exporting a Content Pack and I’m not able to select all of them .
The script that I’m using is something like this:

#!/bin/sh

GRAYLOG_URL="http://user:pass@server-name:12900"
GRAYLOG_CONTENT='{
  "name": "staging",
  "description": "descir",
  "category": "test",
  "inputs":   [],
  "streams": [],
  "outputs": [],
  "dashboards": [],
  "grok_patterns": []
}'

curl -XPOST -H "Content-Type: application/json" ${GRAYLOG_URL}/system/bundles/export -d "${GRAYLOG_CONTENT}" > content.json 

What should I do to export all stream and dashboards using something like this ?

Anyone can help ?

Thanks


(system) #2

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