Hi community,
Does anyone have a script to create event and stream quicker ?
Yes, I have.
But itβs uniq every time, so I think the fastest way if you understand it, and write your own.
Use api browser to check the API calls.
Here is part of my script to create a stream
curl -XPOST -u $USER -H "Content-Type: application/json" "http://$HOST/api/streams?pretty" -d '{"title":"'"$SN"'","description":"'"$DESC"'","matching_type" : "OR", "index_set_id":"'$IS'"}'
But the streams use rules, so you have to create one rule, and after that start the stream.
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.