Bulk group creation via API/DB query/something else?
Hi,
I need to bulk create a large number of sensor groups. I would really rather not do that by hand in the GUI. Any automatable method would be fine - API/script/DB query/something else. I had a quick look around but couldn't find anything in the documentation - I would appreciate a quick nudge in the right direction.
Thanks,
Chris
Hi Chris,
Creating associations via API would probably involve you generating the JSON ruleset yourself, but beyond this I might be able to add an endpoint to the API for this easilyish, depending how well structured the existing stuff is.
You can see the format in the database for an existing group.
Alternatively, you could just insert the rows directly into the database, probably slightly easier than the API for one offs.
Adam.
Sent from BlueMail
On 25 Apr 2019, 09:16, at 09:16, Brandwatch NOC via observium observium@observium.org wrote:
Hi,
I need to bulk create a large number of sensor groups. I would really rather not do that by hand in the GUI. Any automatable method would be fine
- API/script/DB query/something else. I had a quick look around but
couldn't find anything in the documentation - I would appreciate a quick nudge in the right direction.
Thanks,
Chris
--
Chris Tomkins | Senior Network Engineer (Linux/Network)
christ@brandwatch.com
Office: +44 (0)1273 448 949
NEW YORK | BOSTON | BRIGHTON | LONDON | BERLIN | STUTTGART | SINGAPORE | SYDNEY | PARIS
https://www.brandwatch.com/blog/brandwatch-and-crimson-hexagon/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
That's great, thanks Adam. We will do it via DB for now, and fall back to manual if we get stuck.
Chris
On Thu, 25 Apr 2019 at 16:13, Adam Armstrong adama@memetic.org wrote:
Hi Chris,
Creating associations via API would probably involve you generating the JSON ruleset yourself, but beyond this I might be able to add an endpoint to the API for this easilyish, depending how well structured the existing stuff is.
You can see the format in the database for an existing group.
Alternatively, you could just insert the rows directly into the database, probably slightly easier than the API for one offs.
Adam.
Sent from BlueMail http://www.bluemail.me/r?b=14726 On 25 Apr 2019, at 09:16, Brandwatch NOC via observium < observium@observium.org> wrote:
Hi,
I need to bulk create a large number of sensor groups. I would really rather not do that by hand in the GUI. Any automatable method would be fine
- API/script/DB query/something else. I had a quick look around but
couldn't find anything in the documentation - I would appreciate a quick nudge in the right direction.
Thanks,
Chris
--
Chris Tomkins | Senior Network Engineer (Linux/Network)
christ@brandwatch.com
Office: +44 (0)1273 448 949
NEW YORK | BOSTON | BRIGHTON | LONDON | BERLIN | STUTTGART | SINGAPORE | SYDNEY | PARIS
https://www.brandwatch.com/blog/brandwatch-and-crimson-hexagon/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Brandwatch NOC