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