Scheduling MISP feed fetches and jobs with cron

Scheduling MISP feed fetches and jobs keeps intelligence current without analyst effort. This page covers the built-in scheduled tasks, cron jobs built from console commands and API endpoints, step ordering and job status checks.

On this page

Why scheduled feed fetches and jobs matter in MISP

A MISP instance does not keep itself current. Feeds that have not been fetched, caches that have not been rebuilt and correlation that has not run against new attributes all drift quietly, so an analyst can search the platform and see a picture that is days or weeks old with no error on screen. MISP ships with default intelligence feeds, warning lists and galaxies and taxonomies, and it depends on background processing to keep them moving. Scheduling turns those periodic jobs into a predictable routine. The question for your team is which jobs must run on a clock and which can be triggered by hand when an investigation needs them.

The answer depends on your feed mix and sharing model. A small instance that consumes a few public feeds and publishes little may be well served by a short daily routine plus manual runs during investigations. An instance that pulls many feeds, synchronizes with a trusted community or feeds detection tools downstream usually cannot tolerate gaps, because stale data reaches every consumer of that data. Before you choose, list each feed, its update frequency as stated by its provider, whether it is pulled automatically or imported by hand, and which downstream systems depend on the result. Confirm the exact scheduled task names and options in the documentation for your MISP version, since they can change between releases.

Scheduling also changes who is responsible when data is wrong. A job that runs overnight and fails silently creates the same gap as no job at all, so the team that owns the instance must know how to check whether the last run completed and what it fetched. Decide who receives job failure alerts, who can run a fetch by hand during an incident and how often someone reviews job status. Those decisions belong in your operating runbook before the first cron entry is written. The rest of this page covers how to build the schedule, order the fetch and cache steps and read job status once it is running.

Built-in scheduled tasks or cron: which to use

The built-in scheduled tasks live in the MISP administration interface, so an administrator can review and adjust feed fetches, cache jobs and other recurring tasks without logging in to the server. This suits small teams that want a single place to manage schedules and that do not want to maintain separate operating system jobs. The schedule is stored with the instance, so it travels with the configuration an administrator can see in the web interface.

  • Low setup effort: Tasks are configured in the web interface rather than written as separate server jobs.
  • Visible schedule: Administrators can see which tasks are enabled and when they last ran from the same screen.
  • Dependence on background workers: Scheduled work depends on MISP's worker processes being healthy, so a stopped worker stops the schedule too.
  • Limited control over external timing: Coordinating runs with backups, patching windows or other server jobs takes more effort inside the interface.
  • Failure visibility: Confirm how failed runs are reported in your version and whether alerts reach an operator.

Before relying on this option, check the scheduled task list and job status pages in the MISP version you run, because screen names and behavior can change between releases.

Scheduling options and when each fits

This table compares the four ways to run recurring MISP work: built-in scheduled tasks, cron calling console commands, cron calling API endpoints, and an external orchestrator. Read each row for where the option fits, the main risk, and what to confirm on your installed MISP 2.5 release before you commit to it.

OptionBest fitMain riskWhat to confirm on your MISP 2.5 release
Built-in scheduled tasksFeed pulls and routine cache work on a single instance with a small number of jobsLimited visibility into failures unless someone watches the task status pagesWhich scheduled tasks exist in your version, their default intervals, and how failures are reported
Cron calling console commandsMaintenance commands run directly on the host, such as feed fetch and cache regenerationCommands run as a local account with broad rights, and cron output is easy to loseThe exact console command names and arguments, the web server user, and the log location for each job
Cron calling API endpointsTriggering feed or job actions from a host that does not run MISP's consoleA long-lived automation key sitting in crontab, and silent failures on expired keysWhich endpoints accept the trigger, whether the key can be scoped to that action, and its expiry behavior
External orchestratorMulti-step pipelines that depend on other systems, such as fetch, then cache, then export to a sensorAnother system to secure, patch and monitor, and ordering errors if steps are split across toolsWhether the orchestrator can read job status before starting the next step, and how retries interact with running MISP jobs
Ordering fetch before cache workAny setup where caches or exports must reflect the latest pulled dataRunning cache steps against stale data if the fetch fails but the next step still runsWhether your chosen mechanism reports job completion or only that the trigger was accepted
Shared job status checksConfirming that a scheduled run finished before alerting or exportingTreating a queued or accepted job as completedWhere job status is exposed in your release and which status values indicate success

How to set up scheduled feed fetches step by step

