Puppet Class: statistics::rsync::eventlogging

Defined in:
modules/statistics/manifests/rsync/eventlogging.pp

Overview

Class statistics::rsync::eventlogging

Sets up daily cron jobs to rsync log files from remote logging hosts to a local destination for further processing.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/statistics/manifests/rsync/eventlogging.pp', line 6

class statistics::rsync::eventlogging {
    Class['::statistics'] -> Class['::statistics::rsync::eventlogging']
    $working_path = $::statistics::working_path

    # Any logs older than this will be pruned by
    # the rsync_job define.
    $retention_days = 90

    $destination = '/srv/log/eventlogging/archive'

    file { ['/srv/log/eventlogging', '/srv/log/eventlogging/archive']:
        ensure => 'directory',
        owner  => 'stats',
        group  => 'wikidev',
        mode   => '0775',
    }

    # eventlogging data logs from eventlog1002
    statistics::rsync_job { 'eventlogging':
        source         => 'eventlog1002.eqiad.wmnet::eventlogging/archive/*.gz',
        destination    => $destination,
        retention_days => $retention_days,
    }
}