Setting up Apache NiFi for Fortinet SD-WAN Technology Pack

Set up and start Apache NiFi to convert the data files that are collected from Fortinet SD-WAN servers to Avro format records and write them to Kafka. These records are then picked up by File Collector for processing the metrics and device inventory data.

Before you begin

NiFi setup tasks

Following are the configuration tasks that are needed to set up Apache NiFi to start collecting metrics and inventory metadata from Fortinet SD-WAN control pane:
  • Access the NiFi UI on Red Hat OpenShift Container Platform.
  • Access the NiFi UI on your cloud platform.
  • Enable the controller services.
  • Configure the variables.

Access the NiFi UI on OpenShift Container Platform


Follow these steps to access the NiFi web interface on OpenShift® Container Platform:
  1. Log in to your cloud platform web console of your cluster.
  2. Make sure you are in tncp project or namespace.
  3. Navigate to Networking > Routes.
  4. Click the NiFi route link.

    You can see the UI that has a canvas to orchestrate a data flow for the installed File-based Technology Packs:

Access the NiFi UI on Kubernetes

  1. Open a web browser and type the following URL on Kubernetes cloud platform:

    http://<node_hostname>:30026/nifi

    Where, <node_hostname> is the hostname of any node in your cluster.

    30026 is the port number of the NiFi Service on the node where it is installed.

    You can see the UI that has a canvas to orchestrate a data flow for the installed File-based Technology Packs:

NiFi flow

NiFi flow in the Fortinet SD-WAN Technology Pack project is divided into the following sections:
  • Get session value for FortiManager authentication
  • Get token value for FortiGate authentication
  • Generate flow data
  • Device and Interface flow
  • Generate Tunnel Data
  • Generate Application Data
  • Generate AVRO Record

Enable the controller services

  1. Right-click the Fortinet SD-WAN processor group and select Configure > CONTROLLER SERVICES.

    The following Controller Services are available: Fortinet SD-WAN pack controller services

  2. Click the Enable icon ( Enable icon) and enable all the controller services.
  3. Close the window.
  4. Click the processor group and select Start to start the data collection.

Configure the variables

  • Right-click the project canvas with nothing selected and select Variables from the menu.
  • In the Variables window, provide values for the following variables:

    Fortinet SD-WAN pack variables

    Variable Value
    interval The default value is 10 minutes, which is expressed as 600 seconds. You can increase or decrease this value to delay or fasten the AVRO record generation by the NiFi Collector Service that can be picked up by the File Collector Service. You must update the Flow File Processors to schedule to run according to this value as well.
    vmanage IP address of the FortiManager Dashboard.
    Note: Rest of the variable values are auto-populated for you.
  • After a variable value is changed, click OK and Apply.
  • Start all the processors in the flow.