This sequence takes a MISP instance from an unscheduled state to one where feed fetches, cache builds and maintenance jobs run on a defined schedule, with each run confirmed in logs and the job status view. It is written for the team that installs and operates the instance.

  1. Confirm the MISP version and installation method

    Record the MISP version, the operating system and how the instance was installed, whether through the official installer, Docker, Ansible, Puppet or RPM packages. Run the version check from the administration interface and note the result. Confirm the web service account name and the user that runs the background workers, because cron entries must run under the account that owns the MISP files and console. The step is done when the version, install method and both account names are written down in your change record.

  2. Inventory the feeds and caches that need scheduling

    List every feed you pull, including default feeds and any custom or partner feeds, and note for each whether it is pulled automatically, its source and the owner who reviews it. Add the caches and jobs that must stay current, such as feed caches, correlation work and any export or sync tasks your team relies on. Mark which items must run before others, for example a feed fetch that must finish before its cache is rebuilt. The step is done when you have a written list with a schedule owner for each item.

  3. Check the built-in scheduled tasks

    In the administration interface, open the scheduled tasks settings and review which built-in tasks are enabled, how often each runs and which ones overlap. Compare the list with the inventory from the previous step and decide which built-in tasks cover your needs and which require a cron entry. Record the current settings before you change anything so you can restore them. The step is done when every inventory item is mapped to either a built-in task or a planned cron job.

  4. Configure the built-in tasks and fetch order

    Enable the built-in tasks you decided to keep, set their intervals and avoid overlapping heavy jobs at the same time. Where a cache depends on a fetch, schedule the cache step later than the fetch, leaving enough room for the fetch to finish. Make the change in a test instance first when one exists, and document each interval as a configuration record. The step is done when the saved settings match the decision record and the test instance shows the same order of runs.

  5. Add cron entries under the web service account

    For jobs that the built-in tasks do not cover, write cron entries that call the MISP console commands or API endpoints. Run them under the web service account so file ownership and permissions match the running application, and keep each entry in a version-controlled file with a comment naming the owner. Use a separate API key with the narrowest permissions needed for any endpoint call, and do not place keys in shared scripts. The step is done when the crontab lists each job, its schedule and its owner, and a manual run of each command succeeds from the same account.

  6. Verify each run in logs and the job status view

    Wait for the first scheduled run of each job, then open the job status view and the MISP logs to confirm the run started, completed and recorded the expected number of items. Check the cron output file or system journal for errors such as permission failures, expired keys or timeouts. Compare the item counts with the source feed to confirm nothing was silently skipped. The step is done when every job shows a successful run with a timestamp inside its expected window and the log shows no errors for that run.

  7. Record the schedule and prepare the rollback

    Save the final built-in task settings, the crontab and the verification results in your operations runbook, with the job owner and the date of the last successful run. Write a rollback note that lists the previous built-in settings, how to disable each new cron entry by commenting it out, and how to re-run a missed fetch manually. Confirm that a person outside the setup team can follow the note. The step is done when the runbook includes the rollback steps and a reviewer has signed off on the schedule.

Run fetch, cache and correlation steps in a fixed order

The diagram starts with a scheduled trigger that launches a feed fetch. The cache rebuild runs only after a successful fetch, because correlation and export jobs read the cached data. A failed fetch goes to a retry step and then back to the fetch, so stale data does not pass downstream unnoticed. Correlation and export jobs follow the rebuild, and a job status check decides whether the run is complete or needs review. Validate this order against your own scheduler settings and the MISP version you run.

Recommended order of fetch, cache, correlation and export jobs.

Security risks of unattended MISP jobs

Scheduled MISP jobs run without an analyst watching them, so their credentials, accounts and inputs carry more risk than interactive use. The cards below cover the decisions that keep a cron-driven setup from becoming a quiet path into your intelligence store. Harden the instance itself using the MISP security hardening guidance alongside these checks.

Scoped API keys for cron calls

Every script or cron entry that calls the API should use its own key, not a key tied to an administrator's account. A key used by a feed fetch or a cache rebuild should carry only the role and sharing group that job needs. Check which keys exist, who created them, when they were last used, and whether any key is still valid after the job it served was retired.

MISP features

Least-privilege service accounts for console commands

Console commands run as the operating system user and, for many tasks, as the web server user, so file permissions matter as much as MISP roles. Run scheduled commands under a dedicated account that owns only the paths it writes to. Confirm that the account cannot edit MISP configuration or read other users' data it does not need.

Protecting credentials in crontab files

Crontab entries are often readable by other local users and appear in shell history or backups. Keep API keys and database credentials in a root-owned or restricted file that the job reads at runtime, and avoid putting secrets directly in command lines. Check the file mode of every job script and the permissions on the crontab itself.

Logging and alerting on failed runs

A feed fetch that fails silently leaves analysts working from stale indicators, and a job that succeeds with an error can hide a broken import. Capture exit codes and output for each scheduled task, forward them to your log platform, and alert when a feed has not updated within its expected window. Confirm who receives the alert and who acts on it.

Feed trust before automatic ingestion

