gowatch

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 12 Imported by: 0

README

gowatch

Gowatch is swatch alternative implemented in go.

Config

file_path = "/path/to/some/logfile"
verbose = true

[[rules]]
name = "test1"
regexp_patterns = [
  "(?i)OutOfMemory",
]
patterns = [
  "some text",
  "other text",
]
commands = [
  "mail -s \"test mail\" monitoring@example.com",
]
backoff = 30

[[rules]]
name = "test2"
patterns = [
  "FATAL",
]
commands = [
  "service foobar restart",
]

[[rules]]
name = "test3"
patterns = [
  "WARNING",
]
commands = [
  "service foobar restart",
]
window_sec = 30
max_in_window = 10
backoff = 30

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL