Good afternoon! I am working on the backup and recovery of all Ospgenie alerts. How can I import all alerts from a csv?
Hi @Gaston Odasso ,
John from Opsgenie support here, happy to assist.
We have an import tool but it only imports configurations, not alerts. You would need to write a script to import all alerts from a CSV.
Here is the backup tool:
https://github.com/opsgenie/opsgenie-configuration-backup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaston Odasso, are you able to use the Export CSV option available on the Alerts page as shown in the following screenshot:
Or, instead are you trying to import a CSV list of alerts into Opsgenie?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Skyler!
Thanks for your answer..
I need to do 2 things, export all the alerts to a cvs automatically (to make a backup) and on the other hand, I have to try importing these alerts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaston Odasso happy to help! Apart from the Export CSV option shared above, another option here would be to use Alert API to list all alerts. The JSON returned from the API call could then be converted to a CSV. Here is a link to our Alert API documentation: https://docs.opsgenie.com/docs/alert-api#list-alerts
As far as importing alerts, the only option here would be the import tool that my colleague John linked above, which would require a custom script to import all alerts from a CSV. Our configuration backup tool documentation does not contain an example script for this specific use case, as its primary function is for exporting/importing configurations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.