Monitoring misp-modules health before enrichment failures reach analysts
Analysts depend on misp-modules for enrichment, import and export actions, so a silent failure in that service does not show up as an error. It shows up as missing data: an attribute that never gets a lookup result, an import that produces fewer attributes than expected, or an export action that returns nothing. The misp-modules service runs alongside the core MISP platform as a separate component that extends it with expansion, import, export and action modules. Because MISP itself can keep working while the modules service is down or degraded, the platform team needs its own view of that service. Health monitoring is an operations task owned by the platform team, not something an analyst should discover during an investigation.
Add health monitoring at three points: after the modules are first installed, before analysts are onboarded, and before any change window that touches modules or the services around them. After installation, confirm that the modules you expect are loaded and that a known enrichment call returns a result. Before onboarding, agree on who receives alerts and what a failing check means for the analysts' work. Before a change window, record a baseline so you can tell whether a restart or module update changed behavior. The statistics endpoint and any query counts, error counts or latency figures exposed by the service are the first signals to check, but the exact endpoint paths, field names and debug options depend on the installed version. Confirm them in the misp-modules documentation for that version before you build any alert on them.
Keep extended debug logging off outside active troubleshooting. Debug output can record request content and grow log volume quickly, which creates its own exposure and disk pressure on a shared host. Turn it on for a defined investigation, record who enabled it and when, and turn it off once the question is answered. Restarting the service after a module change is also a controlled step: confirm that the change has been reviewed, note the current health baseline, restart, then rerun the same checks. If the checks fail, roll back the module change rather than debugging in production. Ask your MISP support provider or the project's MISP support page which options they support for your version, and document the answers in your runbook.
misp-modules health monitoring options and when each fits
This table compares four ways to watch misp-modules: the statistics endpoint, host or container service checks, log review at the default level, and scheduled restarts after module changes. Read each row for the signal it gives, what it costs to set up, what it misses and which team usually owns it. Most teams combine two or three of these rather than relying on one.
| Approach | Signal it provides | Effort to set up | What it misses | Usually owned by |
|---|---|---|---|---|
| Statistics endpoint | Query counts, error counts and latency for module calls, useful for spotting a module that is slow or failing | Low to moderate: confirm the endpoint and how to scrape it in your MISP version before wiring alerts | Whether the service process is alive, and failures that never reach a module call | Platform or MISP admin team |
| Service status check on host or container | Whether the misp-modules process or container is running and restarting | Low: use the service manager or container runtime health and restart signals you already monitor | Slow responses, module-level errors and bad results from a module that still answers | Platform engineering or infrastructure operations |
| Log review at the default level | Errors and warnings from module loading and execution, with context for an incident | Low, but manual unless logs are forwarded to a central tool | Quiet failures, trends over time, and detail needed for diagnosis because default logging is brief | MISP admin team on incident or after a change |
| Extended debug logging | Detailed per-request and per-module traces during a targeted investigation | Low to set, but it adds log volume and may expose sensitive data | Nothing outside the window it is enabled, and it should not run as steady-state monitoring | MISP admin team, only during troubleshooting |
| Scheduled restart after module changes | Confirms that new or updated modules load cleanly in a controlled window | Moderate: needs a change calendar and a post-restart check | Problems that appear later under real load, and changes made outside the planned window | MISP admin team with change management |
How MISP calls misp-modules and where health signals appear
The flow starts when MISP's web requests and background workers call the misp-modules service to run expansion, import, export or action modules. Each module runs inside the misp-modules service, which exposes a statistics endpoint that reports query counts, errors and latency. A monitoring collector on the far side of the trust boundary reads those signals and forwards them to the team's alerting. Check that the collector reaches the statistics endpoint only through the path you approved, and that module errors also appear in MISP and service logs.
Module calls from MISP to misp-modules, and the signals a collector reads across the trust boundary.
What misp-modules health monitoring should measure
Track three signal groups for misp-modules: query counts per module, error counts per module, and latency. Each answers a different operational question. Query counts tell you whether the service is being used and which modules analysts actually call, which matters when you decide what to keep enabled. Error counts tell you whether something is failing, often because a module's upstream service changed, a credential expired or a input format is no longer accepted. Latency tells you whether the service is slowing down, which usually shows up in enrichment and import jobs before anyone files a ticket. Measure all three per module rather than as one total, because a single aggregate can hide a failing module behind healthy traffic elsewhere.
After a module update, read changes in each group against the others. A rise in errors on one module with flat query counts points to a regression in that module or its upstream dependency. A latency jump with stable errors often means an external lookup is slower, not that your host is short of resources. A sudden drop in query counts can mean the update broke the module's registration, so MISP no longer offers it to users. To tie a spike to a specific module, filter the statistics by module name and compare the timestamp with your change record and the misp-modules restart. Confirm which fields the statistics endpoint returns in your installed version, since field names and granularity differ across releases, and confirm how access to it is controlled. Restrict it to your monitoring network and a dedicated account, because module statistics reveal which intelligence lookups your analysts perform.
Setting up misp-modules health checks in order
This sequence puts a monitoring check on misp-modules that your team can trust, starting from a known MISP 2.5 baseline and ending with proof that an alert fires. Each step leaves a recorded value or result that the next step depends on.
Confirm the MISP version and misp-modules deployment
The platform or operations engineer records the MISP version from the administration interface and confirms it is on the 2.5 line, since the 2.4 line is end of life with security fixes only. Next, record how misp-modules was installed (the official installer, Docker, Kubernetes, Ansible, Puppet or RPM packages), which service manager runs it, the host it listens on and the version of the module package. The step is done when this inventory sits in your change record, because the endpoint location, restart method and log path all depend on it. Confirm the exact service names and file paths against the MISP installation documentation for your chosen method.
Enable the statistics endpoint for the monitoring host
The platform engineer turns on the misp-modules statistics endpoint and restricts it to the address of the monitoring host, using the firewall, the bind address or a reverse proxy rule, depending on how the service was deployed. Do not expose it on the public interface or behind the same route as user traffic. Confirm the setting name, default port and expected response format in the misp-modules documentation for your version before changing anything. The step is done when the monitoring host gets a successful response and a host that is not on the allow list gets refused.
Verify the endpoint returns usable metrics
From the monitoring host, the engineer requests the statistics endpoint with a command such as
curland saves the raw output. Check that it reports query counts, error counts and latency values, and that the values change after you send a test query to a module from the MISP interface or API. Record the field names exactly as they appear, since your alert rules will reference them. If a field is missing, confirm with the misp-modules release notes whether that version exposes it before you build the check around it.Record a baseline before any change
Over a normal working period, the operations team samples query counts, error counts and latency at the same intervals and stores the results in the monitoring system. Note which modules are enabled, which feeds and enrichment jobs run on schedule, and any known peaks such as scheduled imports. The baseline is complete when the team can state typical ranges for each metric and the times when those ranges are normal. Without this record, later alerts will rest on guesses, and a change in module behavior will be hard to tell apart from ordinary load.
Agree alert thresholds with the owning team
The platform owner and the team that runs threat intelligence workflows agree on what counts as a problem: error counts above a set level, latency that stays high for a sustained period, or no metrics returned at all. Write each threshold, the window it is measured over, the person who receives the alert and the expected response in the runbook. Ask the owning team to confirm the thresholds against their baseline and against the module behavior they depend on. The step is done when the agreed values are stored in the monitoring configuration with a named owner, and nobody has to remember them from a meeting.
Configure the check and alert routing
The monitoring engineer creates a check that polls the statistics endpoint at the agreed interval, applies the thresholds, and treats a failed or empty response as an alert in its own right. Route the alert to the on-call channel that the owning team actually watches, and confirm that the alert text includes the host, the metric and the threshold that was crossed. Check the monitoring tool's documentation for how it handles timeouts and authentication to a restricted endpoint. The step is done when the rule shows as active in the monitoring system and the routing test reaches the intended recipient.
Test that an alert fires on a controlled failure
In a test window agreed with the owning team, the operator stops the misp-modules service, or blocks the monitoring host from reaching the endpoint, and confirms that the alert fires within the expected window and reaches the right recipient. Restore the service, confirm the metrics return, and confirm the alert clears. Record the timestamps and the outcome in the change log. If the alert does not fire, or fires without a clear message, correct the check before relying on it. This test is what shows the check works, so repeat it after any change to the module setup or the monitoring tool.
Keeping debug logging off outside troubleshooting
Health monitoring for misp-modules is only safe if the logs and endpoints it creates are kept small, restricted and reviewed. The cards below cover the controls that connect monitoring output to the rest of the MISP instance, from debug logging and statistics access to credentials, log lifecycle and post-upgrade checks.
Debug logging stays off by default
Extended debug logging on misp-modules can grow log files quickly and may record request details that were never meant to persist. Treat it as a time-boxed troubleshooting switch: enable it for a named ticket, capture what you need, then turn it off and confirm the setting in the running service. Check disk usage on the host before and after each debug window, since a full disk can stop MISP itself.
Restrict access to the statistics endpoint
The statistics endpoint exposes query counts, error counts and latency for the modules service. Limit which hosts can reach it with network rules or a reverse proxy allowlist, and do not publish it on the same listener as user-facing MISP traffic. Ask your team to confirm which networks the monitoring system sits on and whether the endpoint can be bound to a local or management interface.
Use a separate monitoring credential
If your monitoring system must authenticate to read health data, give it a dedicated service identity rather than an analyst account. Analyst credentials carry event access and personal permissions that a scraper does not need. Store the secret in your secrets manager, rotate it on a schedule, and review who holds it. Confirm with the MISP version you run how any token or key is generated and scoped.
Set log retention and rotation
Monitoring output and module logs should have defined retention and rotation rules that match your internal logging policy. Without rotation, log files grow until they affect disk, and without retention rules, debug output can persist long after an incident closes. Document the log paths, the rotation tool in use and who approves any change to retention. Confirm the exact retention periods with your own compliance owner, since the project does not set them for you.
Plan for state loss on restart
Restarting misp-modules after a module change clears in-memory counters and any state held only in the process. Dashboards built on those counters will show a gap or a reset, which can look like an outage or hide one. Note restarts in your change records, annotate monitoring dashboards when they happen, and avoid restarting during active sync or enrichment windows unless the change requires it.
Recheck health checks after upgrades
A MISP upgrade can change module behavior, logging defaults or the paths and fields your health checks read. After each upgrade, confirm the statistics endpoint still responds, that alert thresholds still match normal traffic and that debug logging is off. Include these checks in the same change window as the upgrade so gaps are found before analysts depend on the service. Review the release notes for the version you install.
MISP release notesWhen to restart misp-modules after a module change
On a host built with the official installer, misp-modules runs as a system service alongside the MISP web application and its background workers. A module change usually means updating Python packages inside the virtualenv or deploying new module code, and the running process keeps the old code until it restarts. Schedule the restart as a change in a window agreed with the analysts who depend on enrichment, and record the module versions installed before and after. Confirm the exact unit name on your host before writing the runbook, because installer versions and packaging layouts can differ. The MISP download page describes the supported installation paths.
- Confirm the unit name: list the services on the host and find the misp-modules unit rather than assuming a name. Record the name in the runbook.
- Snapshot before changing: back up the database, the MISP configuration and the virtualenv or module directory so the previous state can be restored.
- Restart after staging: restart the service only once the change is fully staged, then confirm the process started cleanly with the new code.
- Roll back by restoring files: reinstall the recorded module versions, restart the same unit and repeat the health checks.
- Test the connection from MISP: confirm that enrichment requests from the MISP interface complete after the restart.
Before closing the window, check the service status, the module statistics and a test enrichment from the MISP interface.
In a Docker deployment, the module service runs in its own container, and the image tag determines which module code is present. A module change normally means building or pulling a new image, or changing the configuration the container reads, and then recreating the container. Restarting an existing container does not load a new image, so the rollout has to replace the container. Confirm the service and container names in your compose file or orchestration manifest, since your deployment defines them and they may differ from the names used in examples.
- Pin the image tag: deploy a specific tag or digest so every restart runs the version you tested.
- Recreate the container: pull the new image and recreate the container so the new code is loaded.
- Keep the previous image: retain the prior tag locally so rollback is a change of tag followed by recreation.
- Read the startup logs: check the container logs for module load errors before reopening analyst access.
- Script against the service name: use the compose service name from your own file in every restart command.
After the recreation, confirm that the running container uses the intended image digest, then check the statistics output and run a test enrichment.
Under Kubernetes, Ansible or a similar configuration management tool, a module change should travel through the same pipeline as other releases. The desired state is set in a manifest or role, and the controller performs the rollout. Rollouts that wait for readiness keep the previous replicas serving until the new ones report ready, which makes rollback a revert of the desired state. Confirm the deployment name, namespace, role variables and rollout strategy in your own repository, because these depend on how your team built the deployment.
- Change through version control: commit the module image or package version change so the previous desired state is one revert away.
- Stage the rollout: let the controller replace replicas gradually and hold the rollout if readiness checks fail.
- Wire readiness to a health signal: configure probes against the health output your installed version exposes, so unhealthy pods do not receive traffic.
- Gate production applies: require an approval step in the pipeline that matches the analyst communication plan.
- Roll back by reverting the commit: restore the prior desired state and confirm the rollout completes.
In the same pipeline run that made the change, check the rollout status, the pod readiness events and the statistics output.
Whatever the packaging, bracket the restart with the same checks so you can tell whether the change helped or caused a fault. Capture the module statistics, error counts and latency before the restart, then repeat the capture after the service reports healthy. Tell analysts the window start time, the expected effect on enrichment and who to contact if something fails, then confirm when the window closes. Use the statistics endpoint and logs that your installed version provides, and confirm which fields it reports before you rely on them in a comparison.
- Baseline before the change: record query counts, error counts and latency so the post-restart results have a reference.
- Run a known enrichment test: submit a sample that a named module handles and record the result before and after the restart.
- Observe for an agreed period: monitor errors and latency through an observation period set in advance, not only at the moment the process starts.
- Announce the window in advance: tell analysts when the restart starts, what enrichment may do during it and who to contact.
- Confirm the close and record results: send an all-clear with the results and log the module versions now in service.
If any baseline measure worsens after the change, follow the rollback steps for your packaging before the window closes.
How much effort is misp-modules health monitoring?
What drives the cost of misp-modules health monitoring?
The cost depends mainly on how many MISP instances and misp-modules services you run, how many of them feed a monitoring system you already operate, and how many alerts someone must act on. A single instance with the statistics endpoint scraped into an existing dashboard is a small task. Costs rise when you add several instances, custom alert thresholds for query errors and latency, log retention rules, and a runbook for restarts after module changes. Ask any partner to price each of these separately in the written scope so you can see which items are one-time and which need ongoing review.
How long does misp-modules monitoring setup usually take?
Duration depends on what already exists in your environment. If you already run a metrics and alerting stack and can reach the misp-modules statistics endpoint from it, the work is mostly configuration, testing and documentation. Duration grows when the network path between the monitoring system and the MISP host needs firewall changes, when access reviews are required, when no owner has agreed on alert thresholds, or when several environments such as staging and production must be covered. Confirm the expected duration in the written scope, and ask what dependencies, approvals and test windows the timeline assumes.
What does the client need to provide for this work?
The work needs a few things from your side before it starts:
- Administrative access to the MISP host and its configuration, and read access to the statistics endpoint from the monitoring system
- A named owner who decides alert thresholds and receives notifications
- A test or staging MISP instance where module restarts and log level changes can be tried safely
- Change windows for restarting misp-modules and for any configuration change to logging
- Agreement on where monitoring data is stored and who may read it, since query logs can contain indicator and analyst details
Ask the partner to list each of these as an input in the scope so that delays are visible early.
Can our own team set up misp-modules monitoring without outside help?
Yes, a team with Linux service administration experience and familiarity with its existing monitoring tool can usually do this in-house. The main requirements are knowing how the misp-modules service is run and restarted on your host, being able to read the statistics output, and having a monitoring system that can collect it. Outside help is most useful when the team lacks time, when the monitoring design must be reviewed by a security function, or when the instance is part of a regulated environment where the change record must be complete. Whichever path you choose, confirm the approach against the MISP documentation for your installed version.
What ongoing work does misp-modules monitoring require after upgrades?
Monitoring needs routine attention rather than a one-time build. After each MISP upgrade or module change, someone should confirm that the statistics endpoint still responds, that the metrics names and fields the dashboards expect are unchanged, and that the service restarts cleanly. Alert thresholds should be reviewed after traffic patterns change, for example after a new feed or sync partner is added. Log levels must be returned to normal after any troubleshooting session. Ask whether the partner offers a retainer that covers these checks and how it is priced, and confirm the version-specific behavior with the MISP release notes before each upgrade.
Why does extended debug logging cost effort and create risk?
Extended debug logging increases disk use, can record sensitive request content, and slows the service, so it creates both operational and security work. Someone must remember to turn it off, rotate or purge the extra logs, and review who can read them. Plan for a documented procedure that sets debug on only for a defined window, records who approved it, and reverts it afterward. A partner would include this procedure in the handover and a check that it has been reverted. Confirm your log retention and access rules with your security team before any debug session starts.
What should a quote for misp-modules monitoring list?
A quote should follow directly from a written scope and list each piece of work separately. Ask for the following items:
- The MISP and misp-modules versions in scope and the hosts or containers covered
- How the statistics endpoint will be reached and secured, and which monitoring tool receives the data
- The alert conditions, owners and notification channels to be configured
- The restart and log-level procedures to be documented and tested
- The test environment, change windows and access the client must supply
- Handover items, training and the boundary of any ongoing support
Each line should state whether it is one-time or recurring. DeployOpen does not publish a price list, so the quote comes from this written scope.
What to confirm before relying on misp-modules metrics
Metrics from misp-modules are only as useful as your understanding of what they report and who can read them. The cards below list the questions to answer in your own deployment before you build dashboards, alerts or runbooks on top of them. Each one maps to a choice that affects whether the signal is trustworthy and whether your partners' modules behave as you expect.
Statistics fields and access controls
Confirm which fields the statistics endpoint returns in the misp-modules version you run, including query counts, error counts and latency values, and what each one measures. Then check who can reach the endpoint. Statistics can reveal which modules your analysts use and how often, so treat the endpoint as internal. Restrict it at the network layer and record the result in your change log so the check is repeatable after upgrades.
MISP repositorySignal coverage across your module set
Not every module reports the same signals. Some expansion modules may call external services, while import and export modules may run only when a user triggers them. Build an inventory of the modules enabled on your instance and test each one for the metrics you plan to alert on. Gaps you find now are cheaper to document than gaps discovered during an incident.
Compatibility with your MISP 2.5 release
Confirm that the misp-modules version you deploy matches the MISP 2.5 release you run, and check the release notes for changes to statistics output. The project recommends MISP 2.5 for new deployments, so a mismatch is most likely during a version transition. Re-verify the metric names and endpoint behavior after each core and module upgrade before trusting existing dashboards.
MISP download pageLog level handling in production
Confirm how the service sets log levels, where the setting lives, and whether a change requires a restart. Verbose or debug logging can record request content and expose sensitive indicator data, and it can also fill disks quickly. Decide who may raise the level, how long it stays raised, and who reverts it. Write the revert step into the runbook as a required action, not an optional cleanup task.
Integration with your monitoring stack
Confirm how your existing monitoring tool will collect the statistics output, whether by scraping, polling or log forwarding, and whether the format needs a translation step. Check that alert thresholds for error rates and latency can be set without custom code you would then need to maintain. Also confirm which team receives the alert and whether it can act on a misp-modules fault without MISP administrator access.
Modules your sharing partners depend on
Ask your sharing partners and community operators which modules their workflows call, such as enrichment or export modules used for their feeds or automated sharing. A module you consider optional may be a dependency for a trusted community. Agree on a shared list, test those modules after every change, and include them in the restart and rollback plan so a local change does not break a partner's exchange.
How DeployOpen works on this
DeployOpen plans and runs misp-modules health monitoring inside your own infrastructure, so the statistics endpoint, logging and restart procedure fit your MISP deployment and your change process. Work starts with a written scope that names the MISP instance, the modules in use and the systems that will receive health data.
How we scope
- Inventory which misp-modules services run, their hosts and the MISP instances that call them.
- Agree which statistics endpoint data, error and latency views, and alert conditions the monitoring must cover.
- Define the restart and module change procedure, including who approves it and where logs are kept.
How we build
- Configure the statistics endpoint collection and dashboards in the monitoring stack you already operate.
- Test alerts against known module errors and confirm the signals reach the right on-call channel.
- Set debug logging to its troubleshooting-only state and verify it is switched off in normal operation.
How we hand over
- Document the monitoring configuration, alert thresholds, dashboards and restart steps for your operators.
- Walk your platform and MISP administrators through reading the statistics and acting on each alert.
- Record the debug logging policy and the procedure for enabling it temporarily during an investigation.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and monitoring reviews are available as a retainer for MISP and its modules.
- Ask us to confirm how monitoring changes after each MISP release, since module behavior can change between versions.

