Skip to Content
ReportingContinuous Data Exports

Export Vulnerability Findings to Splunk

Send Mondoo vulnerability findings to Splunk through the HTTP Event Collector, mapped to the Splunk CIM Vulnerabilities data model, or collect more Mondoo data with the Mondoo apps for Splunk.

Send Mondoo vulnerability findings to Splunk so your security team can search, alert, and build dashboards on them alongside your other security data. Mondoo delivers the findings to a Splunk HTTP Event Collector (HEC) as events that follow the Splunk Common Information Model (CIM) Vulnerabilities data model. For how exports work in general, read Continuous Data Exports.

The Splunk export sends vulnerability findings only. To export assets, check results, and packages as well, use a storage or warehouse destination such as Amazon S3 or BigQuery. To bring assets, check results, advisories, and audit events into Splunk itself, use the Mondoo apps for Splunk.

Before you begin

  • A Splunk Enterprise or Splunk Cloud Platform deployment with the HTTP Event Collector turned on, reachable from the internet.
  • An HEC token. Mondoo doesn't request indexer acknowledgment, so create the token with indexer acknowledgment turned off. To learn how, read Set up and use HTTP Event Collector in the Splunk documentation.
  • Editor or Owner access to the Mondoo space from which you want to export findings, or another role with permission to add integrations.

Create the integration

  1. In the Mondoo App, navigate to the space. In the side navigation, select Integrations, then select INSTALL. Under Data Exports, select Splunk.

    The Splunk export integration form in Mondoo, with the Integration Name, HEC Endpoint URL, HEC Token, and Skip TLS verification fields

  2. In the Integration Name box, enter a name for the integration.

  3. Under Configure Splunk connection, fill in:

    • HEC Endpoint URL. The base URL of your HTTP Event Collector, including the port, for example https://prd-p-xxxx.splunkcloud.com:8088. Mondoo sends events to the /services/collector path on this host. If you leave out the scheme, Mondoo uses https://.
    • HEC Token. The token you created for Mondoo.
    • Skip TLS verification. Turn this on only if your HEC endpoint uses a self-signed certificate.
  4. Optionally, under Configure Splunk destination (optional), fill in:

    • Index. The Splunk index to write events to. If you leave it empty, Splunk uses the default index configured for the HEC token.
    • Source and Source Type. Values to set on each event, for example mondoo and mondoo:vulnerability. If you leave them empty, Splunk applies the token's defaults.
  5. Select Create Integration.

Mondoo doesn't send data as soon as you create the integration. The first export runs within about 24 hours. To send findings right away, open the integration's detail page and select RUN.

What Mondoo sends

Each export run sends one event per vulnerability finding in the space: a full snapshot, not only the changes since the last run. Events are sent in batches of 100. Each event body uses these CIM Vulnerabilities fields:

FieldValue
categorysecurity
cveThe vulnerability ID, such as a CVE or advisory ID
signatureThe vulnerability summary
cvssThe CVSS score, for example 9.8
severityThe CVSS severity
destThe name of the affected asset
dvcMondoo
tagvulnerability

The event time is the time of the export run. Because every run sends the full set of findings, filter searches to the most recent run when you want current counts.

Verify

After it's created, find your integration under Integrations in your space's side navigation. Select it to open the detail page, then:

  • Check the status. Active means the integration is healthy and exporting on schedule. Not ready means the first export hasn't finished yet. Error means the last export failed.
  • Check the last export. The Export Details section shows when the last export succeeded and when Mondoo last attempted one.
  • Review the activity log. Most Recent Activity lists each export run's messages, such as when a job started, finished, or failed and why. Filter it to errors, warnings, or info messages.

Manage this integration

On the integration's detail page, you can:

  • Trigger a manual export. Exports run automatically about every 24 hours. To export immediately, select RUN.
  • Change the settings. Select the pencil icon to edit the integration, for example to update credentials.
  • Remove the integration. Select the trash can icon and confirm. Mondoo stops future exports but does not delete data that has already been exported.

Troubleshoot

If the status is Error, or Last Successful Export in Export Details is older than you expect, check Most Recent Activity for the failure message. For every status and the fixes for common errors, read Integration Status and Troubleshooting.

Mondoo apps for Splunk

Mondoo also publishes two Splunk apps on Splunkbase. They're separate from the export integration on this page: you install them in Splunk, and the add-on collects Mondoo data from Splunk's side. Both are open source (Apache-2.0); the source is in the mondoohq/splunk-app repository on GitHub.