An automatically fetched feed can add indicators to your instance without review, and some of those indicators can block legitimate traffic if they are published for detection. Decide which feeds may ingest automatically, which should only be pulled for review, and how their events are tagged and distributed. Check each feed's publisher, licence and update pattern before enabling it.

Change control for schedule edits

Schedule changes are easy to make on a live server and hard to trace afterward. Store crontab entries, job scripts and feed settings in version control, require a review for each change, and record who approved it. Compare the deployed schedule against the approved copy at regular intervals so unexpected edits are noticed.

How to check job status and catch silent failures

A scheduled MISP job that fails quietly is more dangerous than one that fails loudly, because feeds and caches look current right up until someone queries them. Verify every scheduled run with three checks: the job status in the MISP interface, the system logs for the scheduled command, and the data itself. In the interface, review the scheduled tasks page and the background job view to confirm each task ran, finished, and did not stop with an error. Then confirm the result in the data: the feed list shows when each feed was last fetched, and the cache age tells you whether exports and correlation inputs reflect recent fetches. Treat a task that reports success but leaves a feed with an old fetch time as a failure to investigate.

Cron itself will not tell you that MISP did nothing useful. A cron entry that calls a console command can exit cleanly while the command skipped work, for example because a feed was disabled, a worker was not running, or an API key lost permission. Read the system logs for each scheduled command after you add it and again after every MISP upgrade, since log locations and message formats can change between versions. Confirm the exact log paths, log levels and worker behavior for your installed release in the MISP documentation for that version and in your own test environment before you rely on them. Record which command each cron entry runs so that a log line can be matched to a schedule.

The safest control is external monitoring for missed runs, which does not depend on MISP reporting its own failures. Have the cron host or your monitoring stack record a heartbeat or check when each job completes, and alert when the expected signal does not arrive within the window you set for that job. Pair this with a freshness check against the feed fetch time and cache age, so that a stalled worker is caught even if cron keeps launching commands. Decide in advance who receives these alerts, how long a missed run may go before someone acts, and what the first recovery step is. Ask your MISP installer or partner to confirm which status endpoints and log outputs your version exposes before you build these checks.

Limits to confirm before you schedule

Scheduled fetches and cache jobs look simple until a task name changes, a job overlaps its previous run, or a feed quietly stops authenticating. The cards below list the items to verify against your own 2.5 installation before you write any cron entry.

Exact task names and syntax

Confirm the scheduled task names and the console command syntax for the specific 2.5 release you run, using the help output of your own installation rather than examples from older guides. Scheduled entries built from memory of an older release can call commands that were renamed or that take different arguments. Record the release you verified against so the schedule can be reviewed when you upgrade.

MISP download

Behavior after upgrades

Check whether scheduled tasks, their settings and the cron entries survive a move between 2.5 releases, and whether any migration step changes how jobs run. The 2.5.47 release introduced a new database migration system, so a schedule that worked before an upgrade should be re-tested after it. Treat the first run after every upgrade as a verification step.

MISP releases

Overlap of long-running jobs

Find out how long your largest fetches, cache rebuilds and correlation jobs take on your data, and set the schedule so one run finishes before the next begins. Overlapping runs of the same pull can duplicate work, lock tables or produce partial caches. Ask whether the task scheduler prevents concurrent execution of the same task and add a lock or wrapper if it does not.

Worker capacity on the Redis stack

Confirm how many background workers your deployment runs, which queues they consume and how Redis is sized for the expected job volume. Fetches and cache jobs compete with user-facing work when worker pools are small, so a schedule that looks light on paper can back up the queue. Check queue depth and worker status after each scheduled window during the pilot.

PostgreSQL support for your deployment

Confirm the support status of PostgreSQL for the exact deployment method you chose, since the database backend determines which SQL-based maintenance and cache steps you can script. The project has added PostgreSQL support through its newer migration system, so verify it against the release notes and your installer before you assume your scripts or database checks apply. Do not mix database assumptions from a MySQL or MariaDB guide into a PostgreSQL schedule.

MISP releases

Feed authentication and manual steps

For each feed, confirm whether it requires an API key, a registration step, a license acceptance or a manual download before it can be fetched automatically. A feed that needs a human action will fail silently on a schedule, leaving caches stale without an obvious error. Keep a list of feeds that need credentials or manual steps and assign an owner to each one.

Questions buyers ask about scheduling MISP jobs

What does it cost to set up scheduled MISP feed fetches and jobs?

Cost comes mostly from the people time needed to design and verify the schedule, not from the scheduler itself, since MISP's built-in scheduled tasks and cron run on your own server. The main cost drivers are the number of feeds and pulls, how many sync partners depend on fresh data, whether jobs run on one host or several, and how much monitoring and alerting you want around them. Ask any partner for a written scope listing each feed, each scheduled job, the verification steps and the handover material, since that is what the quote follows from. Separate one-time work (design, build, testing) from recurring work (feed changes, MISP upgrades that alter job behavior, and periodic review of job status).

