| 1 |
.. _splunk.es.splunk_adaptive_response_notable_events_module: |
| 2 |
|
| 3 |
|
| 4 |
************************************************* |
| 5 |
splunk.es.splunk_adaptive_response_notable_events |
| 6 |
************************************************* |
| 7 |
|
| 8 |
**Manage Adaptive Responses notable events resource module** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 2.1.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- This module allows for creation, deletion, and modification of Splunk Enterprise Security Notable Event Adaptive Responses that are associated with a correlation search |
| 21 |
- Tested against Splunk Enterprise Server 8.2.3 |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
Parameters |
| 27 |
---------- |
| 28 |
|
| 29 |
.. raw:: html |
| 30 |
|
| 31 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 32 |
<tr> |
| 33 |
<th colspan="3">Parameter</th> |
| 34 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 35 |
<th width="100%">Comments</th> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<td colspan="3"> |
| 39 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 40 |
<b>config</b> |
| 41 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 42 |
<div style="font-size: small"> |
| 43 |
<span style="color: purple">list</span> |
| 44 |
/ <span style="color: purple">elements=dictionary</span> |
| 45 |
</div> |
| 46 |
</td> |
| 47 |
<td> |
| 48 |
</td> |
| 49 |
<td> |
| 50 |
<div>Configure file and directory monitoring on the system</div> |
| 51 |
</td> |
| 52 |
</tr> |
| 53 |
<tr> |
| 54 |
<td class="elbow-placeholder"></td> |
| 55 |
<td colspan="2"> |
| 56 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 57 |
<b>correlation_search_name</b> |
| 58 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 59 |
<div style="font-size: small"> |
| 60 |
<span style="color: purple">string</span> |
| 61 |
/ <span style="color: red">required</span> |
| 62 |
</div> |
| 63 |
</td> |
| 64 |
<td> |
| 65 |
</td> |
| 66 |
<td> |
| 67 |
<div>Name of correlation search to associate this notable event adaptive response with</div> |
| 68 |
</td> |
| 69 |
</tr> |
| 70 |
<tr> |
| 71 |
<td class="elbow-placeholder"></td> |
| 72 |
<td colspan="2"> |
| 73 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 74 |
<b>default_owner</b> |
| 75 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 76 |
<div style="font-size: small"> |
| 77 |
<span style="color: purple">string</span> |
| 78 |
</div> |
| 79 |
</td> |
| 80 |
<td> |
| 81 |
</td> |
| 82 |
<td> |
| 83 |
<div>Default owner of the notable event, if unset it will default to Splunk System Defaults</div> |
| 84 |
</td> |
| 85 |
</tr> |
| 86 |
<tr> |
| 87 |
<td class="elbow-placeholder"></td> |
| 88 |
<td colspan="2"> |
| 89 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 90 |
<b>default_status</b> |
| 91 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 92 |
<div style="font-size: small"> |
| 93 |
<span style="color: purple">string</span> |
| 94 |
</div> |
| 95 |
</td> |
| 96 |
<td> |
| 97 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 98 |
<li>unassigned</li> |
| 99 |
<li>new</li> |
| 100 |
<li>in progress</li> |
| 101 |
<li>pending</li> |
| 102 |
<li>resolved</li> |
| 103 |
<li>closed</li> |
| 104 |
</ul> |
| 105 |
</td> |
| 106 |
<td> |
| 107 |
<div>Default status of the notable event, if unset it will default to Splunk System Defaults</div> |
| 108 |
</td> |
| 109 |
</tr> |
| 110 |
<tr> |
| 111 |
<td class="elbow-placeholder"></td> |
| 112 |
<td colspan="2"> |
| 113 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 114 |
<b>description</b> |
| 115 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 116 |
<div style="font-size: small"> |
| 117 |
<span style="color: purple">string</span> |
| 118 |
</div> |
| 119 |
</td> |
| 120 |
<td> |
| 121 |
</td> |
| 122 |
<td> |
| 123 |
<div>Description of the notable event, this will populate the description field for the web console</div> |
| 124 |
</td> |
| 125 |
</tr> |
| 126 |
<tr> |
| 127 |
<td class="elbow-placeholder"></td> |
| 128 |
<td colspan="2"> |
| 129 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 130 |
<b>drilldown_earliest_offset</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 |
<b>Default:</b><br/><div style="color: blue">"$info_min_time$"</div> |
| 138 |
</td> |
| 139 |
<td> |
| 140 |
<div>Set the amount of time before the triggering event to search for related events. For example, 2h. Use '$info_min_time$' to set the drill-down time to match the earliest time of the search</div> |
| 141 |
</td> |
| 142 |
</tr> |
| 143 |
<tr> |
| 144 |
<td class="elbow-placeholder"></td> |
| 145 |
<td colspan="2"> |
| 146 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 147 |
<b>drilldown_latest_offset</b> |
| 148 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 149 |
<div style="font-size: small"> |
| 150 |
<span style="color: purple">string</span> |
| 151 |
</div> |
| 152 |
</td> |
| 153 |
<td> |
| 154 |
<b>Default:</b><br/><div style="color: blue">"$info_max_time$"</div> |
| 155 |
</td> |
| 156 |
<td> |
| 157 |
<div>Set the amount of time after the triggering event to search for related events. For example, 1m. Use '$info_max_time$' to set the drill-down time to match the latest time of the search</div> |
| 158 |
</td> |
| 159 |
</tr> |
| 160 |
<tr> |
| 161 |
<td class="elbow-placeholder"></td> |
| 162 |
<td colspan="2"> |
| 163 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 164 |
<b>drilldown_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 for drill down search, Supports variable substitution with fields from the matching event.</div> |
| 174 |
</td> |
| 175 |
</tr> |
| 176 |
<tr> |
| 177 |
<td class="elbow-placeholder"></td> |
| 178 |
<td colspan="2"> |
| 179 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 180 |
<b>drilldown_search</b> |
| 181 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 182 |
<div style="font-size: small"> |
| 183 |
<span style="color: purple">string</span> |
| 184 |
</div> |
| 185 |
</td> |
| 186 |
<td> |
| 187 |
</td> |
| 188 |
<td> |
| 189 |
<div>Drill down search, Supports variable substitution with fields from the matching event.</div> |
| 190 |
</td> |
| 191 |
</tr> |
| 192 |
<tr> |
| 193 |
<td class="elbow-placeholder"></td> |
| 194 |
<td colspan="2"> |
| 195 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 196 |
<b>extract_artifacts</b> |
| 197 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 198 |
<div style="font-size: small"> |
| 199 |
<span style="color: purple">dictionary</span> |
| 200 |
</div> |
| 201 |
</td> |
| 202 |
<td> |
| 203 |
</td> |
| 204 |
<td> |
| 205 |
<div>Assets and identities to be extracted</div> |
| 206 |
</td> |
| 207 |
</tr> |
| 208 |
<tr> |
| 209 |
<td class="elbow-placeholder"></td> |
| 210 |
<td class="elbow-placeholder"></td> |
| 211 |
<td colspan="1"> |
| 212 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 213 |
<b>asset</b> |
| 214 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 215 |
<div style="font-size: small"> |
| 216 |
<span style="color: purple">list</span> |
| 217 |
/ <span style="color: purple">elements=string</span> |
| 218 |
</div> |
| 219 |
</td> |
| 220 |
<td> |
| 221 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 222 |
<li>src</li> |
| 223 |
<li>dest</li> |
| 224 |
<li>dvc</li> |
| 225 |
<li>orig_host</li> |
| 226 |
</ul> |
| 227 |
</td> |
| 228 |
<td> |
| 229 |
<div>list of assets to extract, select any one or many of the available choices</div> |
| 230 |
<div>defaults to all available choices</div> |
| 231 |
</td> |
| 232 |
</tr> |
| 233 |
<tr> |
| 234 |
<td class="elbow-placeholder"></td> |
| 235 |
<td class="elbow-placeholder"></td> |
| 236 |
<td colspan="1"> |
| 237 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 238 |
<b>file</b> |
| 239 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 240 |
<div style="font-size: small"> |
| 241 |
<span style="color: purple">list</span> |
| 242 |
/ <span style="color: purple">elements=string</span> |
| 243 |
</div> |
| 244 |
</td> |
| 245 |
<td> |
| 246 |
</td> |
| 247 |
<td> |
| 248 |
<div>list of files to extract</div> |
| 249 |
</td> |
| 250 |
</tr> |
| 251 |
<tr> |
| 252 |
<td class="elbow-placeholder"></td> |
| 253 |
<td class="elbow-placeholder"></td> |
| 254 |
<td colspan="1"> |
| 255 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 256 |
<b>identity</b> |
| 257 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 258 |
<div style="font-size: small"> |
| 259 |
<span style="color: purple">list</span> |
| 260 |
/ <span style="color: purple">elements=string</span> |
| 261 |
</div> |
| 262 |
</td> |
| 263 |
<td> |
| 264 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 265 |
<li>user</li> |
| 266 |
<li>src_user</li> |
| 267 |
<li>src_user_id</li> |
| 268 |
<li>user_id</li> |
| 269 |
<li>src_user_role</li> |
| 270 |
<li>user_role</li> |
| 271 |
<li>vendor_account</li> |
| 272 |
</ul> |
| 273 |
</td> |
| 274 |
<td> |
| 275 |
<div>list of identity fields to extract, select any one or many of the available choices</div> |
| 276 |
<div>defaults to 'user' and 'src_user'</div> |
| 277 |
</td> |
| 278 |
</tr> |
| 279 |
<tr> |
| 280 |
<td class="elbow-placeholder"></td> |
| 281 |
<td class="elbow-placeholder"></td> |
| 282 |
<td colspan="1"> |
| 283 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 284 |
<b>url</b> |
| 285 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 286 |
<div style="font-size: small"> |
| 287 |
<span style="color: purple">list</span> |
| 288 |
/ <span style="color: purple">elements=string</span> |
| 289 |
</div> |
| 290 |
</td> |
| 291 |
<td> |
| 292 |
</td> |
| 293 |
<td> |
| 294 |
<div>list of URLs to extract</div> |
| 295 |
</td> |
| 296 |
</tr> |
| 297 |
|
| 298 |
<tr> |
| 299 |
<td class="elbow-placeholder"></td> |
| 300 |
<td colspan="2"> |
| 301 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 302 |
<b>investigation_profiles</b> |
| 303 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 304 |
<div style="font-size: small"> |
| 305 |
<span style="color: purple">list</span> |
| 306 |
/ <span style="color: purple">elements=string</span> |
| 307 |
</div> |
| 308 |
</td> |
| 309 |
<td> |
| 310 |
</td> |
| 311 |
<td> |
| 312 |
<div>Investigation profile to associate the notable event with.</div> |
| 313 |
</td> |
| 314 |
</tr> |
| 315 |
<tr> |
| 316 |
<td class="elbow-placeholder"></td> |
| 317 |
<td colspan="2"> |
| 318 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 319 |
<b>name</b> |
| 320 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 321 |
<div style="font-size: small"> |
| 322 |
<span style="color: purple">string</span> |
| 323 |
</div> |
| 324 |
</td> |
| 325 |
<td> |
| 326 |
</td> |
| 327 |
<td> |
| 328 |
<div>Name of notable event</div> |
| 329 |
</td> |
| 330 |
</tr> |
| 331 |
<tr> |
| 332 |
<td class="elbow-placeholder"></td> |
| 333 |
<td colspan="2"> |
| 334 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 335 |
<b>next_steps</b> |
| 336 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 337 |
<div style="font-size: small"> |
| 338 |
<span style="color: purple">list</span> |
| 339 |
/ <span style="color: purple">elements=string</span> |
| 340 |
</div> |
| 341 |
</td> |
| 342 |
<td> |
| 343 |
</td> |
| 344 |
<td> |
| 345 |
<div>List of adaptive responses that should be run next</div> |
| 346 |
<div>Describe next steps and response actions that an analyst could take to address this threat.</div> |
| 347 |
</td> |
| 348 |
</tr> |
| 349 |
<tr> |
| 350 |
<td class="elbow-placeholder"></td> |
| 351 |
<td colspan="2"> |
| 352 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 353 |
<b>recommended_actions</b> |
| 354 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 355 |
<div style="font-size: small"> |
| 356 |
<span style="color: purple">list</span> |
| 357 |
/ <span style="color: purple">elements=string</span> |
| 358 |
</div> |
| 359 |
</td> |
| 360 |
<td> |
| 361 |
</td> |
| 362 |
<td> |
| 363 |
<div>List of adaptive responses that are recommended to be run next</div> |
| 364 |
<div>Identifying Recommended Adaptive Responses will highlight those actions for the analyst when looking at the list of response actions available, making it easier to find them among the longer list of available actions.</div> |
| 365 |
</td> |
| 366 |
</tr> |
| 367 |
<tr> |
| 368 |
<td class="elbow-placeholder"></td> |
| 369 |
<td colspan="2"> |
| 370 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 371 |
<b>security_domain</b> |
| 372 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 373 |
<div style="font-size: small"> |
| 374 |
<span style="color: purple">string</span> |
| 375 |
</div> |
| 376 |
</td> |
| 377 |
<td> |
| 378 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 379 |
<li>access</li> |
| 380 |
<li>endpoint</li> |
| 381 |
<li>network</li> |
| 382 |
<li><div style="color: blue"><b>threat</b> ←</div></li> |
| 383 |
<li>identity</li> |
| 384 |
<li>audit</li> |
| 385 |
</ul> |
| 386 |
</td> |
| 387 |
<td> |
| 388 |
<div>Splunk Security Domain</div> |
| 389 |
</td> |
| 390 |
</tr> |
| 391 |
<tr> |
| 392 |
<td class="elbow-placeholder"></td> |
| 393 |
<td colspan="2"> |
| 394 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 395 |
<b>severity</b> |
| 396 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 397 |
<div style="font-size: small"> |
| 398 |
<span style="color: purple">string</span> |
| 399 |
</div> |
| 400 |
</td> |
| 401 |
<td> |
| 402 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 403 |
<li>informational</li> |
| 404 |
<li>low</li> |
| 405 |
<li>medium</li> |
| 406 |
<li><div style="color: blue"><b>high</b> ←</div></li> |
| 407 |
<li>critical</li> |
| 408 |
<li>unknown</li> |
| 409 |
</ul> |
| 410 |
</td> |
| 411 |
<td> |
| 412 |
<div>Severity rating</div> |
| 413 |
</td> |
| 414 |
</tr> |
| 415 |
|
| 416 |
<tr> |
| 417 |
<td colspan="3"> |
| 418 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 419 |
<b>running_config</b> |
| 420 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 421 |
<div style="font-size: small"> |
| 422 |
<span style="color: purple">string</span> |
| 423 |
</div> |
| 424 |
</td> |
| 425 |
<td> |
| 426 |
</td> |
| 427 |
<td> |
| 428 |
<div>The module, by default, will connect to the remote device and retrieve the current running-config to use as a base for comparing against the contents of source. There are times when it is not desirable to have the task get the current running-config for every task in a playbook. The <em>running_config</em> argument allows the implementer to pass in the configuration to use as the base config for comparison. This value of this option should be the output received from device by executing command.</div> |
| 429 |
</td> |
| 430 |
</tr> |
| 431 |
<tr> |
| 432 |
<td colspan="3"> |
| 433 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 434 |
<b>state</b> |
| 435 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 436 |
<div style="font-size: small"> |
| 437 |
<span style="color: purple">string</span> |
| 438 |
</div> |
| 439 |
</td> |
| 440 |
<td> |
| 441 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 442 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 443 |
<li>replaced</li> |
| 444 |
<li>deleted</li> |
| 445 |
<li>gathered</li> |
| 446 |
</ul> |
| 447 |
</td> |
| 448 |
<td> |
| 449 |
<div>The state the configuration should be left in</div> |
| 450 |
</td> |
| 451 |
</tr> |
| 452 |
</table> |
| 453 |
<br/> |
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
Examples |
| 459 |
-------- |
| 460 |
|
| 461 |
.. code-block:: yaml |
| 462 |
|
| 463 |
# Using gathered |
| 464 |
# -------------- |
| 465 |
|
| 466 |
- name: Gather adaptive response notable events config |
| 467 |
splunk.es.splunk_adaptive_response_notable_events: |
| 468 |
config: |
| 469 |
- correlation_search_name: Ansible Test |
| 470 |
- correlation_search_name: Ansible Test 2 |
| 471 |
state: gathered |
| 472 |
|
| 473 |
# RUN output: |
| 474 |
# ----------- |
| 475 |
|
| 476 |
# "gathered": [ |
| 477 |
# { |
| 478 |
# "correlation_search_name": "Ansible Test", |
| 479 |
# "description": "test notable event", |
| 480 |
# "drilldown_earliest_offset": "$info_min_time$", |
| 481 |
# "drilldown_latest_offset": "$info_max_time$", |
| 482 |
# "drilldown_name": "test_drill_name", |
| 483 |
# "drilldown_search": "test_drill", |
| 484 |
# "extract_artifacts": { |
| 485 |
# "asset": [ |
| 486 |
# "src", |
| 487 |
# "dest", |
| 488 |
# "dvc", |
| 489 |
# "orig_host" |
| 490 |
# ], |
| 491 |
# "identity": [ |
| 492 |
# "src_user", |
| 493 |
# "user", |
| 494 |
# "src_user_id", |
| 495 |
# "src_user_role", |
| 496 |
# "user_id", |
| 497 |
# "user_role", |
| 498 |
# "vendor_account" |
| 499 |
# ] |
| 500 |
# }, |
| 501 |
# "investigation_profiles": [ |
| 502 |
# "test profile 1", |
| 503 |
# "test profile 2", |
| 504 |
# "test profile 3" |
| 505 |
# ], |
| 506 |
# "next_steps": [ |
| 507 |
# "makestreams", |
| 508 |
# "nbtstat", |
| 509 |
# "nslookup" |
| 510 |
# ], |
| 511 |
# "name": "ansible_test_notable", |
| 512 |
# "recommended_actions": [ |
| 513 |
# "email", |
| 514 |
# "logevent", |
| 515 |
# "makestreams", |
| 516 |
# "nbtstat" |
| 517 |
# ], |
| 518 |
# "security_domain": "threat", |
| 519 |
# "severity": "high" |
| 520 |
# }, |
| 521 |
# { } # there is no configuration associated with "/var" |
| 522 |
# ] |
| 523 |
|
| 524 |
# Using merged |
| 525 |
# ------------ |
| 526 |
|
| 527 |
- name: Example to add config |
| 528 |
splunk.es.splunk_adaptive_response_notable_events: |
| 529 |
config: |
| 530 |
- correlation_search_name: Ansible Test |
| 531 |
description: test notable event |
| 532 |
drilldown_earliest_offset: $info_min_time$ |
| 533 |
drilldown_latest_offset: $info_max_time$ |
| 534 |
extract_artifacts: |
| 535 |
asset: |
| 536 |
- src |
| 537 |
- dest |
| 538 |
identity: |
| 539 |
- src_user |
| 540 |
- user |
| 541 |
- src_user_id |
| 542 |
next_steps: |
| 543 |
- makestreams |
| 544 |
name: ansible_test_notable |
| 545 |
recommended_actions: |
| 546 |
- email |
| 547 |
- logevent |
| 548 |
security_domain: threat |
| 549 |
severity: high |
| 550 |
state: merged |
| 551 |
|
| 552 |
# RUN output: |
| 553 |
# ----------- |
| 554 |
|
| 555 |
# "after": [ |
| 556 |
# { |
| 557 |
# "correlation_search_name": "Ansible Test", |
| 558 |
# "description": "test notable event", |
| 559 |
# "drilldown_earliest_offset": "$info_min_time$", |
| 560 |
# "drilldown_latest_offset": "$info_max_time$", |
| 561 |
# "drilldown_name": "test_drill_name", |
| 562 |
# "drilldown_search": "test_drill", |
| 563 |
# "extract_artifacts": { |
| 564 |
# "asset": [ |
| 565 |
# "src", |
| 566 |
# "dest", |
| 567 |
# "dvc", |
| 568 |
# "orig_host" |
| 569 |
# ], |
| 570 |
# "identity": [ |
| 571 |
# "src_user", |
| 572 |
# "user", |
| 573 |
# "src_user_id", |
| 574 |
# "src_user_role", |
| 575 |
# "user_id", |
| 576 |
# "user_role", |
| 577 |
# "vendor_account" |
| 578 |
# ] |
| 579 |
# }, |
| 580 |
# "investigation_profiles": [ |
| 581 |
# "test profile 1", |
| 582 |
# "test profile 2", |
| 583 |
# "test profile 3" |
| 584 |
# ], |
| 585 |
# "next_steps": [ |
| 586 |
# "makestreams", |
| 587 |
# "nbtstat", |
| 588 |
# "nslookup" |
| 589 |
# ], |
| 590 |
# "name": "ansible_test_notable", |
| 591 |
# "recommended_actions": [ |
| 592 |
# "email", |
| 593 |
# "logevent", |
| 594 |
# "makestreams", |
| 595 |
# "nbtstat" |
| 596 |
# ], |
| 597 |
# "security_domain": "threat", |
| 598 |
# "severity": "high" |
| 599 |
# } |
| 600 |
# ], |
| 601 |
# "before": [], |
| 602 |
|
| 603 |
# Using replaced |
| 604 |
# -------------- |
| 605 |
|
| 606 |
- name: Example to Replace the config |
| 607 |
splunk.es.splunk_adaptive_response_notable_events: |
| 608 |
config: |
| 609 |
- correlation_search_name: Ansible Test |
| 610 |
description: test notable event |
| 611 |
drilldown_earliest_offset: $info_min_time$ |
| 612 |
drilldown_latest_offset: $info_max_time$ |
| 613 |
extract_artifacts: |
| 614 |
asset: |
| 615 |
- src |
| 616 |
- dest |
| 617 |
identity: |
| 618 |
- src_user |
| 619 |
- user |
| 620 |
- src_user_id |
| 621 |
next_steps: |
| 622 |
- makestreams |
| 623 |
name: ansible_test_notable |
| 624 |
recommended_actions: |
| 625 |
- email |
| 626 |
- logevent |
| 627 |
security_domain: threat |
| 628 |
severity: high |
| 629 |
state: replaced |
| 630 |
|
| 631 |
# RUN output: |
| 632 |
# ----------- |
| 633 |
|
| 634 |
# "after": [ |
| 635 |
# { |
| 636 |
# "correlation_search_name": "Ansible Test", |
| 637 |
# "description": "test notable event", |
| 638 |
# "drilldown_earliest_offset": "$info_min_time$", |
| 639 |
# "drilldown_latest_offset": "$info_max_time$", |
| 640 |
# "extract_artifacts": { |
| 641 |
# "asset": [ |
| 642 |
# "src", |
| 643 |
# "dest" |
| 644 |
# ], |
| 645 |
# "identity": [ |
| 646 |
# "src_user", |
| 647 |
# "user", |
| 648 |
# "src_user_id" |
| 649 |
# ] |
| 650 |
# }, |
| 651 |
# "next_steps": [ |
| 652 |
# "makestreams" |
| 653 |
# ], |
| 654 |
# "name": "ansible_test_notable", |
| 655 |
# "recommended_actions": [ |
| 656 |
# "email", |
| 657 |
# "logevent" |
| 658 |
# ], |
| 659 |
# "security_domain": "threat", |
| 660 |
# "severity": "high" |
| 661 |
# } |
| 662 |
# ], |
| 663 |
# "before": [ |
| 664 |
# { |
| 665 |
# "correlation_search_name": "Ansible Test", |
| 666 |
# "description": "test notable event", |
| 667 |
# "drilldown_earliest_offset": "$info_min_time$", |
| 668 |
# "drilldown_latest_offset": "$info_max_time$", |
| 669 |
# "drilldown_name": "test_drill_name", |
| 670 |
# "drilldown_search": "test_drill", |
| 671 |
# "extract_artifacts": { |
| 672 |
# "asset": [ |
| 673 |
# "src", |
| 674 |
# "dest", |
| 675 |
# "dvc", |
| 676 |
# "orig_host" |
| 677 |
# ], |
| 678 |
# "identity": [ |
| 679 |
# "src_user", |
| 680 |
# "user", |
| 681 |
# "src_user_id", |
| 682 |
# "src_user_role", |
| 683 |
# "user_id", |
| 684 |
# "user_role", |
| 685 |
# "vendor_account" |
| 686 |
# ] |
| 687 |
# }, |
| 688 |
# "investigation_profiles": [ |
| 689 |
# "test profile 1", |
| 690 |
# "test profile 2", |
| 691 |
# "test profile 3" |
| 692 |
# ], |
| 693 |
# "next_steps": [ |
| 694 |
# "makestreams", |
| 695 |
# "nbtstat", |
| 696 |
# "nslookup" |
| 697 |
# ], |
| 698 |
# "name": "ansible_test_notable", |
| 699 |
# "recommended_actions": [ |
| 700 |
# "email", |
| 701 |
# "logevent", |
| 702 |
# "makestreams", |
| 703 |
# "nbtstat" |
| 704 |
# ], |
| 705 |
# "security_domain": "threat", |
| 706 |
# "severity": "high" |
| 707 |
# } |
| 708 |
# ], |
| 709 |
|
| 710 |
# USING DELETED |
| 711 |
# ------------- |
| 712 |
|
| 713 |
- name: Example to remove the config |
| 714 |
splunk.es.splunk_adaptive_response_notable_events: |
| 715 |
config: |
| 716 |
- correlation_search_name: Ansible Test |
| 717 |
state: deleted |
| 718 |
|
| 719 |
# RUN output: |
| 720 |
# ----------- |
| 721 |
|
| 722 |
# "after": [], |
| 723 |
# "before": [ |
| 724 |
# { |
| 725 |
# "correlation_search_name": "Ansible Test", |
| 726 |
# "description": "test notable event", |
| 727 |
# "drilldown_earliest_offset": "$info_min_time$", |
| 728 |
# "drilldown_latest_offset": "$info_max_time$", |
| 729 |
# "drilldown_name": "test_drill_name", |
| 730 |
# "drilldown_search": "test_drill", |
| 731 |
# "extract_artifacts": { |
| 732 |
# "asset": [ |
| 733 |
# "src", |
| 734 |
# "dest", |
| 735 |
# "dvc", |
| 736 |
# "orig_host" |
| 737 |
# ], |
| 738 |
# "identity": [ |
| 739 |
# "src_user", |
| 740 |
# "user", |
| 741 |
# "src_user_id", |
| 742 |
# "src_user_role", |
| 743 |
# "user_id", |
| 744 |
# "user_role", |
| 745 |
# "vendor_account" |
| 746 |
# ] |
| 747 |
# }, |
| 748 |
# "investigation_profiles": [ |
| 749 |
# "test profile 1", |
| 750 |
# "test profile 2", |
| 751 |
# "test profile 3" |
| 752 |
# ], |
| 753 |
# "next_steps": [ |
| 754 |
# "makestreams", |
| 755 |
# "nbtstat", |
| 756 |
# "nslookup" |
| 757 |
# ], |
| 758 |
# "name": "ansible_test_notable", |
| 759 |
# "recommended_actions": [ |
| 760 |
# "email", |
| 761 |
# "logevent", |
| 762 |
# "makestreams", |
| 763 |
# "nbtstat" |
| 764 |
# ], |
| 765 |
# "security_domain": "threat", |
| 766 |
# "severity": "high" |
| 767 |
# } |
| 768 |
# ] |
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
Return Values |
| 773 |
------------- |
| 774 |
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: |
| 775 |
|
| 776 |
.. raw:: html |
| 777 |
|
| 778 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 779 |
<tr> |
| 780 |
<th colspan="1">Key</th> |
| 781 |
<th>Returned</th> |
| 782 |
<th width="100%">Description</th> |
| 783 |
</tr> |
| 784 |
<tr> |
| 785 |
<td colspan="1"> |
| 786 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 787 |
<b>after</b> |
| 788 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 789 |
<div style="font-size: small"> |
| 790 |
<span style="color: purple">list</span> |
| 791 |
</div> |
| 792 |
</td> |
| 793 |
<td>when changed</td> |
| 794 |
<td> |
| 795 |
<div>The configuration as structured data after module completion.</div> |
| 796 |
<br/> |
| 797 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 798 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format of the parameters above.</div> |
| 799 |
</td> |
| 800 |
</tr> |
| 801 |
<tr> |
| 802 |
<td colspan="1"> |
| 803 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 804 |
<b>before</b> |
| 805 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 806 |
<div style="font-size: small"> |
| 807 |
<span style="color: purple">list</span> |
| 808 |
</div> |
| 809 |
</td> |
| 810 |
<td>always</td> |
| 811 |
<td> |
| 812 |
<div>The configuration as structured data prior to module invocation.</div> |
| 813 |
<br/> |
| 814 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 815 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format of the parameters above.</div> |
| 816 |
</td> |
| 817 |
</tr> |
| 818 |
<tr> |
| 819 |
<td colspan="1"> |
| 820 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 821 |
<b>gathered</b> |
| 822 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 823 |
<div style="font-size: small"> |
| 824 |
<span style="color: purple">dictionary</span> |
| 825 |
</div> |
| 826 |
</td> |
| 827 |
<td>when state is <em>gathered</em></td> |
| 828 |
<td> |
| 829 |
<div>Facts about the network resource gathered from the remote device as structured data.</div> |
| 830 |
<br/> |
| 831 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 832 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">This output will always be in the same format as the module argspec.</div> |
| 833 |
</td> |
| 834 |
</tr> |
| 835 |
</table> |
| 836 |
<br/><br/> |
| 837 |
|
| 838 |
|
| 839 |
Status |
| 840 |
------ |
| 841 |
|
| 842 |
|
| 843 |
Authors |
| 844 |
~~~~~~~ |
| 845 |
|
| 846 |
- Ansible Security Automation Team (@pranav-bhatt) <https://github.com/ansible-security> |