Multi destination

Group existing destinations into a failover destination that sends every message to the first available destination of the group.

Multi destination: Groups existing destinations into an ordered list and sends events to the first available one.

A multi destination groups existing destinations into a failover setup. You can use a multi destination in a flow like any other destination, but the data goes to only one of its destinations: the first destination of the list that’s available. That way you can configure, for example, a backup SIEM instance or a local store that receives the data while the primary destination is unavailable.

How failover works

AxoRouter tries the destinations of the multi destination in the order of the list, separately for every message:

  • The message goes to the first destination that accepts it. The other destinations don’t receive the message.
  • If a destination is unavailable, AxoRouter tries the next destination of the list.
  • When an earlier destination of the list becomes available again, the messages go to that destination again.
  • If every destination is unavailable, the messages are queued for the last destination of the list (in its disk buffer, if it’s enabled), and the last destination receives them when it becomes available. When the queue is full, AxoRouter stops reading new messages from the sources of the flow, like it does for any unavailable destination.

Restrictions

  • A multi destination must contain at least two destinations, and a destination can appear in it only once.
  • Every destination of a multi destination must be of the same type, for example, every destination is a Splunk destination. Store destinations are an exception: you can add a store (AxoStore or Store) to a multi destination of any type, for example, as the last destination of the list.
  • A multi destination can’t contain another multi destination.
  • You can’t delete a destination while a multi destination contains it. Remove the destination from the multi destination first.
  • When a flow sends data to a multi destination, AxoConsole checks the flow against every destination of the multi destination.

Prerequisites

The destinations that you want to add to the multi destination. Create them first. For details, see Destinations.

Steps

  1. Create a new destination.

    1. Open the AxoConsole.
    2. Select Pipeline > Destinations > Add Destination > Destination.
  2. Configure the destination.

    1. Select Multi destination.

    2. Enter a name for the destination.

    3. Select the Strategy of the multi destination. Currently, only the Failover strategy is available: it sends the data to the first available destination of the list.

    4. Add the destinations to the list. Select a destination in the Add destination field to add it to the end of the list. The field lists only the destinations that you can add to the list: after you add a destination, it lists only the destinations of the same type, and the stores.

      The order of the list is the order of priority: the first destination is the primary destination. To change the order, drag a destination by its handle. To remove a destination from the list, select delete .

      A failover multi destination with a store as the second destination

    5. (Optional): Add custom labels to the destination.

    6. Select Add.

  3. Create a flow to connect the new destination to an AxoRouter instance.
    1. Select Pipeline > Routers > Flows.

    2. Select Add Flow > Flow.

      To create a fallback flow , select Add Flow > Fallback flow.

      Add flow

    3. Enter a name for the flow, for example, my-test-flow.

      Create a flow

    4. In the Router Selector field, enter an expression that matches the routers you want to apply the flow to. To select a specific router, use a name selector, for example, name = my-axorouter-hostname.

      You can use any labels and metadata of the AxoRouter hosts in the Router selectors, for example, the hostname of the AxoRouter, or any custom labels .

      • If you leave the router selector empty, it matches every AxoRouter instance.
      • To select only a specific AxoRouter instance, set the name field to the name of the instance as selector. For example, name = my-axorouter.
      • If you set multiple fields in the selector, the selector will match only AxoRouter instances that match all elements of the selector. (There in an AND relationship between the fields.)
    5. Select the Destination where you want to send your data. If you don’t have any destination configured, you can select Add Destination in the destination section to create a new destination now. For details on the different destinations, see Destinations.

      • If you don’t have any destination configured, see Destinations.
      • If you’ve already created a store , it’s automatically available as a destination. Note that the Router Selector of the flow must match only AxoRouters that have the selected store available, otherwise you’ll get an error message.
      • If you want to send data to another AxoRouter, enable the Show all destinations option, and select the connector of the AxoRouter where you want to send the data.

      The destination list with the AxoRouter connectors shown

    6. (Optional) To process the data transferred in the flow, select Add New Processing Step. For details, see Processing steps. For example:

      1. Add a Classify, a Parse, and a Reduce step, in that order, to automatically remove redundant and empty fields from your data.
      2. To select which messages are processed by the flow, add a Select Messages step, and enter a filter into the AQL Expression field. For example, to select only the messages received from Fortinet FortiGate firewalls, use the meta.vendor = fortinet AND meta.product = fortigate query.

      Example processing steps

    7. Select Add, then confirm with Add. To save the flow without provisioning it to the routers yet, select Add as draft instead.

    8. The new flow appears in the Flows list.

      The new flow