| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Simple alerting application. It was inspired by elastalert and Jenkins pipelines. The goal is to provide users with more sophisticated rule system.
Currently, l3rt supports the following sources as an input:
Supported outputs:
Supported rules:
You can use a web UI to create and debug your rules. Just start L3rt and go to http://localhost:8080/
Create a config file where you need to specify common configuration for all your rules:
{
"sources": [
{"url": "elasticSearch:http://localhost:9200"}
],
"targetSettings": {
"mailServer": {
"host": "smtp.gmail.com",
"port": "465",
"auth": true,
"username": "myemail@test.com",
"password": "password"
}
}
}You can find more info about config here.
Create your rule. All rules are groovy based DSLs, so you can use all power of groovy in your rules.
/opt/l3rt/rules/exampleRule.groovy
rule {
ruleName = "myTestRule"
params = [
index: "logstash-*",
queryString: "message:Error"
]
reaction { messages ->
messages.each {
if (it.data.message.contains("Critical")) {
email("manager@mycompany.com", "Error", it.data.message.toString())
hipchat("Room with logs", it.data.message.toString(), "RED", true)
} else {
hipchat("Room with logs", it.data.message.toString(), "YELLOW", true)
}
}
}
}You need:
Build ./gradlew application:jar
Run java -Dconfig.file=/l3rt/config/config.json -Drules=/l3rt/rules/ -jar ./application/build/libs/l3rt-1.6.0.jar
NOTE: l3rt requires >= Java 8 and Docker
Create your config file ~/conf.json on your local machine. Then start it as follows:
docker run -it -v ~/conf.json:/l3rt/config/config.json -p 8080:8080 dimafeng/l3rt:1.6.0
Optionally you can specify location of your rules -v ~/rules:/l3rt/rules.
Go to http://localhost:8080 and play with L3rt!
This project is in heavy development stage so all contributions are appreciated.
| Back | FazBrowse Home | New Git URL |