How long does a typical MISP scheduling setup take?

Duration depends on how many feeds and jobs exist, how well the current server is documented, and whether the schedule has to be coordinated with sync partners and a maintenance window. A small instance with a few feeds and a single host is far simpler than a production instance with dependencies between fetch, cache and correlation steps. Your own team or a partner should confirm the timeline against the written scope before work starts. No fixed duration applies to every environment, so treat any single number you see as something to check against your own feed list and job inventory.

What does our team need to provide before scheduling MISP jobs?

Plan to provide the following before any schedule is changed:

  • A MISP administrator account with rights to view and edit scheduled tasks, plus shell access to the host for console commands and cron.
  • Credentials and access for each feed or pull source, including any API keys and the terms that govern their use.
  • A list of current scheduled tasks and cron entries, with the owner of each.
  • A maintenance window agreed with the teams that depend on fresh intelligence and with any sync partners.
  • A test or staging instance where job order and timing can be checked before production.

Confirm each item with your own change process, because access rules differ between organizations.

Can an internal team set up MISP scheduling without outside help?

Yes, a team with Linux administration experience and some familiarity with MISP can set up scheduled fetches and jobs in-house, as long as it reads the current MISP documentation for the installed version and tests changes outside production first. The work is mainly configuration, ordering and verification rather than new software development. The risks are stale caches, jobs that overlap or fail silently, and changes that break after a MISP upgrade. An internal team should decide in advance who owns job status checks and what happens when a fetch fails.

What goes wrong when MISP fetch and cache jobs are ordered incorrectly?

The most common failures are fetches that finish after a cache rebuild, so analysts and sync partners see stale indicators, and jobs that overlap, which can load the database and workers at the same time. Silent failures are also common when no one checks job status after a change. Ask whether the plan defines the order of fetch, cache and correlation steps, how each job reports success or failure, and how a failed job is retried or escalated. Verify the sequence on a test instance with realistic feed sizes before relying on it.

When should we hire an implementation partner for MISP job scheduling?

Consider a partner when the instance has many feeds, multiple dependent sync communities, a tight maintenance window, or no one on staff who can own scheduled jobs over time. A partner also helps when the schedule must be documented for audit or handover, or when it must be rebuilt during a MISP version change. DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ask any provider for a written scope and a retest plan before committing.

Do MISP scheduled jobs need to change after a version upgrade?

They can. The MISP 2.5 line is the recommended version for new deployments, and the project has shipped database migration changes within that line, so a job that worked before an upgrade should be retested after it. Check the release notes for the version you are moving to and confirm which console commands and API endpoints your jobs call still behave the same way. Keep a list of every scheduled task and cron entry so that an upgrade review covers all of them.

What licensing or support questions should we settle before automating MISP jobs?

MISP is licensed under the GNU AGPL version 3, and its taxonomies and galaxy data use separate licenses, so confirm that your use and any internal changes fit those terms with your legal team. Support options include the project's paid services and commercial third-party providers, and each will scope work differently. Ask for the support boundary in writing so you know who fixes a broken job at 2 a.m.

How DeployOpen schedules and supports MISP jobs

DeployOpen starts with a written inventory of every scheduled task the MISP instance will run: feed fetches, feed caching, pulls from sync partners, correlation and cache rebuilds, and any jobs built from console commands or API calls. For each entry the inventory records the owner, the target interval, the service account and API key used, the order it must follow relative to other steps, and the alert that fires when it fails or runs late. The scope also states which jobs use MISP's built-in scheduled tasks and which run as cron entries on the host, because the two are configured and monitored in different places. This document is agreed before any schedule is changed, so the client knows exactly what will run and who answers when it does not.

DeployOpen then implements the schedules inside the client's own infrastructure, using the MISP version and host layout the client has approved, and writes the runbook alongside them. Cron entries are kept in version-controlled configuration with comments that name the owner and purpose. Each job is verified with a manual run and a status check, including a deliberate check that a fetch which produced no new data still reports success, and that a failed fetch produces a visible error. Monitoring is handed over with the thresholds, the escalation path and the steps for a stuck or overlapping job. Confirm with your own team which monitoring tool will receive these alerts before the handover is scheduled.

DeployOpen also offers retainers for work that continues after handover. Typical ongoing items are reviewing the job inventory when feeds change, adjusting order and intervals after a MISP upgrade, testing that schedules still run after host or container changes, and retesting after a security advisory. Retainer scope, response expectations and frequency are set in writing, and the client should ask how each one is priced and what is excluded before signing. Scheduling work is fixed-scope, while a retainer covers the recurring checks that keep those schedules trustworthy over time.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.