Defined Type: wazuh::addlog

Defined in:
manifests/addlog.pp

Overview

Copyright © 2015, Wazuh Inc. Define a log-file to add to ossec

Parameters:

  • logfile (Any) (defaults to: undef)
  • logtype (Any) (defaults to: 'syslog')
  • logcommand (Any) (defaults to: undef)
  • commandalias (Any) (defaults to: undef)
  • frequency (Any) (defaults to: undef)
  • target_arg (Any) (defaults to: 'manager_ossec.conf')


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/addlog.pp', line 3

define wazuh::addlog (
  $logfile      = undef,
  $logtype      = 'syslog',
  $logcommand   = undef,
  $commandalias = undef,
  $frequency    = undef,
  $target_arg   = 'manager_ossec.conf',
) {
  require wazuh::params_manager

  concat::fragment { "ossec.conf_localfile-${logfile}":
    target  => $target_arg,
    content => template('wazuh/fragments/_localfile_generation.erb'),
    order   => 21,
  }
}