> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Syslog

> Configures Syslog connections. You can send syslog messages to syslog servers and perform secure log transmission to central log servers via TCP/UDP protocols according to RFC standards

## Overview

<AccordionGroup>
  <Accordion title="What is its Purpose?">
    <CardGroup cols={2}>
      <Card title="Centralized Log Transfer" icon="file-lines">
        Transfers Apinizer logs to a central syslog collector with low latency via Connection.
      </Card>

      <Card title="Flexible Log Transport" icon="arrows-rotate">
        Provides flexible log transport compatible with different organization standards through TCP/UDP, TLS, and message format options.
      </Card>

      <Card title="Environment-Based Configuration" icon="code-branch">
        Provides common naming and versioning while maintaining Development/Test/Production separation through environment-based configuration.
      </Card>

      <Card title="Security Warning" icon="shield">
        Logs transmitted in UDP mode have no delivery guarantee; prefer TCP + SSL/TLS for critical flows.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Working Principle">
    <CardGroup cols={2}>
      <Card title="Connection Initiation" icon="play">
        When a Syslog connection is requested from within an Integration Flow or Connector, the system reads the configured connection parameters.
      </Card>

      <Card title="Connection Pool Management" icon="layer-group">
        In TCP mode, a persistent socket is opened for each environment; log messages are queued asynchronously and sent in order. When the queue is full, new messages are routed to the failover connector. Automatic reconnection is applied when the active connection closes or a write timeout occurs; stateless sending is performed in UDP mode.
      </Card>

      <Card title="Authentication" icon="key">
        If TLS is used, certificate-based Authentication is applied; otherwise, syslog server's IP-based security policies come into play.
      </Card>

      <Card title="Data Communication" icon="arrows-rotate">
        Log messages in RFC 3164/5424/5425 format, hostname, and facility/severity fields are transmitted over selected protocol.
      </Card>

      <Card title="Connection Management" icon="gear">
        After operation completes, TCP connection returns to pool; UDP packets require no additional management as they are stateless.
      </Card>

      <Card title="Error Management" icon="circle-exclamation">
        In case of connection error, timeout, or authentication error, details are shown in deployment-result dialog; error metrics are propagated via Apinizer Event Manager.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Use Cases">
    <CardGroup cols={2}>
      <Card title="SIEM/SOC Integration" icon="shield">
        Real-time transfer of API Gateway logs to SIEM or SOC platforms
      </Card>

      <Card title="Security Events" icon="exclamation-triangle">
        Notification of security events (e.g., WS-Security, Authentication errors) to central alarm system
      </Card>

      <Card title="Log Correlation" icon="puzzle-piece">
        Providing single log flow for log correlation between operating systems, firewall, and Apinizer services
      </Card>

      <Card title="Test and Validation" icon="flask">
        Validating new rule/transformation developments in test environment without affecting syslog infrastructure in prod environment
      </Card>
    </CardGroup>
  </Accordion>
</AccordionGroup>

## Technical Features and Capabilities

<AccordionGroup>
  <Accordion title="Basic Features">
    <CardGroup cols={2}>
      <Card title="Dual Protocol Support" icon="network-wired">
        **TCP/UDP:** Selection can be made between low-latency UDP or reliable TCP modes via EnumSyslogProtocolType.
      </Card>

      <Card title="Format and Metadata Flexibility" icon="file-code">
        RFC 3164, RFC 5424, or RFC 5425 formats; compatible log template is created with hostname, facility, and severity fields.
      </Card>

      <Card title="Environment ID-Based Routing" icon="route">
        Routing to different syslog endpoints is performed by selecting target Environment for each Connection via environmentId list.
      </Card>

      <Card title="Environment-Based Configuration" icon="code-branch">
        Ability to define separate connection parameters for each environment (Development, Test, Production).
      </Card>

      <Card title="Enable/Disable Control" icon="toggle-on">
        Activating or deactivating the Connection (enable/disable toggle). In passive state, connection cannot be used but its configuration is preserved.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Advanced Features">
    <CardGroup cols={2}>
      <Card title="Dynamic Deployment Results" icon="rocket">
        IDeploymentResult outputs are shown to user after save and test, real status of log flow is monitored instantly.
      </Card>

      <Card title="Move to Global" icon="globe">
        Admin users can move connection from project context to global area, thus facilitating reuse.
      </Card>

      <Card title="Bulk Import/Export" icon="file-zipper">
        Can be transferred to other environments by packaging JSON + metadata with ExportFile structure.
      </Card>

      <Card title="Connection Test Feature" icon="flask">
        Ability to validate connection parameters before saving with "Test Connection" button.
      </Card>

      <Card title="Export/Import Feature" icon="arrows-rotate">
        Export connection configuration as ZIP file. Import to different environments (Development, Test, Production). Version control and backup capability.
      </Card>

      <Card title="Connection Monitoring" icon="chart-line">
        Monitoring connection health, pool status, and performance metrics.
      </Card>
    </CardGroup>
  </Accordion>
