---
title: Getting Started with Datadog
description: Gather your logs from your Stunnel proxy and send them to Datadog.
breadcrumbs: Docs > Integrations > Stunnel
---

# Stunnel

## Overview{% #overview %}

Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code.

Use the Datadog - Stunnel proxy integration to monitor potential network issues or DDoS attacks.

## Setup{% #setup %}

### Installation{% #installation %}

You must [install the Datadog Agent](https://app.datadoghq.com/account/settings/agent/latest) on the server running Stunnel.

### Configuration{% #configuration %}

Create a `stunnel.d/conf.yaml` file in the `conf.d/` folder at the root of your [Agent's configuration directory](https://docs.datadoghq.com/agent/guide/agent-configuration-files/#agent-configuration-directory) to start collecting your Stunnel Proxy logs.

#### Log collection{% #log-collection %}

*Available for Agent versions >v6.0*

1. Collecting logs is disabled by default in the Datadog Agent. You must enable it in the `datadog.yaml` file:

   ```yaml
   logs_enabled: true
   ```

1. Add this configuration block to your `stunnel.d/conf.yaml` file to start collecting Stunnel Logs:

   ```yaml
   logs:
       - type: file
         path: /var/log/stunnel.log
         source: stunnel
         service: '<MY_SERVICE>'
         sourcecategory: proxy
   ```

Change the `path` and `service` parameter values and configure them for your environment.

1. [Restart the Agent](https://docs.datadoghq.com/agent/guide/agent-commands/#start-stop-restart-the-agent)

### Validation{% #validation %}

[Run the Agent's `status` subcommand](https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information) and look for `stunnel` under the Checks section.
