Fortinet black logo

Handbook

Creating automation stitches

6.0.0
Copy Link
Copy Doc ID 4afb0436-a998-11e9-81a4-00505692583a:126663
Download PDF

Creating automation stitches

To create an automation, you can set up a trigger event and response actions that cause the FortiOS to respond in a predetermined way. From the root FortiGate, you can set up triggers for event types, such as compromised host, high CPU, and configuration changes. The automation launches actions in response, such as email alerts, FortiExplorer notifications, and webhooks. The Compromised Host trigger has additional actions, such as access layer quarantine and quarantine FortiClient via EMS.

To create and test an automation:
  1. Log in to the root FortiGate, and go to Security Fabric > Automation. Select Create New.
  2. Customize the stitch by selecting a Trigger event type and the corresponding Action that you would like to automate. You can configure multiple actions for the same event trigger.

    Enter the following information:

    Name

    Enter a name for the new automation.

    Status

    Select Enabled to enable this automation.

    FortiGate

    From the drop-down menu, select the FortiGate device to apply this automation to or select All FortiGates (default) to apply to all.

    Trigger

    Select a trigger. For more information, see Triggers.

    Action

    Select an action. For more information, see Actions .

    Minimum interval (seconds)

    Enter a minimum time interval, in seconds, during which you won't receive repeated notifications for the same trigger occurrence. When the minimum time interval expires, you'll receive an alert with a compilation report of any events that occurred during the alloted interval period.

  3. Select OK.
  4. To test the new automation, right-click it and select Test Automation Stitch.

When an automation stitch is triggered, the FortiGate creates an event log, which you can view by going to Log & Report > System Events.

To create and test an automation - CLI:

config system automation-stitch

edit <automation-stitch-name>

set status {enable | disable}

set trigger <trigger-name>

set action <action-name>

set destination <serial-number>

next

end

diagnose automation test <automation-stitch-name> <log>

note icon

You can configure an automation using the config system automation-stitch command shown above. For more information about configuring the Trigger<trigger-name> and Action<action-name> components, see the FortiOS CLI Reference.

Related Videos

sidebar video

Fortinet Security Fabric 6.0.0 Series - Part 3: Compromised Hosts Management

  • 883 views
  • 5 years ago
sidebar video

Fortinet Security Fabric 6.0.0 Series - Part 6: Automation

  • 1,385 views
  • 5 years ago
sidebar video

Fortinet Security Fabric 6.0.0 Series - Part 7: Automation: AWS Lambda and Gener

  • 867 views
  • 5 years ago

Creating automation stitches

To create an automation, you can set up a trigger event and response actions that cause the FortiOS to respond in a predetermined way. From the root FortiGate, you can set up triggers for event types, such as compromised host, high CPU, and configuration changes. The automation launches actions in response, such as email alerts, FortiExplorer notifications, and webhooks. The Compromised Host trigger has additional actions, such as access layer quarantine and quarantine FortiClient via EMS.

To create and test an automation:
  1. Log in to the root FortiGate, and go to Security Fabric > Automation. Select Create New.
  2. Customize the stitch by selecting a Trigger event type and the corresponding Action that you would like to automate. You can configure multiple actions for the same event trigger.

    Enter the following information:

    Name

    Enter a name for the new automation.

    Status

    Select Enabled to enable this automation.

    FortiGate

    From the drop-down menu, select the FortiGate device to apply this automation to or select All FortiGates (default) to apply to all.

    Trigger

    Select a trigger. For more information, see Triggers.

    Action

    Select an action. For more information, see Actions .

    Minimum interval (seconds)

    Enter a minimum time interval, in seconds, during which you won't receive repeated notifications for the same trigger occurrence. When the minimum time interval expires, you'll receive an alert with a compilation report of any events that occurred during the alloted interval period.

  3. Select OK.
  4. To test the new automation, right-click it and select Test Automation Stitch.

When an automation stitch is triggered, the FortiGate creates an event log, which you can view by going to Log & Report > System Events.

To create and test an automation - CLI:

config system automation-stitch

edit <automation-stitch-name>

set status {enable | disable}

set trigger <trigger-name>

set action <action-name>

set destination <serial-number>

next

end

diagnose automation test <automation-stitch-name> <log>

note icon

You can configure an automation using the config system automation-stitch command shown above. For more information about configuring the Trigger<trigger-name> and Action<action-name> components, see the FortiOS CLI Reference.