</AccordionGroup>

## Connection Parameters

<AccordionGroup>
  <Accordion title="Required Parameters">
    <CardGroup cols={2}>
      <Card title="Name" icon="tag">
        **Parameter:** Name

        **Example Value:** Production\_Syslog

        Connection name (must be unique). Cannot start with space, special characters should not be used.
      </Card>

      <Card title="Environment" icon="server">
        **Parameter:** Environment

        **Example Value:** prod-env-id

        Identity of published environment where logs will be targeted. Environment list comes via Environment Service, cannot be tested if selection is not made.
      </Card>

      <Card title="Syslog Protocol Type" icon="network-wired">
        **Parameter:** Syslog Protocol Type

        **Example Value:** TCP

        TCP or UDP selection via EnumSyslogProtocolType. When TCP is selected, timeout and SSL settings become mandatory.
      </Card>

      <Card title="Syslog Server Hostname" icon="server">
        **Parameter:** Syslog Server Hostname

        **Example Value:** syslog.corp.local

        Syslog server name or IP where logs will be sent. FQDN recommended, DNS resolution is performed by gateway.
      </Card>

      <Card title="Syslog Port" icon="plug">
        **Parameter:** Syslog Port

        **Example Value:** 514

        Syslog listening port. 514 for UDP, 6514 for TLS can be commonly used.
      </Card>

      <Card title="Syslog Message Format" icon="file-code">
        **Parameter:** Syslog Message Format

        **Example Value:** RFC\_3164

        Message body template (RFC 3164/5424/5425). Should be selected according to SIEM expectations.
      </Card>

      <Card title="Syslog App Name" icon="tag">
        **Parameter:** Syslog App Name

        **Example Value:** ApinizerGateway

        Application name that will appear in messages. Recommended not to exceed 48 characters.
      </Card>

      <Card title="Syslog Facility" icon="folder">
        **Parameter:** Syslog Facility

        **Example Value:** AUDIT

        Log classification value. Limited to EnumSyslogFacility values.
      </Card>

      <Card title="Syslog Severity" icon="exclamation-triangle">
        **Parameter:** Syslog Severity

        **Example Value:** INFORMATIONAL

        Log importance level. Selected from EnumSyslogSeverity list.
      </Card>

      <Card title="Syslog Timeout (TCP)" icon="clock">
        **Parameter:** Syslog Timeout (TCP)

        **Example Value:** 5000

        Wait time in milliseconds for TCP handshake + ACK. Not shown in UDP mode, mandatory in TCP mode.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Optional Parameters">
    <CardGroup cols={2}>
      <Card title="Description" icon="file-lines">
        **Parameter:** Description

        **Default Value:** -

        **Recommended Value:** Specify usage purpose and target syslog cluster

        Description about the connection
      </Card>

      <Card title="Syslog Message Hostname" icon="server">
        **Parameter:** Syslog Message Hostname

        **Default Value:** gateway01

        **Recommended Value:** Use different hostname for each environment to facilitate correlation

        Overrides HOSTNAME field in log.
      </Card>

      <Card title="Syslog SSL Enabled" icon="lock">
        **Parameter:** Syslog SSL Enabled

        **Default Value:** false

        **Recommended Value:** true in Production, self-signed if needed in Test/Dev

        Provides TLS encapsulation over TCP.
      </Card>

      <Card title="Deploy To Worker" icon="rocket">
        **Parameter:** Deploy To Worker

        **Default Value:** true

        **Recommended Value:** Leave true if network isolation exists

        Whether connection will be deployed to worker nodes.
      </Card>
    </CardGroup>
  </Accordion>
</AccordionGroup>

### Timeout and Connection Pool Parameters

