---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Configure a Netflow data import for testing

# Configure a Netflow data import for testing {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Configure and test Service Mapping discovery process based on data collected using the Netflow protocol.

## Before you begin

Learn about [Traffic-based discovery in Service Mapping](https://servicenow-prod.fluidtopics.net/N~7rM~61XplreSWjhnedAg "Service Mapping can discover and map configuration items (CIs) following their traffic-based connections. This method is referred to as traffic-based mapping and complements pattern-based mapping.").

Role required: admin or service_mapping_admin

## About this task

In base systems, which are the default or standard configurations, traffic-based discovery relies solely on TCP-related data collected using the netstat, ss, and lsof commands. Discovery based on Netflow and VPC logs requires additional configuration. You can
enrich your traffic-based discovery by configuring Service Mapping to use the
Netflow protocol. For more information about the way Service Mapping to collect
Netflow data, see [Data collection and discovery using Netflow](https://servicenow-prod.fluidtopics.net/YBbys5myQUEDZ6mfzThrYQ "Service Mapping can perform discovery based on data collected using the Netflow protocol. Netflow is a protocol that Service Mapping can use to collect data about CIs and their connections along with Netstat and lsof commands.").

For testing purposes, install the Netflow Collector (nfdump) on a Unix server inside
your organization. In this case, this Unix server should be different from the
server hosting the MID Server
server.

Configure the ServiceNow
connector to trigger MID Server
to collect the data from the flow log and processes it.

## Procedure

1. Download and install the Netflow collector (nfdump) on a Unix or Ubuntu server inside your organization.  
   * For a Linux server, download, compile, and install the nfdump package. You can download the nfdump package from <https://sourceforge.net/projects/nfdump/>.
   * For an Ubuntu server, install the nfdump package without predownloading or compiling it. Open the command-line window and run the following command:sudo apt-get install nfdump

   * For an Ubuntu server, if the apt-get command fails, predownload the nfdump package, save it locally and then install it. Open the command-line window and run the following commands:

     sudo dpkg -i nfdump_1.6.15-3_i386.deb -

     sudo apt-get -f install  
     Note:  
     The file name for the nfdump package has the following format: nfdump_\<version number\> .deb. In this example it is nfdump_1.6.15-3_i386.deb.
   {#test-netflow-service-mapping__ul_atx_2ll_zy}
2. Configure the Netflow collector to save data for one day.
   1. Open the command-line window on the server hosting the Netflow collector.
   2. Create a cron job.  
      <kbd class="ph userinput">crontab -e</kbd>
   3. Enter the following command using the correct paths.  
      <kbd class="ph userinput">*/10 * * * * /usr/local/bin/nfexpire -e /data/nfdump -t 1d</kbd>
   {#test-netflow-service-mapping__substeps_lrv_svk_xy}
3. Create a file with the nfdump data.  
   For example, use the following command:

   nfdump -q -m -R /data/nfdump/ -o extended -t 2016/07/06.07:00:00-2016/07/06.07:10:00 'inet and proto tcp' \>\> /tmp/my_file
4. If the file is very large, you can compress it using the gzip format by using the following command:  
   `gzip /tmp/my_file`
5. Copy the nfdump data file to the MID Server. {#test-netflow-service-mapping__CopyNfdumpFile}
{#test-netflow-service-mapping__CopyNfdumpFile}
6. Configure Service Mapping to receive data collected by the Netflow collector:
   1. Navigate to Service MappingAdministrationFlow Connectors.
   2. Click New.
   3. Click ndfdump file.
   4. On the dfdump file page, configure parameters as follows:  
      {#test-netflow-service-mapping__table_xtr_yyk_xy__entry__2}

      | Field | Description |
      |-|-|
      | Name | A descriptive name for the connector. |
      | nfdump data path | The path to a location on the MID Server to which you saved the nfdump data file in [5](https://servicenow-prod.fluidtopics.net/TqcP9HT2oTMvRq599PVLlQ#test-netflow-service-mapping__CopyNfdumpFile). |
      | MID Server | The MID Server, onto which you copied the nfdump file. |
      | Gzipped file | If you converted the nfdump file into the gzip format before saving it on the MID Server, set this parameter to true to unzip it. |
      [ ]

      {#test-netflow-service-mapping__table_xtr_yyk_xy}
   5. Click Submit.
   {#test-netflow-service-mapping__substeps_dxb_xxk_xy}
7. Verify that Service Mapping collects data using Netflow:
   1. On the nfdump file form, select the newly configured connector and click Run now to start the data collection flow and populate the Flow Connection \[sa_flow_connection\] table.
   2. Navigate to System DefinitionsTables.
   3. Click the Flow Connection \[sa_flow_connection\] table.
   4. Under Related Links, click Show List.
   5. Verify that the table contains data.
   {#test-netflow-service-mapping__substeps_pnp_4wg_1z}

## What to do next

If you are satisfied with the results of the test, configure Netflow-based data collection as described in [Configure data collection using Netflow](https://servicenow-prod.fluidtopics.net/qfw4CkMlpbIzRdoOv7RaJA "Enable Service Mapping to perform discovery based on data collected using the Netflow protocol. This setup results in fully automated data collection flow, where all involved components send, collect, and analyze data automatically.").

*[\>]: and then


