.. _splunk.es.splunk_notes_module:
**********************
splunk.es.splunk_notes
**********************
**Manage notes for findings, investigations, and response plan tasks**
Version added: 5.1.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module allows for creation, update, and deletion of notes in Splunk Enterprise Security.
- Notes can be created for findings, investigations, or response plan tasks.
- Use ``target_type`` to specify where the note should be attached.
- When ``state=present`` without ``note_id``, a new note is created.
- When ``state=present`` with ``note_id``, the existing note is updated.
- When ``state=absent`` with ``note_id``, the note is deleted.
- Note creation (without ``note_id``) is **NOT idempotent**. Each call creates a new note, even if the content is identical. This is by design, as notes are meant to be additive and multiple notes with the same content may be intentional.
- Note updates (with ``note_id``) **ARE idempotent**. The module compares the existing note's content with the desired state and only updates if there are differences.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
api_app
string
|
Default:
"missioncontrol"
|
The app portion of the Splunk API path.
Override this if your environment uses a different app name.
|
|
api_namespace
string
|
Default:
"servicesNS"
|
The namespace portion of the Splunk API path.
Override this if your environment uses a different namespace.
|
|
api_user
string
|
Default:
"nobody"
|
The user portion of the Splunk API path.
Override this if your environment requires a different user context.
|
|
content
string
|
|
The content/body of the note.
Required when state=present (creating or updating a note).
|
|
finding_ref_id
string
|
|
The reference ID of the finding to attach the note to.
Required when target_type=finding.
Format is typically uuid@@notable@@time{timestamp}.
|
|
investigation_ref_id
string
|
|
The investigation UUID.
Required when target_type=investigation or target_type=response_plan_task.
|
|
note_id
string
|
|
The ID of an existing note.
Required when updating or deleting a note.
When state=present and note_id is provided, the note is updated.
When state=absent, note_id is required to identify the note to delete.
|
|
phase_id
string
|
|
The ID of the phase containing the task.
Required when target_type=response_plan_task.
|
|
response_plan_id
string
|
|
The ID of the applied response plan.
Required when target_type=response_plan_task.
|
|
state
string
|
Choices:
present ←
- absent
|
The desired state of the note.
Use present to create or update a note.
Use absent to delete a note (requires note_id).
|
|
target_type
string
/ required
|
Choices:
- finding
- investigation
- response_plan_task
|
The type of object to attach the note to.
Use finding to attach a note to a security finding.
Use investigation to attach a note to an investigation.
Use response_plan_task to attach a note to a task within an applied response plan.
|
|
task_id
string
|
|
The ID of the task to attach the note to.
Required when target_type=response_plan_task.
|