<CardGroup cols={2}>
  <Card title="Connection Timeout" icon="clock">
    **Description:** syslogTimeout value in TCP mode\
    **Default:** 5000\
    **Min:** 1000 | **Max:** 60000\
    **Unit:** milliseconds
  </Card>

  <Card title="Request Timeout" icon="hourglass">
    **Description:** General request wait time for Integration step (gateway setting)\
    **Default:** 15000\
    **Min:** 5000 | **Max:** 60000\
    **Unit:** milliseconds
  </Card>

  <Card title="Pool Size" icon="layer-group">
    **Description:** Maximum TCP sockets in Syslog connection pool\
    **Default:** 1\
    **Min:** 1 | **Max:** 5\
    **Unit:** count
  </Card>

  <Card title="UDP Burst Interval" icon="repeat">
    **Description:** Delay recommendation between consecutive packets in UDP mode\
    **Default:** 0\
    **Min:** 0 | **Max:** 100\
    **Unit:** milliseconds
  </Card>

  <Card title="Queue Capacity" icon="list-ol">
    **Description:** Maximum number of log messages in the TCP async send queue. When the queue is full, new messages are routed to the failover connector.\
    **Default:** 10000\
    **Min:** 100 | **Max:** 1000000\
    **Unit:** messages
  </Card>

  <Card title="Write Timeout" icon="stopwatch">
    **Description:** If writing a message to the syslog server takes longer than this duration, the connection is forcibly closed and re-established.\
    **Default:** 5\
    **Min:** 1 | **Max:** 60\
    **Unit:** seconds
  </Card>
</CardGroup>

## Use Cases

<CardGroup cols={2}>
  <Card title="SOC Integration" icon="shield">
    **Situation:** SOC platform accepts logs with TCP + TLS\
    **Solution:** Protocol: TCP, SSL Enabled: true, Port: 6514\
    **Expected Behavior:** Logs transmitted securely over TLS, facility/severity fields fall to SIEM rules
  </Card>

  <Card title="Network Monitoring" icon="network-wired">
    **Situation:** Fast UDP required for correlation with firewall logs\
    **Solution:** Protocol: UDP, Port: 514, Message Format: RFC\_3164\
    **Expected Behavior:** Log flow performed with low latency, packet loss is tolerant
  </Card>

  <Card title="Application Debug" icon="flask">
    **Situation:** Detailed debug log requested in test environment\
    **Solution:** Severity: DEBUG, Facility: LOCAL0, Message Hostname: test-gw\
    **Expected Behavior:** Test syslog server receives detailed debug events
  </Card>

  <Card title="Compliance Audit" icon="shield-check">
    **Situation:** Audit teams request audit trail\
    **Solution:** Facility: AUDIT, Severity: NOTICE, App Name: ComplianceGW\
    **Expected Behavior:** Separated log flow provided for audit reports
  </Card>

  <Card title="Multi-Project Sharing" icon="share">
    **Situation:** Multiple projects will use same global syslog\
    **Solution:** Move to Global, Environment ID: admin project, Name prefix: Global\_\
    **Expected Behavior:** Single connection shared across all projects, changes managed centrally
  </Card>

  <Card title="DR Scenario" icon="rotate">
    **Situation:** Production logs will be copied to secondary data center (optional)\
    **Solution:** Export ZIP, Import to different environment, Port/Hostname updated to DR address\
    **Expected Behavior:** DR syslog server starts receiving logs in same format
  </Card>
</CardGroup>

## Connection Configuration

<Info>
  In this step, you can create a new connection or configure existing connection parameters to set connection rules. Defined parameters directly affect how the connection works and become available for use in Integration Flow or Connector steps.
</Info>

### Creating New Syslog Connection

<img src="https://mintcdn.com/apinizer/YX1NcEKlSBeHefxE/images/yonetici/baglantilar/syslog-variable-new.png?fit=max&auto=format&n=YX1NcEKlSBeHefxE&q=85&s=563661bb993b0d3ace0073bb4194fa3c" alt="Image 2024 9 9 15 35 35 Pn" width="1000" className="mr-auto" data-path="images/yonetici/baglantilar/syslog-variable-new.png" />

