elastalert-kibana-plugin icon indicating copy to clipboard operation
elastalert-kibana-plugin copied to clipboard

Can't save new rule

Open DpoBoceka opened this issue 7 years ago • 12 comments

I have some rules on my dockerized elastalert which work fine and now I'm trying to get them shown in its plugin and see no rules and if I create one I see an error:

Failed to save
Rule 'test' could not be saved: (500) Internal Server Error

How can I see all my stored on file system rules in kibana and why can't I add new rule?

DpoBoceka avatar Nov 22 '18 15:11 DpoBoceka

Still experiencing this with latest plugin for Kibana 7.1.0

webhead404 avatar Jun 14 '19 14:06 webhead404

I have this problem too. ELK 6.7.2 Elastalert 3.0.1 Kibana-plugin for 6.7.2 I solved my problem. I used elastalert-server in docker and mounted volumes (rules,rule_template). I chached rule for others users( chmod o+rw rules). It work for me

vitassecuriti avatar Jun 24 '19 12:06 vitassecuriti

I have this problem with ELK 7.1.0, elastalert 3.0.0-beta.0 and kibana-plugin 1.0.4-7.1.0 all in docker.

fchiri avatar Jun 24 '19 15:06 fchiri

I think you could try to execute command chmod -R o+rw rule and try to create new rule into kibana plugin. It is work for me

vitassecuriti avatar Jun 24 '19 16:06 vitassecuriti

FYI we are using the elastalert 3.0.0-beta.0. Running that command didn't seem to work for me.

webhead404 avatar Jun 24 '19 17:06 webhead404

I used option rw for volume. E.g. - ./rules:/opt/elastalert/rules:rw

vitassecuriti avatar Jun 24 '19 22:06 vitassecuriti

sudo docker run -d -p 3030:3030 -p 3333:3333 -v pwd/config/elastalert.yaml:/opt/elastalert/config.yaml -v pwd/config/elastalert-test.yaml:/opt/elastalert/config-test.yaml -v pwd/config/config.json:/opt/elastalert-server/config/config.json -v pwd/opt/elastalert/rules:/opt/elastalert/rules:rw -v pwd/rule_templates:/opt/elastalert/rule_templates --net="host" --name elastalert bitsensor/elastalert:3.0.0-beta.0

Adding the :rw option didn't work for me.

webhead404 avatar Jun 25 '19 13:06 webhead404

Check access rights for the folder and for files of rules. Everything works for me.

vitassecuriti avatar Jun 25 '19 15:06 vitassecuriti

My config was pointed at /opt/elastalert/rules instead of the current directory with /rules. It made perfect sense after I quit screwing around with Docker.

https://media.giphy.com/media/xT5LMzIK1AdZJ4cYW4/giphy.gif

webhead404 avatar Jun 27 '19 15:06 webhead404

hi i have the same problem pls some one can help me i istalled elastalert plugin for kibana 7.3.2 but i have issue the rule can't saved 1

any help????? this my config kibana.yml file: elastalert-kibana-plugin.enabled: true elastalert-kibana-plugin.serverHost: 123.0.0.1 elastalert-kibana-plugin.serverPort: 9000 elastalert-kibana-plugin.serverSsl: false

meriem-ux avatar Sep 26 '19 08:09 meriem-ux

@vitassecuriti plz can u help me i have same prb i don't use docker

meriem-ux avatar Oct 02 '19 13:10 meriem-ux

On the Host OS (Were you have installed docker) just execute the command: #chmod -R o+rw /opt/elastalert/rules/ And then you are on the go...

mafairnet avatar Jun 16 '20 05:06 mafairnet