Blame mlogc/INSTALL

Packit Service 384592
ModSecurity Audit Log Collector (mlogc)
Packit Service 384592
Packit Service 384592
Mlogc is used to connect a ModSecurity sensor to the central
Packit Service 384592
audit log repository.
Packit Service 384592
Packit Service 384592
To Install:
Packit Service 384592
===========
Packit Service 384592
Packit Service 384592
  1) Copy the mlogc executable to an appropriate location.
Packit Service 384592
Packit Service 384592
     A good location might be /usr/local/bin, /opt/mlogc/bin, etc.
Packit Service 384592
Packit Service 384592
  2) Create sensor in the central audit log repository. Note the
Packit Service 384592
     username and the password (SENSOR_USERNAME, SENSOR_PASSWORD).
Packit Service 384592
     Also note the IP address central repository listens on
Packit Service 384592
     (CONSOLE_IP_ADDRESS).
Packit Service 384592
Packit Service 384592
  3) Configure the ModSecurity sensor to use mlogc
Packit Service 384592
Packit Service 384592
     # Use ReleventOnly auditing
Packit Service 384592
     SecAuditEngine RelevantOnly
Packit Service 384592
Packit Service 384592
     # Must use concurrent logging
Packit Service 384592
     SecAuditLogType Concurrent
Packit Service 384592
Packit Service 384592
     # Send all audit log parts
Packit Service 384592
     SecAuditLogParts ABIDEFGHZ
Packit Service 384592
Packit Service 384592
     # Use the same /CollectorRoot/LogStorageDir as in mlogc.conf
Packit Service 384592
     SecAuditLogStorageDir /var/log/mlogc/data
Packit Service 384592
Packit Service 384592
     # Pipe audit log to mlogc with your configuration
Packit Service 384592
     SecAuditLog "|/usr/local/bin/mlogc /etc/mlogc.conf"
Packit Service 384592
Packit Service 384592
  4) Using the mlogc-default.conf as a template, configure the logger.
Packit Service 384592
Packit Service 384592
     Typically these are the only directives that will need to be modified
Packit Service 384592
     to conform to your site:
Packit Service 384592
Packit Service 384592
     # Points to the root of the installation. All relative
Packit Service 384592
     # paths configured in this file will be resolved with the
Packit Service 384592
     # help of this path (LogStorageDir, TransactionLog, etc.)
Packit Service 384592
     #
Packit Service 384592
     # Typically, this will be the parent directory that is configured
Packit Service 384592
     # in ModSecurity for the SecAuditLogStorageDirectory.  So, if
Packit Service 384592
     # your SecAuditLogStorageDirectory is set to /var/log/mlogc/data,
Packit Service 384592
     # then set this to /var/log/mlogc.
Packit Service 384592
     CollectorRoot       "/var/log/mlogc"
Packit Service 384592
Packit Service 384592
     # ModSecurity Console receiving URI. You can change the host
Packit Service 384592
     # and the port parts but leave everything else as is.
Packit Service 384592
     ConsoleURI          https://CONSOLE_IP_ADDRESS:8886/rpc/auditLogReceiver
Packit Service 384592
Packit Service 384592
     # Sensor credentials
Packit Service 384592
     SensorUsername      "SENSOR_USERNAME"
Packit Service 384592
     SensorPassword      "SENSOR_PASSWORD"
Packit Service 384592
Packit Service 384592
     # Base directory where the audit logs are stored.  This can be specified
Packit Service 384592
     # as a path relative to the CollectorRoot, or a full path.  It should
Packit Service 384592
     # resolve to the same path as ModSecurity's SecAuditLogStorageDirectory.
Packit Service 384592
     LogStorageDir       "data"
Packit Service 384592
Packit Service 384592
     See the mlogc-default.conf configuration file for details on other
Packit Service 384592
     configuration directives.
Packit Service 384592
Packit Service 384592
  5) Restart the ModSecurity sensor.
Packit Service 384592
Packit Service 384592
     From now on every audit log generated will go to the repository. Make
Packit Service 384592
     sure you create an alert. Transactions without alerts will be recorded
Packit Service 384592
     but not displayed on the home page.
Packit Service 384592
     
Packit Service 384592
     To troubleshoot, generate alerts and observe file "mlogc-error.log".
Packit Service 384592
     
Packit Service 384592
     If mlogc fails to connect to the server it will pause for a period
Packit Service 384592
     of time (60 seconds by default) before it will try again.
Packit Service 384592