<Steps>
  <Step title="Navigate to Creation Page">
    * Go to **Connection → Syslog Connection** section from left menu.
    * Click **\[+ Create]** button at top right.
  </Step>

  <Step title="Enter Basic Information">
    **Enable Status (Active Status):** Set active/passive status with toggle. New connections are active by default.

    **Name Required:**

    * Example: `Production_Syslog`
    * Enter unique name, cannot start with space.
    * System automatically checks. Green checkmark: available. Red X: existing name.

    **Description:**

    * Example: "Gateway prod log flow"
    * Max. 1000 characters.
    * Describe the purpose of the Connection.

    <Info>
      In the action button area at the top of the page, you can use the **\[\<> Variable]** button to select dynamic values, and with global variables, you can manage connection parameters with variable-based values instead of fixed values. For detailed information, review the [Dynamic Variables](/en/concepts/core-concepts/dynamic-variables) page.
    </Info>
  </Step>

  <Step title="Environment Selection">
    * Select environment from dropdown menu: **Development**, **Test**, or **Production**.
    * Different connection parameters can be defined for each environment.
  </Step>

  <Step title="Syslog Network Parameters">
    * Select TCP or UDP from **Syslog Protocol Type** field.
    * Enter **Syslog Server Hostname** and **Syslog Port** values.
    * Incorrect port leads to log loss; verify network firewall openings.
  </Step>

  <Step title="Message Format and Metadata">
    * Select **Syslog Message Format** (RFC 3164/5424/5425).
    * Fill **Syslog Message Hostname**, **Syslog App Name**, **Facility**, and **Severity** fields according to your log policy.
  </Step>

  <Step title="Timeout and Connection Pool Settings">
    * When TCP is selected, **Syslog Timeout** value is entered in milliseconds (default 5000).
    * Timeout field is hidden in UDP mode; consider UDP Burst Interval recommendations for high traffic.
  </Step>

  <Step title="Security and Authentication Settings">
    * Enable TLS tunneling by setting **Syslog SSL Enabled** option to true in TCP mode.
    * Match certificate chain with syslog server; assign from certificate store if mutual TLS is required.
  </Step>

  <Step title="Test Connection">
    * Click **\[Test Connection]** button.
    * Test whether connection parameters are correct.
    * Success: Green confirmation message, Failed: Error details shown.
  </Step>

  <Step title="Save">
    * Click **\[Save and Deploy]** button at top right.

    **Checklist:** Unique name. Required fields filled. Test connection successful (recommended)

    **Result:**

    * Connection is added to list.
    * Becomes available in Integration Flow and Connector steps.
    * Becomes active according to environment.

    <Check>
      Connection created successfully! You can now use it in Integration Flow and Connector steps.
    </Check>
  </Step>
</Steps>

### Deleting Connection

<CardGroup cols={2}>
  <Card title="Delete Operation" icon="trash">
    Select **Delete** from **⋮** menu at end of row or click **\[Delete]** button on connection detail page
  </Card>

  <Card title="Delete Tips" icon="info-circle">
    **Check Before Deleting:** May be used in Integration Flow or Connector steps. If necessary, assign an alternative connection. Back up with **Export** before deleting
  </Card>

  <Card title="Alternative: Deactivate" icon="toggle-off">
    Use **Disable** option instead of deleting. Connection becomes passive but is not deleted. Can be reactivated when needed
  </Card>
</CardGroup>

### Exporting/Importing Connection

<Info>
  In this step, you can export existing connections for backup, moving to different environments, or sharing purposes, or import a previously exported connection again. This operation is used to maintain data integrity in version control, transitions between test and production environments, or inter-team sharing processes.
</Info>

<AccordionGroup>
  <Accordion title="Export">
    <CardGroup cols={2}>
      <Card title="Method 1" icon="download">
        Select **⋮ → Export** from action menu. ZIP file is automatically downloaded.
      </Card>

      <Card title="Method 2" icon="file-export">
        Click **\[Export]** button on connection detail page. ZIP file is downloaded.
      </Card>

      <Card title="File Format" icon="file-zipper">
        Format: `Date-connection-ConnectionName-export.zip`\
        Example: `13 Nov 2025-connection-Production_Syslog-export.zip`
      </Card>

      <Card title="ZIP Contents" icon="folder-open">
        * Connection JSON file
        * Metadata information
        * Dependency information (e.g., certificates, key store)
      </Card>

      <Card title="Use Cases" icon="list-check">
        * Backup
        * Moving between environments (Test → Prod)
        * Versioning
        * Team or project-based sharing
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Import">
    <CardGroup cols={2}>
      <Card title="Import Steps" icon="upload">
        * Click **\[Import Syslog Connection]** button on main list.
        * Select downloaded ZIP file.
        * System checks: Is format valid? Is there name conflict? Are dependencies present?
        * Then click **\[Import]** button.
      </Card>

      <Card title="Import Scenarios" icon="info-circle">
        **Scenario 1: Name Conflict** → Overwrite old connection or create with new name.

        **Scenario 2: Missing Dependencies** → Create missing certificates or key stores first or exclude during import.
      </Card>
    </CardGroup>
  </Accordion>
</AccordionGroup>

## Connection Usage Areas

<Info>
  In this step, you can use the **Syslog Connection** connection you created in different components of the system. Connections are used by being selected in Integration Flow, Connector steps, or Scheduled Jobs.
</Info>

<CardGroup cols={2}>
  <Card title="Creating and Activating Connection" icon="play">
    **Steps:**

    1. Create the connection.
    2. Validate connection with **Test Connection**.
    3. Save and activate with **Save and Deploy**.
    4. Ensure connection is in **Enabled** state.
  </Card>

  <Card title="Usage in Integration / Connector Steps" icon="plug">
    * Connection is selected in steps with syslog output such as "Send Message", "Notify".
    * Can also be used for custom log sending in API Gateway policies.
    * Connection selection is made from **Connection** field in configuration screen.
  </Card>

  <Card title="Scheduled Job Usage" icon="clock">
    * Jobs that collect logs at certain intervals or perform health checks send notifications via syslog connection.
    * If environment is changed in job update, connection is automatically adjusted.
  </Card>

  <Card title="Test Usage" icon="flask">
    * Connection correctness can be checked independently from Integration Flow with Connection Test feature.
    * This test is critical in debugging process.
  </Card>
</CardGroup>

## Best Practices

<AccordionGroup>
  <Accordion title="Do's and Best Practices">
    <CardGroup cols={2}>
      <Card title="Log Format Management" icon="file-code">
        **Bad:** Using default RFC 3164 in all environments.

        **Good:** Selecting format according to SIEM requirements.

        **Best:** Versioning and documenting environment-based different formats with Export/Import.
      </Card>

      <Card title="Facility/Severity Planning" icon="slider">
        **Bad:** Sending all logs with same severity.

        **Good:** Separating warning and error logs into different severities.

        **Best:** Documenting facility/severity matrix according to incident classification.
      </Card>

      <Card title="Hostname Management" icon="server">
        **Bad:** Leaving default hostname value.

        **Good:** Using environment-based hostname.

        **Best:** Naming in EnvironmentCode-gatewayId format and mapping with CMDB.
      </Card>

      <Card title="Naming Standard" icon="tag">
        **Bad:** Space-containing and ambiguous expressions in Name field.

        **Good:** Using environment prefix (`Test_Syslog`).

        **Best:** Making `{Environment}_{Purpose}_{Region}` template mandatory.
      </Card>

      <Card title="Environment Management" icon="code-branch">
        **Bad:** Using same connection parameters in all environments.

        **Good:** Creating separate connection for each environment.

        **Best:** Managing all environments in single connection using Environment option, only changing environment during transitions between environments.
      </Card>

      <Card title="Connection Test" icon="flask">
        **Bad:** Saving and deploying connection without testing.

        **Good:** Validating with Test Connection before saving.

        **Best:** Testing after every parameter change, performing full integration test in test environment before going to production.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Security Best Practices">
    <CardGroup cols={2}>
      <Card title="Network Segmentation" icon="shield">
        Make syslog server accessible only from relevant gateway subnets. Restrict UDP/TCP 514/6514 ports in firewall.
      </Card>

      <Card title="TLS Certificate Management" icon="certificate">
        If using TLS, renew certificate chain regularly; use self-signed certificates only in Development environment.
      </Card>

      <Card title="Signing Access Logs" icon="lock">
        Protect integrity by using TLS + message signature mechanism in RFC 5425 format for critical logs.
      </Card>

      <Card title="Credential Management" icon="key">
        Store sensitive information such as username and password using environment variable or secret manager. Do not hardcode credentials in code or configuration files. Update passwords periodically
      </Card>

      <Card title="SSL/TLS Usage" icon="lock">
        Always enable SSL/TLS in production environment. Use self-signed certificates only in development environment. Track certificate expiration dates and renew on time
      </Card>

      <Card title="Access Control" icon="user-shield">
        Allow only authorized users to change connection configuration. Store connection change logs. Apply change approval process for critical connections
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Don'ts">
    <CardGroup cols={2}>
      <Card title="Sending Critical Logs with UDP" icon="exclamation-triangle">
        **Why avoid:** UDP does not provide delivery guarantee, packet loss cannot be controlled.

        **Alternative:** Use TCP + SSL/TLS mode.
      </Card>

      <Card title="Incorrect Facility Usage" icon="exclamation-triangle">
        **Why avoid:** SIEM rules are not triggered, alerts are missed.

        **Alternative:** Validate facility/severity map with operations team.
      </Card>

      <Card title="Leaving Hostname Field Empty" icon="exclamation-triangle">
        **Why avoid:** Source cannot be distinguished on SIEM side.

        **Alternative:** Use hostname containing environment + region + node identity.
      </Card>

      <Card title="Using Production Connection in Test Environment" icon="exclamation-triangle">
        **Why avoid:** Test data may be written to production system, real users may be affected, security risk occurs.

        **Alternative:** Create separate connection for each environment, use environment parameter, separate connection names by adding prefix according to environment (`Test_`, `Prod_`).
      </Card>

      <Card title="Very Low Timeout Values" icon="exclamation-triangle">
        **Why avoid:** Connection constantly times out in network delays, Integration steps fail.

        **Alternative:** Adjust timeout values according to real usage scenarios, measure network latency and set timeouts accordingly.
      </Card>

      <Card title="Not Using Connection Pool" icon="exclamation-triangle">
        **Why avoid:** New connection opens on every request, performance decreases, resource consumption increases, target system load increases.

        **Alternative:** Enable connection pool, adjust pool size according to traffic volume, set up pool monitoring.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Performance Tips">
    <CardGroup cols={2}>
      <Card title="UDP Traffic Balancing" icon="gauge">
        **Recommendation:** Apply rate limiting on gateway side in UDP mode, add Burst Interval if needed.

        **Impact:** Target syslog server buffer overflow is prevented.
      </Card>

      <Card title="TCP Reconnection" icon="arrows-rotate">
        **Recommendation:** Keep timeout values in 5-10 sec range, verify automatic reconnect behavior during network interruptions.

        **Impact:** Log delivery continuity is maintained.
      </Card>

      <Card title="Format Optimization" icon="file-code">
        **Recommendation:** Use RFC 5424 only if mandatory, otherwise reduce message size with RFC 3164.

        **Impact:** Bandwidth and storage costs decrease.
      </Card>

      <Card title="Connection Pool Optimization" icon="layer-group">
        **Recommendation:** Set pool size according to peak traffic (recommended: concurrent request count × 1.5), set idle connection timeouts, perform pool health check.

        **Impact:** Connection opening cost decreases by 80%, response times decrease, resource usage is optimized.
      </Card>

      <Card title="Timeout Values Optimization" icon="clock">
        **Recommendation:** Measure real network latency, adjust timeout values accordingly, avoid very low or very high timeouts.

        **Impact:** Unnecessary waits are prevented, fast fail-over is provided, user experience improves.
      </Card>

      <Card title="Connection Monitoring" icon="chart-line">
        **Recommendation:** Monitor connection pool usage, track timeout rates, perform connection health check, set up alerting.

        **Impact:** Problems are proactively detected, performance bottlenecks are identified early, downtime decreases.
      </Card>
    </CardGroup>
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="TLS Handshake Failed">
    <Warning>
      Wrong port (514 instead of 6514), certificate chain missing, or syslog server may not be expecting TLS.
    </Warning>

    <Steps>
      <Step title="Port and Protocol Validation">
        Validate port and protocol match.
      </Step>

      <Step title="Certificate Update">
        Update certificate stores.
      </Step>

      <Step title="TLS Listener">
        Open TLS listener on syslog side.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="UDP Logs Missing">
    <Warning>
      Network packet loss, firewall throttling, or excessive burst rate may exist.
    </Warning>

    <Steps>
      <Step title="Packet Loss Measurement">
        Measure loss by performing packet capture.
      </Step>

      <Step title="Burst Interval">
        Add burst interval.
      </Step>

      <Step title="Switch to TCP Mode">
        Switch to TCP mode if needed.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Connection Timeout">
    <Warning>
      Network delay, target system responding slowly, or timeout value may be too low.
    </Warning>

    <Steps>
      <Step title="Network Check">
        Check network connectivity.
      </Step>

      <Step title="System Health">
        Check target system health.
      </Step>

      <Step title="Timeout Settings">
        Increase timeout values.
      </Step>

      <Step title="Log Review">
        Review connection logs.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Authentication Failed">
    <Warning>
      Wrong username/password, expired credentials, or permission problem may exist.
    </Warning>

    <Steps>
      <Step title="Credentials">
        Verify credentials.
      </Step>

      <Step title="User Status">
        Check that user is active on target system.
      </Step>

      <Step title="Permission Check">
        Check that necessary permissions are granted.
      </Step>

      <Step title="Certificate Check">
        Check SSL/TLS certificates.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Pool Exhausted">
    <Warning>
      Pool size may be too low, connection leak may exist, or traffic may be too high.
    </Warning>

    <Steps>
      <Step title="Pool Size">
        Increase pool size.
      </Step>

      <Step title="Connection Check">
        Check that connections are properly closed.
      </Step>

      <Step title="Idle Timeout">
        Set idle connection timeouts.
      </Step>

      <Step title="Metric Monitoring">
        Monitor connection usage metrics.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Connection Test Successful But Integration Flow Errors">
    <Warning>
      Different connection may be selected in Integration/Connector step, step may be misconfigured, or Flow/Job may not be redeployed.
    </Warning>

    <Steps>
      <Step title="Enable Toggle">
        Check that connection's enable toggle is active.
      </Step>

      <Step title="Connection Selection">
        Verify that correct connection is selected in Integration Flow.
      </Step>

      <Step title="Connection Deploy">
        Redeploy connection.
      </Step>

      <Step title="Flow/Job Deploy">
        Redeploy Integration Flow or Job.
      </Step>

      <Step title="Log Check">
        Check Gateway logs.
      </Step>
    </Steps>
  </Accordion>
</AccordionGroup>

## Frequently Asked Questions (FAQ)

<AccordionGroup>
  <Accordion title="Can Syslog connection send to multiple syslog servers at once?">
    <Info>
      No, each connection targets a single destination; duplicate connection or use load balancer for multiple targets.
    </Info>
  </Accordion>

  <Accordion title="Do I need to create new connection when switching from UDP to TCP?">
    <Info>
      You can update protocol on same connection but it's recommended to back up with export before change.
    </Info>
  </Accordion>

  <Accordion title="Is additional configuration required to select RFC 5425?">
    <Info>
      Yes, a syslog server listening TLS and **Syslog SSL Enabled** value being true is required.
    </Info>
  </Accordion>

  <Accordion title="Which component does timeout value affect?">
    <Info>
      Only affects TCP handshake and ACK wait time; Integration request is additionally limited by Request Timeout.
    </Info>
  </Accordion>

  <Accordion title="Can I share connection in different projects?">
    <Info>
      Admin users can move connection to global area with **Move to Global** action; can be used in other projects.
    </Info>
  </Accordion>

  <Accordion title="Can I use the same connection in multiple Integration Flows?">
    <Check>
      Yes, the same connection can be used in multiple Integration Flow or Connector steps. This provides centralized management and guarantees configuration consistency. However, changes made to the connection will affect all usage locations, so care should be taken.
    </Check>
  </Accordion>

  <Accordion title="Is using connection pool mandatory?">
    <Info>
      Connection pool usage is not mandatory but strongly recommended in high-traffic systems. Reusing existing connections instead of opening new connection on every request significantly increases performance.
    </Info>
  </Accordion>

  <Accordion title="Should I create different connections for Test and Production?">
    <Check>
      Yes, it is recommended to create separate connection for each environment. Alternatively, you can manage all environments in a single connection using environment parameter. This approach provides easier management and less error risk.
    </Check>
  </Accordion>

  <Accordion title="Test Connection is successful but not working in Integration Flow, why?">
    <Warning>
      Several reasons may exist:
    </Warning>

    1. Connection enable toggle may be passive
    2. Different connection may be selected in Integration step
    3. Connection may not be deployed
    4. Integration Flow may not be redeployed yet
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Syslog Connector" icon="file-lines" href="/en/integrations/connectors/syslog-connector">
    Learn Syslog Connector usage
  </Card>

  <Card title="Connection Types Overview" icon="plug" href="/en/integrations/connection-management/overview">
    Connection types overview
  </Card>

  <Card title="Logback Connector" icon="file-lines" href="/en/integrations/connectors/logback-connector">
    Logback log records
  </Card>
</CardGroup>
