Replies: 1 comment
-
I have done this via sendmail. I don't guarantee this is the best solution, but it works for me. It involves a couple of scripts I wrote, some cron jobs, and a little salt file editing and adding a few packages to the OS. First, if you're using the ISO install, it's a castrated version of Oracle. Only base utilities and SO tools.
Setup sendmail (You will have to refer to sendmail docs to see exactly what google needs (I know there are directions online)
The solution is that you hae to add some lines to
What I have here is a small script which is run when an alert is triggered by Elastalert. The second line there just gives me a place to dump the file into from the script.
Of course, you could trigger it on whatever you want, but I I have a daily cron job like:
So when the script is run, the input from stdin is piped into a file under /tmp/elastalerts/alerts.xt (You'll have to make the /tmp/elastalert folder for this to work). This file is well commented, you should be able to understand what's being done. Basically, the file is massaged into something useful and some email tags added, then it is dumpted to /tmp/elastalert/email.txt file.
I know this is a bit convoluted, but it was the only way I could see to get an alert emailed out the way I wanted it to. In my original scripts, it looks at times of the day to determine if it should Really send an alert or if it was just our daily test time. It would have been so much easier if the elastalert container had a basic sendmail or alternative builtin. I hope this is helpful? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
2.4.30
Installation Method
Security Onion ISO image
Description
upgrading
Installation Type
Standalone
Location
on-prem with Internet access
Hardware Specs
Exceeds minimum requirements
CPU
4
RAM
20
Storage for /
500
Storage for /nsm
100
Network Traffic Collection
tap
Network Traffic Speeds
1Gbps to 10Gbps
Status
Yes, all services on all nodes are running OK
Salt Status
No, there are no failures
Logs
No, there are no additional clues
Detail
Hello,
I am currently trying to configure ElastAlert to send Emails to an external gmail-address. But apperently you have to install the NULLMAILER Agent on the SO instance, so that the linux system is able to send emails. Also other mail packages like mutt msmtp and mailutils aren't downladable. Is there any possiblity to install a package to send mail from the commandline and later on with elastalert?
Thanks in advance!
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions