diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-06-17 12:59:15 +0100 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-06-17 12:59:15 +0100 |
| commit | b7b528277014879e436ae7fe1f3851024938fbd3 (patch) | |
| tree | 8be1cc0ecf3a25c390c9a7ad97afb5aa52a6c512 /internal/config/server.go | |
| parent | 4da9ed0f4ded049e28607cc7ea78c8b091ca721b (diff) | |
initial log monitoring support
Diffstat (limited to 'internal/config/server.go')
| -rw-r--r-- | internal/config/server.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/config/server.go b/internal/config/server.go index bc2f40a..43b4c34 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -26,6 +26,19 @@ type Scheduled struct { AllowFrom []string `json:",omitempty"` } +// Monitoring on log files. +type Monitoring struct { + Name string + Enable bool + Files string + Query string + ExcludeRegexes []string `json:",omitempty"` + Outfile string `json:",omitempty"` + Discovery string `json:",omitempty"` + Servers []string `json:",omitempty"` + AllowFrom []string `json:",omitempty"` +} + // ServerConfig represents the server configuration. type ServerConfig struct { // The SSH server bind port. @@ -46,6 +59,8 @@ type ServerConfig struct { HostKeyBits int // Scheduled mapreduce jobs. Schedule []Scheduled `json:",omitempty"` + // Monitoring on log files. + Monitoring []Monitoring `json:",omitempty"` } // Create a new default server configuration. |
