Documentation Center
AlienVault® USM Anywhere™

HAProxy

When you configure HAProxy integration to send log data to USM Anywhere, you can use the HAProxy plugin to translate the raw log data into normalized events for analysis.

Device Details
Device vendor HAProxy
Device type Proxy
Connection type syslog
Vendor link http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8

Integrating HAProxy

Before you configure the integration, you must have the IP Address of the USM AnywhereUSM Appliance Sensor.

The protocol for HAProxy is HTTP.

To enable this proxy protocol

  • Set option httplog on the frontend to enable this format.

To configure HAProxy to send log data over syslog to USM Anywhere

  1. Open the HAProxy server configuration file (/etc/haproxy/haproxy.cfg).
  2. Include the following lines:

    global

    log <IP_address_of_USMA_Sensor>:514 <facility>

    Where:

    facility must be any one of the standard syslog facilities:

    • kern

    • user

    • mail

    • daemon

    • auth

    • syslog

    • lpr

    • news

    • uucp

    • cron

    • auth2

    • ftp

    • nap

    • audit

    • alert

    • cron2

    • local0

    • local1

    • local2

    • local3

    • local4

    • local5

    • local6

    • local7

Plugin Enablement

The HAProxy plugin automatically processes all messages whose syslog tag matches the value "haproxy.”

Available Plugin Fields

The following plugin fields are important attributes extracted from the syslog message. USM Anywhere reports use these fields, and you can also reference them when creating custom reports. In addition to reporting, the USM Anywhere correlation rules make use of these fields.

  • application_protocol

  • bytes_out

  • event_description

  • event_name

  • log

  • plugin

  • request_method

  • request_url

  • response_code

  • source_address

  • tag

  • timestamp_occured

Troubleshooting

For troubleshooting, refer to the vendor documentation:

https://www.haproxy.com/doc/aloha/7.0/troubleshooting/index.html