sentinl: Sentinl reports don't snapshot the correct page

Hi

I’m using elasticsearch + kibana 5.5.2 (with searchguard), i have installed sentinl on kibana and everything seems to work fine except the reports snapshot

Description of the issue:

I create a reporter and set the action (report action) for a link of a dashboard for example “http://127.0.0.1:5601/app/kibana#/dashboard/CC-Test-Dashboard” and when the report is generated i expect to receive a snapshot of the dashboard but i only get a snapshot of main kibana page (discover tab)

next is my sentinl configuration and example of reporter configuration, can you help me?

Thanks

Sentinl configuration at kibana.conf

sentinl:
  settings:
    email:
      active: true
      host: smtp.hdi.tvcabo
      ssl: false
      timeout: 10000  # mail server connection timeout
    report:
      active: true
      tmp_path: /tmp/
      search_guard: true

Reporter example of configuration (some fields are omitted and the dashboard url is just an example not the real link used)

{
  "_index": "watcher",
  "_type": "sentinl-watcher",
  "_id": "o5gtoe69zae-kz0rlju70gq-4s3jdrebbj",
  "_version": 5,
  "found": true,
  "_source": {
    "title": "reporter_title",
    "disable": false,
    "report": true,
    "trigger": {
      "schedule": {
        "later": "every 15 mins"
      }
    },
    "actions": {
      "report_admin": {
        "throttle_period": "0h15m0s",
        "report": {
          "to": "X",
          "from": "sentinl@nos.pt",
          "subject": "Sentinl Report",
          "priority": "high",
          "body": "Sample Sentinl Screenshot Report",
          "save": true,
          "snapshot": {
            "res": "1280x900",
            "url": "http://127.0.0.1:5601/app/kibana#/dashboard/CC-Dashboard",
            "path": "/tmp/",
            "params": {
              "delay": 15000,
              "crop": false,
              "username": "kib",
              "password": "kib"
            }
          }
        }
      }
    },
    "transform": {},
    "input": {},
    "condition": {}
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 24 (6 by maintainers)

Most upvoted comments

@sergibondarenko, I have been testing and you are partial correct, I wasn’t using the correct url because the plugin only works with shorten urls. But thanks for the tip

Yes this was the only limitation i have. now its solved, everything seams to be working just fine.

Once again thank you for the support @sergibondarenko and @lmangani

I think you have a wrong URL in the Sentinl Report action from. You should paste a URL of a dashboard there. You can get it from the Kibana Share menu https://www.elastic.co/guide/en/kibana/5.5/sharing-dashboards.html