From a7bb7126b79fdf5f3f121a87d04e840eaa0f29da Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Fri, 26 Apr 2019 06:44:31 +0900 Subject: [PATCH] chg: [dashboard] Added FAQ entry on how to debug misp-dashboard chg: [galaxies] Mild attempt to document how to roll your own. --- faq/README.md | 19 ++++++++++++++++ galaxy/README.md | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/faq/README.md b/faq/README.md index 21606cb..3492855 100644 --- a/faq/README.md +++ b/faq/README.md @@ -266,6 +266,25 @@ chcon -R -t httpd_sys_rw_content_t /var/www/MISP/app/webroot/img/orgs chcon -R -t httpd_sys_rw_content_t /var/www/MISP/app/webroot/img/custom ``` +## How to debug misp-dashboard + +This is the full chain from MISP to the live dashboard and some tips to find out which link is faulty. + +1. MISP +Ensure that ZMQ is installed and enabled with the correct settings + +2. MISP ZMQ +You can use MISP/tools/misp-zmq/sub.py which will subscribe to the ZMQ and print the data + +3. ZMQ_subscriber +You can change the logging level from logging.INFO to logging.DEBUG and look in the logs for the string Pushed: * +Or add a print statement in the put_in_redis_list function + +4. ZMQ_dispatcher +Look in the logs for the string Handling * + +5. Server (Flask) and Browser (live Dashboard) +Open the Web developer Network tab in your browser and look for the url /_logs with Content-Type: text/event-stream;