This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrd.toml
75 lines (67 loc) · 2.59 KB
/
frd.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# payload_level is an int :
# 0 Emergency emerg (panic) Système inutilisable.
# 1 Alert alert Une intervention immédiate est nécessaire.
# 2 Critical crit Erreur critique pour le système.
# 3 Error err (error) Erreur de fonctionnement.
# 4 Warning warn (warning) Avertissement (une erreur peut intervenir si aucune action n'est prise).
# 5 Notice notice Événement normal méritant d'être signalé.
# 6 Informational info Pour information.
# 7 Debugging debug Message de mise au point.
# watcher_type should be "event" or "loop"
# loop sert a lire toutes les "loop_sleep" le contenu du repertoire et supprime les fichiers selon le removetime
# event supprime les fichiers dès leur creation
# si graylog.ip est défini une trace est envoyé au serveur à chaque suppression
title = "TOML FRD service config file"
[frd]
global_log = false #if you do not want to log about removed files, set it to false
[graylog]
ip = "" #set empty to not use graylog
format = "gelf"
protocol = "udp"
port = 12666
[watchers]
[watchers.test1]
# type of scan "loop" or "event"
watcher_type = "loop"
# watcher's name
name = "Watch *.tmp in test"
# directory to scan
directory = "/tmp/test"
# extension to match, "*" to match all files
ext_file = ".tmp"
# define file_size to match : =size or <size or >size . to match all files ">0" WARNING : file_size is only for file, not directory !
file_size = "=0"
# bytes , kilobytes, megabytes , gigabytes , terabytes
size_unit = "bytes"
# set false to not remove directories, otherwise all directories and their contents will be erased
recursive = true
# set an external command to secure delete files instead of using internal delete
# you can use http://srm.sourceforge.net/
#external_rm = "srm"
external_rm = ""
# If you want some options add it here, i.e "-rfG".
#external_options = "-rf"
external_options = ""
payload_host = "srvprod1"
payload_level = 6
environment = "prod"
# écart entre la date du fichier et du systeme, avant suppression
# format : Nh Nm Ns (240h for 10 days)
removetime = "1h"
# scan le répertoire toutes les , format : Nh Nm Ns
loop_sleep = "5m"
[watchers.test2]
watcher_type = "event"
name = "Watcher *.log in test2"
directory = "/tmp/test2"
ext_file = ".log"
# define file_size : =size or <size or >size
file_size = "=0"
size_unit = "bytes" # bytes , kilobytes, megabytes , gigabytes , terabytes
recursive = false
external_rm = "srm"
# If you want some options add it here, i.e "-rfG".
external_option = "-rf"
payload_host = "srvlog1"
payload_level = 6
environment = "prod"