SplunkAddNote
Use this script to add a note with a tag (the "Note tag to Splunk" defined in the instance configuration) as an entry in Cortex XSOAR, which will then be mirrored as a note to a Splunk finding. This script should be run within an incident.
python · Splunk
Details
| ID | SplunkAddNote |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
README
Use this script to add a note with a tag (the “Note tag to Splunk” defined in the instance configuration) as an entry in Cortex XSOAR, which will then be mirrored as a note to a Splunk finding. This script should be run within an incident.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| note | Note to be added to the Splunk finding. |
| tag | The note tag. Use the note entry tag (defined in your instance configuration) to mirror the note to splunk. |
Outputs
There are no outputs for this script.
def test_add_splunk_note_as_war_room_note(): """Test if the correct arguments are given to the CommandResults object when adding a note as a war room note. """ from SplunkAddNote import add_note result = add_note({"note": "New note", "tags": "note tag to splunk"}) assert result.readable_output == "New note" assert result.tags == ["note tag to splunk"] assert result.mark_as_note