AppSplunk nameWhat it does
Mondoo Add-On (TA) for SplunkMondoo Log IngestionCollects Mondoo data into a Splunk index
Mondoo App for Splunk EnterpriseMondooDashboards and saved searches over the data the add-on collects

What the add-on collects

The add-on (TA-mondoo) has two inputs, and its events are mapped to the Splunk CIM Change, Vulnerabilities, Inventory, and Alerts data models.

  • Mondoo API input. Polls one Mondoo space through the Mondoo API on an interval (every 300 seconds by default). The add-on's Inputs page offers Audit Logs (sourcetype mondoo:rest:audit) and Advisories (mondoo:rest:advisory). To also collect registered agents (mondoo:rest:agent), add agents to the log_types setting of the input's stanza in inputs.conf (for example, log_types = audit,advisories,agents). For audit logs, the input keeps a checkpoint, so each poll, including the first one after a restart, collects only the events that are newer than the last one it collected. On its first run, it fetches 7 days of audit history by default (Initial Lookback (days); 0 fetches all available history). Advisories and agents are collected in full on every poll.

  • File monitor. Reads Mondoo JSONL export files from a local directory (/opt/mondoo-etl/export/ by default; the monitor is off until you turn it on) and sets each file's sourcetype from the end of its name:

    File name ends withSourcetype
    -assets.jsonlmondoo:json:asset
    -vuln.jsonlmondoo:json:vuln
    -checks.jsonlmondoo:json:check
    -controls.jsonlmondoo:json:control
    -packages.jsonlmondoo:json:package
    -queries.jsonlmondoo:json:query

    A storage export in JSONL format writes files with these names (read Export file names), so you can copy an export's files into the monitored directory.

The add-on requires Splunk Enterprise 9.0 or later.

What the dashboard app includes

The dashboard app (mondoo_app) needs the add-on's data. It includes:

  • Dashboards: Assets, Vulnerabilities, Checks, Queries, Audit, and Data Information (which shows whether each Mondoo sourcetype is being indexed).
  • Five saved searches, all turned off by default: critical open vulnerabilities by asset, stale assets not seen in 7 days, failed checks by severity, audit activity in the last 24 hours, and an alert on new critical CVE findings. Turn on the ones you want in Splunk Web.
  • The mondoo_index search macro, which every dashboard uses to find its data. It defaults to index=mondoo. If you send Mondoo data to a different index, change the macro's definition.

Where to install the apps

Install the add-on on exactly one Splunk instance. Its API input keeps state on the instance that runs it, so running it on more than one instance creates duplicate events.

Splunk deploymentInstall the add-on onInstall the dashboard app on
Single serverThe Splunk instanceThe same instance
DistributedOne heavy forwarder (or the search head)The search head
Search head clusterA heavy forwarder outside the clusterEach cluster member
Splunk Cloud PlatformA heavy forwarder you operate, which forwards events to your Cloud stackYour Cloud stack

Splunk Cloud Platform doesn't allow custom Python modular inputs, such as the add-on's API input, in apps on the Cloud stack. That's why the add-on goes on a heavy forwarder you operate.

Connect the add-on to Mondoo

  1. In the Mondoo space you want to collect from, create an API token. To collect audit logs, give it the Editor or Admin role, because the Viewer role can't read audit logs. The input doesn't accept certificate-based service account credentials.

  2. In Splunk, open the Mondoo Log Ingestion app and select + Add New Input.

  3. Enter an Input Name. In Mondoo Config Blob, paste a JSON object with the token, the API endpoint of your organization's region, and the Space MRN from the space's settings:

    {
      "token": "YOUR_API_TOKEN",
      "api_endpoint": "https://us.api.mondoo.com",
      "space_mrn": "//captain.api.mondoo.app/spaces/YOUR_SPACE_ID"
    }

    For the EU region, use https://eu.api.mondoo.com. You can also paste only the token. The input then reads the space from the token and uses the US endpoint unless the space ID starts with eu-, so for a space in the EU region, paste the JSON object instead.

  4. Under Log Types, select Audit Logs, Advisories, or both. Set the Index (for example, mondoo, the index the dashboard app expects), the Polling Interval (seconds), and the Initial Lookback (days).

  5. Select Save.

The input honors the HTTPS_PROXY environment variable for an outbound proxy, and MONDOO_CA_BUNDLE for a custom CA bundle. Set them in the environment that starts splunkd. The input writes its log lines to splunkd.log, with tokens removed.

Next steps

Last updated on

On this page