Skip to content

KAAE Report Example

Lorenzo Mangani edited this page Sep 12, 2016 · 1 revision

KaaE Reports

KaaE watchers can generate snapshots of Kibana (or any other website) and deliver them on your schedule using the report action.

So your Boss wants to see some charts each Monday? No problem!

{
  "_index": "watcher",
  "_type": "watch",
  "_id": "reporter_v8g6p5enz",
  "_score": 1,
  "_source": {
    "trigger": {
      "schedule": {
        "later": "on the first day of the week"
      }
    },
    "report": true,
    "actions": {
      "report_admin": {
        "report": {
          "to": "reports@localhost",
          "from": "kaae@localhost",
          "subject": "KaaE Report",
          "priority": "high",
          "body": "Sample KaaE Screenshot Report",
          "snapshot": {
            "res": "1280x900",
            "url": "http://www.google.com",
            "path": "/tmp/",
            "params": {
              "delay": 5000
            }
          }
        }
      }
    }
  }
}

Requirements

Report actions requires:

  • KaaE 0.0.8+
  • PhantomJS installed on the Kibana host, ie: npm install phantomjs-prebuilt -g
  • A valid email address configured in /etc/kaae.json. An example for gmail:
"email" : {
	   "user":	"[email protected]",
	   "password":	"somepass",
	   "host":	"smtp.gmail.com",
	   "port" :     465,
	   "ssl":	true,
	   "active":	true
	}

Report Away!

With a pinch of luck, you will soon receive your first report with a screenshot attached: