elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

download_dashboard not working

Open NicoYUE opened this issue 10 years ago • 2 comments

Hello,

I'm trying to use dashboard from Kibana 3.

I followed the tutorial by writing:

filter:
    download_dashboard "Dash Name"

And I get

elastalert.util.EAException: Error loading file example_rules/example_frequency.yaml: Invalid Rule: Example rule
{'download_dashboard': 'External Ports Scans'} is not of type 'array'

It's just like in the tutorial so I don't know what's wrong.

I have no problem with elastalert-rule-from-kibana though, but I need to create rules dynamically depending on my dashboards so I hope to make download_dashboard work.

thank you

NicoYUE avatar Apr 07 '16 13:04 NicoYUE

Ah, shoot. Yeah it looks like the schema was changed at some point to make filter HAVE to be a list. I don't use this particular feature so I haven't noticed. Thanks for reporting this, I'll get a fix up soon

Qmando avatar Apr 07 '16 20:04 Qmando

Funny, had not tried ElastAlert until very recently and ran into this very issue. When the fix is available, will it include support for Kibana 4?

dayglojesus avatar Apr 14 '16 22:04 dayglojesus