---
updatedAt: 2026-08-14T13:38:38.000Z
agentTools:
  projectIndex: https://docs.censys.com/llms.txt
---

# Splunk ASM Integration

Access Levels:  <i class="fa-solid fa-check" /> Advanced | <i class="fa-solid fa-check" /> Enterprise

Use the Censys Attack Surface Management (ASM) for Splunk integration to visualize [logbook API](https://docs.censys.com/docs/asm-logbook-event-catalog-api#/) and [risks API](https://docs.censys.com/docs/asm-risks#/) data on a customizable dashboard and quickly discover changes in your attack surface.

Censys also provides reports based on ASM data, which can be used for alerting and creating dashboards in Splunk. Workflow actions provide a seamless transition between Splunk Search and Censys ASM.

To use Splunk with Censys ASM, you must install both the Censys Add-on for Splunk and the Splunk for Censys Attack Surface Management app.

## Prerequisites

You will need:

* Your Censys ASM platform API key
  * To find your API key, log in to Censys ASM and click Integrations at the top of the page.
* An active Splunk account

## Install the Splunk Add-On

1. In Splunk, click **Find More Apps** in the left sidebar.

   <Image align="center" className="border" border={true} width="250px" src="https://files.readme.io/3455f65a8d82f89b6950a6a648b385bb4a191adb4eaad1c8ce1b2332ba3916c1-splunk-more-apps.png" />
2. Type **Censys** into the search bar, locate the Censys Add-on for Splunk and click **Install**.

   <Image align="center" className="border" border={true} width="400px" src="https://files.readme.io/035dc508f43d0da2576b1533ad58e3cf4c654a38a88b707dae5b600a72b1f6a1-Screenshot_2024-05-31_at_10.32.35_AM.png" />
3. Re-enter your login credentials to confirm.

> 📘 Note
>
> It is also possible to download and install the [Censys Add-on for Splunk](https://splunkbase.splunk.com/app/6399) directly from Splunkbase.

### Configure the Splunk Add-on

> 📘 Note
>
> If you are using the same Censys workspace for multiple Splunk destinations, you only need to configure one Add-on.

1. Click **Configuration** at the top of the page.
2. Click the **Accounts** tab. On the right side, click **Add**.

   <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/d32ed26c336f0f7cd3160f0cd649feb7d0f4610f4052ca16aabd355d3d7ae8d2-7cdb4eedb85213b2cdfc3a4f16e08e4eea7f43495ca1285c9d3219636394ad96-uuid-648ff18f-d506-97e3-ce20-d2846ea8b07d.png" />
3. Enter an Account Name and paste your Censys ASM platform API key.
   1. We recommend using the name of your ASM workspace for your account name.
4. Click **Add**.

   <Image align="center" className="border" border={true} width="400px" src="https://files.readme.io/00ebf006f3d9d5c291d1319b2dfba6e1726b49c63e6805c84460aa7fca8558b7-5130645a7d205734e34ca0610705c125efe2bd0b590a6eda7e9ec3c3b7052222-uuid-1322907a-7b30-e8b4-0e0e-46173e642450.png" />
5. Return to the Configuration page and click the **Inputs** tab.
6. Click **Create New Input**. Configure the following fields:
   1. **Input Name**: Enter a name for the logbook input.
   2. **Interval**: Enter an interval, in seconds, for how frequently data will be fetched from Censys ASM.
   3. **Index**: Enter the index where the data is stored.
   4. **Account**: Indicate which Censys account to use.

      <Image align="center" className="border" border={true} width="400px" src="https://files.readme.io/44017ec1cba4d465130d24bb470b759d511d8f6f76e541938a891502ec8fa125-uuid-27f7adf4-1b5b-0a9b-4368-cff56e17a4c0.webp" />
7. Click **Add**.

## Install Splunk for Censys ASM

1. In Splunk, click **Find More Apps** in the left sidebar.

   <Image align="center" className="border" border={true} width="250px" src="https://files.readme.io/6c016afc3f2b30378f7e4b51563fd0efa201997dcf7690e61af2c4a75381eb2a-splunk-more-apps.png" />
2. Type **Censys** into the search bar and locate Censys ASM for Splunk. Click **Install**.

   <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/ec662b498a519fe07c7cc04523626c4bec137ca828e75731cff996cbe51520a5-Screenshot_2024-05-31_at_10.32.35_AM.png" />
3. Restart your Splunk Web instance.
4. Re-enter your login credentials to confirm.

> 📘 Note
>
> It is also possible to download and install the [Censys ASM for Splunk](https://splunkbase.splunk.com/app/4830) directly from Splunkbase.

## Use reports to create alerts and dashboards

To create an alert or dashboard based on a report:

1. In Splunk,  click the **Reports** tab at the top of the page.
2. Click **Open in Search** next to the report you want to use:

   <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/fe10ed0563f42b7e9e4d98d716a387361d3d1d59936f47836d86fb8cc204647c-d804d8fc29bf4d29ac7a9b210b6f116cc88936b8543780414440df72aa3cfc9c-use_reports.jpg" />
3. You can optionally modify the query. When you are done, click **Save As**, and select one of the options in the dropdown to create an alert, add it to an existing dashboard, or create a new dashboard.
   1. If you select **Alert**, you will be prompted to configure additional settings.

      <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/e15a2ed4db785f3404e043b5595ba29e27493eef1c0e397d66ac508bb51c1a5e-b133df9d2252c14a572917ffd660b09f95954f883fe1833b11255ad26d2ea3e4-alert.png" />

### Dashboards

#### View the dashboards

Click the **Dashboards** tab at the top of the page. When you first access this page, you will see a pre-built default dashboard. Click on a card to view the query providing its data.

#### Set a default dashboard

1. In a dashboard, click **...** in the upper right corner.
2. Click **Set as Home Dashboard** from the dropdown. This dashboard will now appear by default when you log in to Splunk.

<Image align="center" className="border" border={true} width="400px" src="https://files.readme.io/659c9a048412f04f424e9074e8af99123fc74103327e23c2f92dfea46c4b54ed-eb35d4f4378c916b951e9a80039f054b5b3e8f96df1b1af40fd287ff4a9b8160-uuid-0bb92249-40bd-877d-de75-13ea1e14120c.png" />

#### View more information about events in the dashboard

To view more information about an event, click **...** next to the asset you want to view, then click **Domain**, **Host**, **Storage Asset**, or **Certificate** in Censys ASM.

<Image align="center" className="border" border={true} width="600px" src="https://files.readme.io/139445fed10704fc8e6a1f179b459588bc8fa3a3172258807bb04909ef81331a-uuid-32c88175-3408-2a85-8ef4-0292431ee9a3.png" />

#### Keep the dashboard up-to-date

To keep the Attack Surface Management Risks dashboard up to date, enable scheduled runs of the following saved searches:

* Generate risk instances lookup
* Generate risk types lookup
* Hosts with most risks lookup
* Hosts with most risks with severities
* Hosts with most risks with types
* Web entities with most risks lookup
* Web entities with most risks with severities
* Web entities with most risks with types

If you opt not to schedule the runs, you must manually run these searches each time you want to pull in the most current data while viewing the dashboard.

#### Enable scheduled runs

1. In Splunk, click **Settings > Searches**, **reports**, and **alerts**.
2. At the top of the page, set the **Owner** filter to **All** to ensure all searches are visible.
3. For each of the five saved searches listed above, follow these steps to edit the schedules:
   1. Locate the search you wish to modify.
   2. Click **Edit > Edit Schedule**.
      1. The "Edit Schedule" modal will appear.
   3. Check the box next to **Schedule Report**.
   4. Optionally, adjust the frequency of the schedule. By default, the report runs every hour.

      <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/2207ba31f16f4642e99d161a69569830751a843ebe813a8643ef9b7cde438a9b-uuid-c2cfe152-0e3f-c4e7-a281-bfeb66f11ab7.png" />
   5. Click **Save**.
      1. The searches will automatically run based on the schedule you set.
      2. Optionally, in the list of searches, click **Run** next to each search to update the dashboard immediately rather than waiting for the next scheduled run.

#### View details of searches and matching events

Click on a card to view the Splunk Search query and associated events.

<Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/0a4a667eebc0179ee1cbae35b2d12c87d9a9a210b289cc95117c9edc250e60a2-uuid-c8e986a6-8d4d-ce1d-805a-1645d9cbd1e8.png" />

On the Search page, you will see the query used to obtain the card results and a list of events organized by the specified time range.

## Install and enable Splunk Event Generator (Eventgen)

Splunk Event Generator (Eventgen) is a utility that allows users to generate configurable events to simulate real-time data for testing.

Censys provides a sample `eventgen.conf` file, along with sample events, to get you started. These are imported automatically by the app, and you can view [eventgen.con](https://github.com/censys/censys-splunk/blob/main/packages/Splunk_TA_censys/default/eventgen.conf) In GitHub.

1. In Splunk, click **+Find More Apps** in the left sidebar.

   <Image align="center" className="border" border={true} width="250px" src="https://files.readme.io/a8384d40d78c305deb9e5d932689c40e7da3a1d070918ea062c881f25d96ce67-873f3681eef3597d0847c4a990ae0a5b940fbbf1e4bfd838fe67e69c0bf85e80-splunk-more-apps_1.png" />
2. Use the search bar to locate the Eventgen app.
3. On the **Eventgen** app card, click **Install**.

   <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/573153c6c8d96e7d406f5ec3c01a473fbf96a4b1f7188ca648b7f204c4abbb65-cc7ddad2b0e16f0ff700e99d5d22e131f2bcbd00e4400b5437d9ffd82c57024a-34d9975a2c0257ad4ca877265d2ae12830cf1375543549df76337946e6b44eaf-uuid-2cd58286-c578-3132-a324-5c793cd6488d.png" />
4. Click **Settings > Data** inputs, then click **Eventgen**.

   <Image align="center" className="border" border={true} width="700px" src="https://files.readme.io/cd273479af109056b5b7c304466b8f7d7969df70e9a0cf2e128b78429cffd7bf-uuid-e653e165-f8a0-b5d0-f5de-6fae927994ca.png" />
5. Locate the row that includes the source type `dmodinput_eventgen`. Under its status column, click **Enable**.

## Create an index for sample events

You can create a new index for your sample events through the Splunk Web UI or the Splunk Enterprise command line.

### Option 1: Create an index from the Splunk UI

1. In Splunk, click **Settings > Indexes**.
2. On the Indexes page, click **New Index**.
   1. For Index Name, enter `demo`.
   2. For App, select `SA-Eventgen` from the dropdown menu.

      <Image align="center" className="border" border={true} width="500px" src="https://files.readme.io/8ec5af0a215eaba2f9e9c2da067bae904c5ad6c07f4c77a60905fa9f84bc1a11-0ee8ed16bcb14f5b727c77e8709b42206f10b058addb86fed0ab2fda2d70d249-uuid-816e77f1-545c-8c8e-1c3b-0199eae146e6.png" />
3. Click **Save**.

### Option 2: Create an index from Splunk Enterprise Command Line

From the terminal (Mac or Linux), navigate to `$SPLUNK_HOME/bin` and enter the following command:

```text
./splunk add index demo
```

You may be prompted to enter your Splunk username and password.

> 📘 Note:
>
> To use a name other than `demo` for your index, modify the `eventgen.conf` file.

#### View sample Splunk events

1. Go to the Censys ASM web console and click **Search**.
2. Enter the search query `index=demo` to see all sample events.