| 1 |
.. _splunk.es.splunk_investigation_info_module: |
| 2 |
|
| 3 |
|
| 4 |
*********************************** |
| 5 |
splunk.es.splunk_investigation_info |
| 6 |
*********************************** |
| 7 |
|
| 8 |
**Gather information about Splunk Enterprise Security Investigations** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 5.1.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module allows for querying information about Splunk Enterprise Security Investigations. |
| 21 |
- Use this module to retrieve investigation configurations without making changes. |
| 22 |
- Query by ``investigation_ref_id`` to fetch a specific investigation. |
| 23 |
- Query by ``name`` to filter investigations by exact name match. |
| 24 |
- Use ``create_time_min`` and ``create_time_max`` to control the time range of returned investigations. |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
Parameters |
| 30 |
---------- |
| 31 |
|
| 32 |
.. raw:: html |
| 33 |
|
| 34 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 35 |
<tr> |
| 36 |
<th colspan="1">Parameter</th> |
| 37 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 38 |
<th width="100%">Comments</th> |
| 39 |
</tr> |
| 40 |
<tr> |
| 41 |
<td colspan="1"> |
| 42 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 43 |
<b>api_app</b> |
| 44 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 45 |
<div style="font-size: small"> |
| 46 |
<span style="color: purple">string</span> |
| 47 |
</div> |
| 48 |
</td> |
| 49 |
<td> |
| 50 |
<b>Default:</b><br/><div style="color: blue">"missioncontrol"</div> |
| 51 |
</td> |
| 52 |
<td> |
| 53 |
<div>The app portion of the Splunk API path for the investigations endpoint.</div> |
| 54 |
<div>Override this if your environment uses a different app name.</div> |
| 55 |
</td> |
| 56 |
</tr> |
| 57 |
<tr> |
| 58 |
<td colspan="1"> |
| 59 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 60 |
<b>api_namespace</b> |
| 61 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 62 |
<div style="font-size: small"> |
| 63 |
<span style="color: purple">string</span> |
| 64 |
</div> |
| 65 |
</td> |
| 66 |
<td> |
| 67 |
<b>Default:</b><br/><div style="color: blue">"servicesNS"</div> |
| 68 |
</td> |
| 69 |
<td> |
| 70 |
<div>The namespace portion of the Splunk API path.</div> |
| 71 |
<div>Override this if your environment uses a different namespace.</div> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
<tr> |
| 75 |
<td colspan="1"> |
| 76 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 77 |
<b>api_user</b> |
| 78 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 79 |
<div style="font-size: small"> |
| 80 |
<span style="color: purple">string</span> |
| 81 |
</div> |
| 82 |
</td> |
| 83 |
<td> |
| 84 |
<b>Default:</b><br/><div style="color: blue">"nobody"</div> |
| 85 |
</td> |
| 86 |
<td> |
| 87 |
<div>The user portion of the Splunk API path.</div> |
| 88 |
<div>Override this if your environment requires a different user context.</div> |
| 89 |
</td> |
| 90 |
</tr> |
| 91 |
<tr> |
| 92 |
<td colspan="1"> |
| 93 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 94 |
<b>create_time_max</b> |
| 95 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 96 |
<div style="font-size: small"> |
| 97 |
<span style="color: purple">string</span> |
| 98 |
</div> |
| 99 |
</td> |
| 100 |
<td> |
| 101 |
</td> |
| 102 |
<td> |
| 103 |
<div>The maximum time during which investigations were created.</div> |
| 104 |
<div>All investigations returned have a creation time less than or equal to this value.</div> |
| 105 |
<div>Accepts relative time (e.g. <code>-30m</code>, <code>now</code>), epoch time, or ISO 8601 time.</div> |
| 106 |
<div>If not provided, no maximum time filter is applied.</div> |
| 107 |
</td> |
| 108 |
</tr> |
| 109 |
<tr> |
| 110 |
<td colspan="1"> |
| 111 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 112 |
<b>create_time_min</b> |
| 113 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 114 |
<div style="font-size: small"> |
| 115 |
<span style="color: purple">string</span> |
| 116 |
</div> |
| 117 |
</td> |
| 118 |
<td> |
| 119 |
</td> |
| 120 |
<td> |
| 121 |
<div>The minimum time during which investigations were created.</div> |
| 122 |
<div>All investigations returned have a creation time greater than or equal to this value.</div> |
| 123 |
<div>Accepts relative time (e.g. <code>-30m</code>, <code>-7d</code>, <code>-1w</code>), epoch time, or ISO 8601 time.</div> |
| 124 |
<div>If not provided, no minimum time filter is applied.</div> |
| 125 |
</td> |
| 126 |
</tr> |
| 127 |
<tr> |
| 128 |
<td colspan="1"> |
| 129 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 130 |
<b>investigation_ref_id</b> |
| 131 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 132 |
<div style="font-size: small"> |
| 133 |
<span style="color: purple">string</span> |
| 134 |
</div> |
| 135 |
</td> |
| 136 |
<td> |
| 137 |
</td> |
| 138 |
<td> |
| 139 |
<div>Reference ID (investigation ID) to query a specific investigation.</div> |
| 140 |
<div>If specified, returns only the investigation with this ID.</div> |
| 141 |
<div>Takes precedence over <code>name</code> if both are provided.</div> |
| 142 |
</td> |
| 143 |
</tr> |
| 144 |
<tr> |
| 145 |
<td colspan="1"> |
| 146 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 147 |
<b>limit</b> |
| 148 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 149 |
<div style="font-size: small"> |
| 150 |
<span style="color: purple">integer</span> |
| 151 |
</div> |
| 152 |
</td> |
| 153 |
<td> |
| 154 |
</td> |
| 155 |
<td> |
| 156 |
<div>Maximum number of investigations to return.</div> |
| 157 |
<div>If not specified, all matching investigations are returned.</div> |
| 158 |
<div>Use this to limit large result sets.</div> |
| 159 |
</td> |
| 160 |
</tr> |
| 161 |
<tr> |
| 162 |
<td colspan="1"> |
| 163 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 164 |
<b>name</b> |
| 165 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 166 |
<div style="font-size: small"> |
| 167 |
<span style="color: purple">string</span> |
| 168 |
</div> |
| 169 |
</td> |
| 170 |
<td> |
| 171 |
</td> |
| 172 |
<td> |
| 173 |
<div>Name to filter investigations.</div> |
| 174 |
<div>Returns all investigations with an exact name match.</div> |
| 175 |
<div>Ignored if <code>investigation_ref_id</code> is provided.</div> |
| 176 |
<div>The <code>create_time_min</code> and <code>create_time_max</code> time filters still apply when querying by name.</div> |
| 177 |
</td> |
| 178 |
</tr> |
| 179 |
</table> |
| 180 |
<br/> |
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
Examples |
| 186 |
-------- |
| 187 |
|
| 188 |
.. code-block:: yaml |
| 189 |
|
| 190 |
- name: Query specific investigation by ref_id |
| 191 |
splunk.es.splunk_investigation_info: |
| 192 |
investigation_ref_id: "abc-123-def-456" |
| 193 |
register: result |
| 194 |
|
| 195 |
- name: Display the investigation info |
| 196 |
debug: |
| 197 |
var: result.investigations |
| 198 |
|
| 199 |
- name: Query investigations by name |
| 200 |
splunk.es.splunk_investigation_info: |
| 201 |
name: "Security Incident 2026-01" |
| 202 |
register: result |
| 203 |
|
| 204 |
- name: Query investigations by name within a time range |
| 205 |
splunk.es.splunk_investigation_info: |
| 206 |
name: "Security Incident 2026-01" |
| 207 |
create_time_min: "-7d" |
| 208 |
create_time_max: "now" |
| 209 |
register: result |
| 210 |
|
| 211 |
- name: Display investigations with matching name |
| 212 |
debug: |
| 213 |
var: result.investigations |
| 214 |
|
| 215 |
- name: Query all investigations |
| 216 |
splunk.es.splunk_investigation_info: |
| 217 |
register: all_investigations |
| 218 |
|
| 219 |
- name: Display all investigations |
| 220 |
debug: |
| 221 |
var: all_investigations.investigations |
| 222 |
|
| 223 |
- name: Query investigations created in the last 7 days |
| 224 |
splunk.es.splunk_investigation_info: |
| 225 |
create_time_min: "-7d" |
| 226 |
register: recent_investigations |
| 227 |
|
| 228 |
- name: Query investigations created in the last 30 days |
| 229 |
splunk.es.splunk_investigation_info: |
| 230 |
create_time_min: "-30d" |
| 231 |
register: all_investigations |
| 232 |
|
| 233 |
- name: Query investigations with a limit on results |
| 234 |
splunk.es.splunk_investigation_info: |
| 235 |
create_time_min: "-7d" |
| 236 |
limit: 50 |
| 237 |
register: limited_investigations |
| 238 |
|
| 239 |
- name: Query investigations from a specific time range (ISO 8601) |
| 240 |
splunk.es.splunk_investigation_info: |
| 241 |
create_time_min: "2026-01-01T00:00:00" |
| 242 |
create_time_max: "2026-01-07T23:59:59" |
| 243 |
register: all_investigations |
| 244 |
|
| 245 |
- name: Query investigations from a specific time range (epoch) |
| 246 |
splunk.es.splunk_investigation_info: |
| 247 |
create_time_min: "1676497520" |
| 248 |
create_time_max: "1676583920" |
| 249 |
register: all_investigations |
| 250 |
|
| 251 |
# Query investigations with custom API path (for non-standard environments) |
| 252 |
- name: Query investigations with custom API path |
| 253 |
splunk.es.splunk_investigation_info: |
| 254 |
create_time_min: "-7d" |
| 255 |
api_namespace: "{{ es_namespace | default('servicesNS') }}" |
| 256 |
api_user: "{{ es_user | default('nobody') }}" |
| 257 |
api_app: "{{ es_app | default('missioncontrol') }}" |
| 258 |
register: custom_investigations |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
Return Values |
| 263 |
------------- |
| 264 |
Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module: |
| 265 |
|
| 266 |
.. raw:: html |
| 267 |
|
| 268 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 269 |
<tr> |
| 270 |
<th colspan="2">Key</th> |
| 271 |
<th>Returned</th> |
| 272 |
<th width="100%">Description</th> |
| 273 |
</tr> |
| 274 |
<tr> |
| 275 |
<td colspan="2"> |
| 276 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 277 |
<b>investigations</b> |
| 278 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 279 |
<div style="font-size: small"> |
| 280 |
<span style="color: purple">list</span> |
| 281 |
/ <span style="color: purple">elements=dictionary</span> |
| 282 |
</div> |
| 283 |
</td> |
| 284 |
<td>always</td> |
| 285 |
<td> |
| 286 |
<div>List of investigations matching the query</div> |
| 287 |
<br/> |
| 288 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 289 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[{'investigation_ref_id': 'abc-123-def-456', 'name': 'Security Incident 2026-01', 'description': 'Investigation into suspicious login activity', 'status': 'new', 'disposition': 'undetermined', 'owner': 'admin', 'urgency': 'high', 'sensitivity': 'amber', 'finding_ids': ['A265ED94-AE9E-428C-91D2-64BB956EB7CB@@notable@@62eaebb8c0dd2574fc0b3503a9586cd9']}]</div> |
| 290 |
</td> |
| 291 |
</tr> |
| 292 |
<tr> |
| 293 |
<td class="elbow-placeholder"> </td> |
| 294 |
<td colspan="1"> |
| 295 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 296 |
<b>description</b> |
| 297 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 298 |
<div style="font-size: small"> |
| 299 |
<span style="color: purple">string</span> |
| 300 |
</div> |
| 301 |
</td> |
| 302 |
<td></td> |
| 303 |
<td> |
| 304 |
<div>Description of the investigation</div> |
| 305 |
<br/> |
| 306 |
</td> |
| 307 |
</tr> |
| 308 |
<tr> |
| 309 |
<td class="elbow-placeholder"> </td> |
| 310 |
<td colspan="1"> |
| 311 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 312 |
<b>disposition</b> |
| 313 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 314 |
<div style="font-size: small"> |
| 315 |
<span style="color: purple">string</span> |
| 316 |
</div> |
| 317 |
</td> |
| 318 |
<td></td> |
| 319 |
<td> |
| 320 |
<div>Disposition of the investigation</div> |
| 321 |
<br/> |
| 322 |
</td> |
| 323 |
</tr> |
| 324 |
<tr> |
| 325 |
<td class="elbow-placeholder"> </td> |
| 326 |
<td colspan="1"> |
| 327 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 328 |
<b>finding_ids</b> |
| 329 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 330 |
<div style="font-size: small"> |
| 331 |
<span style="color: purple">list</span> |
| 332 |
/ <span style="color: purple">elements=string</span> |
| 333 |
</div> |
| 334 |
</td> |
| 335 |
<td></td> |
| 336 |
<td> |
| 337 |
<div>List of finding IDs attached to the investigation</div> |
| 338 |
<br/> |
| 339 |
</td> |
| 340 |
</tr> |
| 341 |
<tr> |
| 342 |
<td class="elbow-placeholder"> </td> |
| 343 |
<td colspan="1"> |
| 344 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 345 |
<b>investigation_ref_id</b> |
| 346 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 347 |
<div style="font-size: small"> |
| 348 |
<span style="color: purple">string</span> |
| 349 |
</div> |
| 350 |
</td> |
| 351 |
<td></td> |
| 352 |
<td> |
| 353 |
<div>The unique reference ID of the investigation</div> |
| 354 |
<br/> |
| 355 |
</td> |
| 356 |
</tr> |
| 357 |
<tr> |
| 358 |
<td class="elbow-placeholder"> </td> |
| 359 |
<td colspan="1"> |
| 360 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 361 |
<b>name</b> |
| 362 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 363 |
<div style="font-size: small"> |
| 364 |
<span style="color: purple">string</span> |
| 365 |
</div> |
| 366 |
</td> |
| 367 |
<td></td> |
| 368 |
<td> |
| 369 |
<div>Name of the investigation</div> |
| 370 |
<br/> |
| 371 |
</td> |
| 372 |
</tr> |
| 373 |
<tr> |
| 374 |
<td class="elbow-placeholder"> </td> |
| 375 |
<td colspan="1"> |
| 376 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 377 |
<b>owner</b> |
| 378 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 379 |
<div style="font-size: small"> |
| 380 |
<span style="color: purple">string</span> |
| 381 |
</div> |
| 382 |
</td> |
| 383 |
<td></td> |
| 384 |
<td> |
| 385 |
<div>Owner of the investigation</div> |
| 386 |
<br/> |
| 387 |
</td> |
| 388 |
</tr> |
| 389 |
<tr> |
| 390 |
<td class="elbow-placeholder"> </td> |
| 391 |
<td colspan="1"> |
| 392 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 393 |
<b>sensitivity</b> |
| 394 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 395 |
<div style="font-size: small"> |
| 396 |
<span style="color: purple">string</span> |
| 397 |
</div> |
| 398 |
</td> |
| 399 |
<td></td> |
| 400 |
<td> |
| 401 |
<div>Sensitivity level of the investigation</div> |
| 402 |
<br/> |
| 403 |
</td> |
| 404 |
</tr> |
| 405 |
<tr> |
| 406 |
<td class="elbow-placeholder"> </td> |
| 407 |
<td colspan="1"> |
| 408 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 409 |
<b>status</b> |
| 410 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 411 |
<div style="font-size: small"> |
| 412 |
<span style="color: purple">string</span> |
| 413 |
</div> |
| 414 |
</td> |
| 415 |
<td></td> |
| 416 |
<td> |
| 417 |
<div>Status of the investigation</div> |
| 418 |
<br/> |
| 419 |
</td> |
| 420 |
</tr> |
| 421 |
<tr> |
| 422 |
<td class="elbow-placeholder"> </td> |
| 423 |
<td colspan="1"> |
| 424 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 425 |
<b>urgency</b> |
| 426 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 427 |
<div style="font-size: small"> |
| 428 |
<span style="color: purple">string</span> |
| 429 |
</div> |
| 430 |
</td> |
| 431 |
<td></td> |
| 432 |
<td> |
| 433 |
<div>Urgency level of the investigation</div> |
| 434 |
<br/> |
| 435 |
</td> |
| 436 |
</tr> |
| 437 |
|
| 438 |
</table> |
| 439 |
<br/><br/> |
| 440 |
|
| 441 |
|
| 442 |
Status |
| 443 |
------ |
| 444 |
|
| 445 |
|
| 446 |
Authors |
| 447 |
~~~~~~~ |
| 448 |
|
| 449 |
- Ron Gershburg (@rgershbu) |