Reindex a subset of data to a different index

Hello all, we're using Elasticsearch to index Windows event logs and keeping them for 6 months; what I would like to do is reindex a subset of data such as:

  • user creation/deletion events
  • group creation/deletion events
  • interactive user logon events

...to another index that will be kept for longer. I'd like to do this at the same time as events are going into the main Windows event log index but as far as I can tell you can't write the same data to different indexes simultaneously.

Can anyone tell me what my options are?

Thanks.

You can have multiple Elasticsearch outputs in a single pipeline, so you can write data to different indexes simultaneously. The outputs can be surrounded with conditionals so that only a subset of data is written to one of the indexes.

Thankyou Badger I wasn't aware you could have conditionals in the output, will look into it.

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