bitsensor / elastalert

ElastAlert that exposes REST API's for manipulating rules and alerts
https://bitsensor.io/
Other
367 stars 216 forks source link

Need Help with Installation #66

Open mancharagopan opened 5 years ago

mancharagopan commented 5 years ago

I need help with installation. I followed instruction as mentioned in README. but i am receiving some errors while running make build. and i have some confusion, where is the installed directory my /opt/ directory is empty.

Please help

martijnrondeel commented 5 years ago

Please post the errors here.

mancharagopan commented 5 years ago

Am i doing anything wrong?

gopan@elastalert:~$ cd /opt
gopan@elastalert:/opt$ sudo git clone https://github.com/bitsensor/elastalert.git; cd elastalert
[sudo] password for gopan:
Cloning into 'elastalert'...
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 1329 (delta 2), reused 18 (delta 0), pack-reused 1309
Receiving objects: 100% (1329/1329), 268.32 KiB | 306.00 KiB/s, done.
Resolving deltas: 100% (713/713), done.
gopan@elastalert:/opt/elastalert$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
gopan@elastalert:/opt/elastalert$ sudo docker run -d -p 3030:3030 \
> -v `pwd`/config/elastalert.yaml:/opt/elastalert/config.yaml \
> -v `pwd`/config/config.json:/opt/elastalert-server/config/config.json \
> -v `pwd`/rules:/opt/elastalert/rules \
> -v `pwd`/rule_templates:/opt/elastalert/rule_templates \
> --net="host" \
> --name elastalert bitsensor/elastalert:latest
Unable to find image 'bitsensor/elastalert:latest' locally
latest: Pulling from bitsensor/elastalert
cd784148e348: Pull complete
9abca35fefbf: Pull complete
7fc670963d22: Pull complete
0b57bf1b73d2: Pull complete
e92b8523a31c: Pull complete
3c9295fda425: Pull complete
335ba8924af1: Pull complete
0ac84d03376b: Pull complete
2d42ed194661: Pull complete
d40d88227efd: Pull complete
75ada34903d2: Pull complete
57914e9ed7d2: Pull complete
71d174113568: Pull complete
fc8c17f2d29a: Pull complete
a40f39c10cbb: Pull complete
Digest: sha256:31de6d3e0eb3884ab1966cc19615ca8809b62a5ec05494472513f3e63e14f305
Status: Downloaded newer image for bitsensor/elastalert:latest
WARNING: Published ports are discarded when using host network mode
87be727e27f51832f4809ef81485b572cbd08c5d7239c4fa2477a4a055ae1d3b
docker: Error response from daemon: error while creating mount source path '/opt/elastalert/config/elastalert.yaml': mkdir /opt/elastalert: read-only file system.