Requesting a guide - Alerts from detections (even if it's a paid license) #1007
|
Hello, I'm wondering if anyone has setup alerts/actions to receive emails from tpot? I really appreciate all the work that has gone into the project but would love to see if there's a way to get email alerts setup. I see in the settings there's somthing for kibana actions which looks like you need an elastic Gold license. Is that all that would be needed to get emailing to work? |
Replies: 1 comment
|
@solarplex Option 1: Kibana Alerting (Paid License)If you're referring to Kibana Rules & Connectors, then yes—you'll need a license that supports email connectors. With Kibana Alerting you would:
In addition to the appropriate license, Kibana alerting requires some configuration, such as an encryption key ( Option 2: ElastAlert / ElastAlert2 (Free & Open Source)If you don't have a paid Elastic license, ElastAlert (or ElastAlert2) is a very popular alternative. It periodically queries Elasticsearch and can send alerts via:
This works well with T-Pot because all honeypot events are already indexed into Elasticsearch. A simplified rule might look like: name: Cowrie Login Alert
type: frequency
index: logstash-*
num_events: 1
timeframe:
minutes: 1
filter:
- query:
query_string:
query: 'eventid:cowrie.login.success'
alert:
- email
email:
- admin@example.comOption 3: Custom Logstash OutputAnother option is to extend T-Pot's Logstash pipeline with an additional output {
if "shouldmail" in [tags] {
email {
...
}
}
}This works without relying on Kibana's alerting framework, although you'll need to maintain the Logstash configuration yourself. Which approach would I recommend?
Could you clarify one thing?
If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
@solarplex
Yes, it's possible to receive email alerts from T-Pot, but how you do it depends on whether you're using Elastic's built-in alerting or an external alerting tool.
Option 1: Kibana Alerting (Paid License)
If you're referring to Kibana Rules & Connectors, then yes—you'll need a license that supports email connectors.
With Kibana Alerting you would:
In addition to the appropriate license, Kibana alerting requires some configuration, such as an encryption key (
xpack.encryptedSavedObjects.encryptionKey) and the alerting/actions settings documented by El…