# Configuring Traffic Monitoring

## Contents
Overview Configuration

## Overview
The options on the Traffic Monitor Settings dialog enable you to configure the web-based Traffic Monitor tool and its message traffic log. For example, you can configure where the data is stored and what message transaction details are recorded in the log. To access the Traffic Monitor Settings dialog, right-click the Enterprise Gateway process on the Services tab, and select Monitoring -> Traffic. You can access the Traffic Monitor tool on the Enterprise Gateway Welcome Page, available from `http://localhost:8090/index.html`. For details on how to use the Traffic Monitor tool, see the topic on Monitoring Traffic.
## Configuration
You can configure the following settings: Enable Traffic Monitor: Select whether to enable the web-based Traffic Monitor tool. This is enabled by default. Data Directory: Enter the directory that stores the traffic monitoring data files and database (`data.sdb`). Enter the location relative to the directory in which the Enterprise Gateway is installed. Defaults to `conf/opsdb.d`. If this directory and/or the database do not exist when the Enterprise Gateway starts up, they are recreated automatically. Data Persistence Settings: You can configure the following data persistence settings:
Record inbound transactions | Select whether to record inbound message transactions received by the Enterprise Gateway. This is enabled by default.
Record outbound transactions | Select whether to record outbound message transactions sent from the Enterprise Gateway to remote hosts. This is enabled by default.
Record circuit path | Select whether to record the circuit path for the message transaction, which shows the filters that the message passes through. This is enabled by default.
Record trace | Select whether to record the trace output for the message transaction. This is enabled by default.
Note: These settings are global for all traffic passing through the Enterprise Gateway. You can override these persistence settings at the port level when configuring an HTTP or HTTPS interface. For more details, see Configuring HTTP Services. Data Expiry Settings: You can configure the following data expiry settings:
Max. database entries | Enter the maximum number of rows stored in the traffic monitoring database. Defaults to `1000000` rows.
Max. database size | Enter the maximum size of the traffic monitoring database file, and select the database size units from the list. Defaults to 1 GB.
Purge data older than | Enter the period of time to store data, and select the time units from the list. Data older than the specified time is purged from the database. Defaults to 1 day.