Skip to content
yteraokaPublic

About

swatch alternative implemented in go

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

swatch alternative implemented in go

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址