How to export `alerts` as backup?

Hi thanks for the lib! I am trying to monitor my server by using monitoring and alerting. When, for example, CPU is too high or memory is almost full, I want to send an email to myself. Thus I use Kibana Alerting (is it correct to use this?).

The problem is, how can I backup those alerts I created? I have tried to backup those "saved objects" but there seems no alerts.


1 Like

Hi @fzyzcjy,

that functionality is still being worked on (see It's non-trivial because of the security implications of exporting the captured credentials.

1 Like

Hmm thanks all the same!

Hi, how can I backup/restore those alerts currently? Thanks

Hi @fzyzcjy, I'm trying to find out if there is an option aside from backup up the .kibana system index directly.

1 Like

Hi is there any updates? We know backup is very important, so I cannot let the elastic stack run without any backups!

Hi @fzyzcjy just to be clear

With respect to Alerts

  1. The Alerts are backed up as part of the normal snapshot and restore mechanism.

  2. As @weltenwort said Import / Export of Alerts Saved Object is underway (working through security mechanism) . We do not have an ETA for that yet but it is a highly requested feature.

  3. Also and API for directly Creating, Update, Deleting Retrieving alerts is also underway (nearly complete in Docs Stage). I do not have an exact ETA but that should be coming soon as well.

1 Like

Sounds wonderful! However, I do not see the backuped alerts:

(the policy:)

Am I missing something? Do I need to tune some configuration to backup? Or is it actually backuped (and just not shown?)


It appears that your current snapshot policies is only backing up 4 specific indices. Your snapshot policy is backing up a very limited set of indices and it does not appear it is backing up any of the system indices which may or may not be risky depending on your overall strategy. You will need to create a policy that backs up the kibana system indices at the very least, perhaps you should consider snapshot policy that covers all the system indices ... in general they tend to be small in comparison to data indices.

My snapshot policy is backing up everything :slight_smile:

Including the .kibana system indicies

Thanks very much! In my case, I should backup system index (though not done yet), and I want to backup those 4 indices shown above (post/user_metadata/...), but I do not want to backup filebeat & metricbeat as they are too large. (By the way, is it a good or bad idea to backup filebeat/metricbeat data?)

Thus, should I select each and every one of those system indices one by one in this panel? Or is there any automatic way (like specifying an index pattern - which index pattern should I write down, maybe .* or something else?)


See Here... so you should be able to use the .* syntax but I would run and test... :slight_smile:

(Optional, string) A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported.

1 Like

Thanks very much!

Hmm wait a bit... Some indices are quite huge!

Firstly, .* causes the following to be backup:


Secondly, some indices are huge:

So I use this one instead:


Thanks for the help!

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