Debian Codegraph @

ansible_collections/splunk/es/docs/splunk.es.splunk_correlation_searches_module.rst

raw
1 .. _splunk.es.splunk_correlation_searches_module:
2
3
4 *************************************
5 splunk.es.splunk_correlation_searches
6 *************************************
7
8 **Splunk Enterprise Security Correlation searches 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 correlation searches
21 - Tested against Splunk Enterprise Server v8.2.3 with Splunk Enterprise Security v7.0.1 installed on it.
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="4">Parameter</th>
34 <th>Choices/<font color="blue">Defaults</font></th>
35 <th width="100%">Comments</th>
36 </tr>
37 <tr>
38 <td colspan="4">
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="3">
56 <div class="ansibleOptionAnchor" id="parameter-"></div>
57 <b>annotations</b>
58 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
59 <div style="font-size: small">
60 <span style="color: purple">dictionary</span>
61 </div>
62 </td>
63 <td>
64 </td>
65 <td>
66 <div>Add context from industry standard cyber security mappings in Splunk Enterprise Security or custom annotations</div>
67 </td>
68 </tr>
69 <tr>
70 <td class="elbow-placeholder"></td>
71 <td class="elbow-placeholder"></td>
72 <td colspan="2">
73 <div class="ansibleOptionAnchor" id="parameter-"></div>
74 <b>cis20</b>
75 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
76 <div style="font-size: small">
77 <span style="color: purple">list</span>
78 / <span style="color: purple">elements=string</span>
79 </div>
80 </td>
81 <td>
82 </td>
83 <td>
84 <div>Specify CIS20 annotations</div>
85 </td>
86 </tr>
87 <tr>
88 <td class="elbow-placeholder"></td>
89 <td class="elbow-placeholder"></td>
90 <td colspan="2">
91 <div class="ansibleOptionAnchor" id="parameter-"></div>
92 <b>custom</b>
93 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
94 <div style="font-size: small">
95 <span style="color: purple">list</span>
96 / <span style="color: purple">elements=dictionary</span>
97 </div>
98 </td>
99 <td>
100 </td>
101 <td>
102 <div>Specify custom framework and custom annotations</div>
103 </td>
104 </tr>
105 <tr>
106 <td class="elbow-placeholder"></td>
107 <td class="elbow-placeholder"></td>
108 <td class="elbow-placeholder"></td>
109 <td colspan="1">
110 <div class="ansibleOptionAnchor" id="parameter-"></div>
111 <b>custom_annotations</b>
112 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
113 <div style="font-size: small">
114 <span style="color: purple">list</span>
115 / <span style="color: purple">elements=string</span>
116 </div>
117 </td>
118 <td>
119 </td>
120 <td>
121 <div>Specify annotations associated with custom framework</div>
122 </td>
123 </tr>
124 <tr>
125 <td class="elbow-placeholder"></td>
126 <td class="elbow-placeholder"></td>
127 <td class="elbow-placeholder"></td>
128 <td colspan="1">
129 <div class="ansibleOptionAnchor" id="parameter-"></div>
130 <b>framework</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>Specify annotation framework</div>
140 </td>
141 </tr>
142
143 <tr>
144 <td class="elbow-placeholder"></td>
145 <td class="elbow-placeholder"></td>
146 <td colspan="2">
147 <div class="ansibleOptionAnchor" id="parameter-"></div>
148 <b>kill_chain_phases</b>
149 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
150 <div style="font-size: small">
151 <span style="color: purple">list</span>
152 / <span style="color: purple">elements=string</span>
153 </div>
154 </td>
155 <td>
156 </td>
157 <td>
158 <div>Specify Kill 10 annotations</div>
159 </td>
160 </tr>
161 <tr>
162 <td class="elbow-placeholder"></td>
163 <td class="elbow-placeholder"></td>
164 <td colspan="2">
165 <div class="ansibleOptionAnchor" id="parameter-"></div>
166 <b>mitre_attack</b>
167 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
168 <div style="font-size: small">
169 <span style="color: purple">list</span>
170 / <span style="color: purple">elements=string</span>
171 </div>
172 </td>
173 <td>
174 </td>
175 <td>
176 <div>Specify MITRE ATTACK annotations</div>
177 </td>
178 </tr>
179 <tr>
180 <td class="elbow-placeholder"></td>
181 <td class="elbow-placeholder"></td>
182 <td colspan="2">
183 <div class="ansibleOptionAnchor" id="parameter-"></div>
184 <b>nist</b>
185 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
186 <div style="font-size: small">
187 <span style="color: purple">list</span>
188 / <span style="color: purple">elements=string</span>
189 </div>
190 </td>
191 <td>
192 </td>
193 <td>
194 <div>Specify NIST annotations</div>
195 </td>
196 </tr>
197
198 <tr>
199 <td class="elbow-placeholder"></td>
200 <td colspan="3">
201 <div class="ansibleOptionAnchor" id="parameter-"></div>
202 <b>app</b>
203 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
204 <div style="font-size: small">
205 <span style="color: purple">string</span>
206 </div>
207 </td>
208 <td>
209 <b>Default:</b><br/><div style="color: blue">"SplunkEnterpriseSecuritySuite"</div>
210 </td>
211 <td>
212 <div>Splunk app to associate the correlation seach with</div>
213 </td>
214 </tr>
215 <tr>
216 <td class="elbow-placeholder"></td>
217 <td colspan="3">
218 <div class="ansibleOptionAnchor" id="parameter-"></div>
219 <b>cron_schedule</b>
220 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
221 <div style="font-size: small">
222 <span style="color: purple">string</span>
223 </div>
224 </td>
225 <td>
226 <b>Default:</b><br/><div style="color: blue">"*/5 * * * *"</div>
227 </td>
228 <td>
229 <div>Enter a cron-style schedule.</div>
230 <div>For example <code>&#x27;*/5 * * * *&#x27;</code> (every 5 minutes) or <code>&#x27;0 21 * * *&#x27;</code> (every day at 9 PM).</div>
231 <div>Real-time searches use a default schedule of <code>&#x27;*/5 * * * *&#x27;</code>.</div>
232 </td>
233 </tr>
234 <tr>
235 <td class="elbow-placeholder"></td>
236 <td colspan="3">
237 <div class="ansibleOptionAnchor" id="parameter-"></div>
238 <b>description</b>
239 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
240 <div style="font-size: small">
241 <span style="color: purple">string</span>
242 </div>
243 </td>
244 <td>
245 </td>
246 <td>
247 <div>Description of the coorelation search, this will populate the description field for the web console</div>
248 </td>
249 </tr>
250 <tr>
251 <td class="elbow-placeholder"></td>
252 <td colspan="3">
253 <div class="ansibleOptionAnchor" id="parameter-"></div>
254 <b>disabled</b>
255 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
256 <div style="font-size: small">
257 <span style="color: purple">boolean</span>
258 </div>
259 </td>
260 <td>
261 <ul style="margin: 0; padding: 0"><b>Choices:</b>
262 <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
263 <li>yes</li>
264 </ul>
265 </td>
266 <td>
267 <div>Disable correlation search</div>
268 </td>
269 </tr>
270 <tr>
271 <td class="elbow-placeholder"></td>
272 <td colspan="3">
273 <div class="ansibleOptionAnchor" id="parameter-"></div>
274 <b>name</b>
275 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
276 <div style="font-size: small">
277 <span style="color: purple">string</span>
278 / <span style="color: red">required</span>
279 </div>
280 </td>
281 <td>
282 </td>
283 <td>
284 <div>Name of correlation search</div>
285 </td>
286 </tr>
287 <tr>
288 <td class="elbow-placeholder"></td>
289 <td colspan="3">
290 <div class="ansibleOptionAnchor" id="parameter-"></div>
291 <b>schedule_priority</b>
292 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
293 <div style="font-size: small">
294 <span style="color: purple">string</span>
295 </div>
296 </td>
297 <td>
298 <ul style="margin: 0; padding: 0"><b>Choices:</b>
299 <li><div style="color: blue"><b>default</b>&nbsp;&larr;</div></li>
300 <li>higher</li>
301 <li>highest</li>
302 </ul>
303 </td>
304 <td>
305 <div>Raise the scheduling priority of a report. Set to &quot;Higher&quot; to prioritize it above other searches of the same scheduling mode, or &quot;Highest&quot; to prioritize it above other searches regardless of mode. Use with discretion.</div>
306 </td>
307 </tr>
308 <tr>
309 <td class="elbow-placeholder"></td>
310 <td colspan="3">
311 <div class="ansibleOptionAnchor" id="parameter-"></div>
312 <b>schedule_window</b>
313 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
314 <div style="font-size: small">
315 <span style="color: purple">string</span>
316 </div>
317 </td>
318 <td>
319 <b>Default:</b><br/><div style="color: blue">"0"</div>
320 </td>
321 <td>
322 <div>Let report run at any time within a window that opens at its scheduled run time, to improve efficiency when there are many concurrently scheduled reports. The &quot;auto&quot; setting automatically determines the best window width for the report.</div>
323 </td>
324 </tr>
325 <tr>
326 <td class="elbow-placeholder"></td>
327 <td colspan="3">
328 <div class="ansibleOptionAnchor" id="parameter-"></div>
329 <b>scheduling</b>
330 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
331 <div style="font-size: small">
332 <span style="color: purple">string</span>
333 </div>
334 </td>
335 <td>
336 <ul style="margin: 0; padding: 0"><b>Choices:</b>
337 <li><div style="color: blue"><b>realtime</b>&nbsp;&larr;</div></li>
338 <li>continuous</li>
339 </ul>
340 </td>
341 <td>
342 <div>Controls the way the scheduler computes the next execution time of a scheduled search.</div>
343 <div>Learn more: https://docs.splunk.com/Documentation/Splunk/7.2.3/Report/Configurethepriorityofscheduledreports#Real-time_scheduling_and_continuous_scheduling</div>
344 </td>
345 </tr>
346 <tr>
347 <td class="elbow-placeholder"></td>
348 <td colspan="3">
349 <div class="ansibleOptionAnchor" id="parameter-"></div>
350 <b>search</b>
351 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
352 <div style="font-size: small">
353 <span style="color: purple">string</span>
354 </div>
355 </td>
356 <td>
357 </td>
358 <td>
359 <div>SPL search string</div>
360 </td>
361 </tr>
362 <tr>
363 <td class="elbow-placeholder"></td>
364 <td colspan="3">
365 <div class="ansibleOptionAnchor" id="parameter-"></div>
366 <b>suppress_alerts</b>
367 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
368 <div style="font-size: small">
369 <span style="color: purple">boolean</span>
370 </div>
371 </td>
372 <td>
373 <ul style="margin: 0; padding: 0"><b>Choices:</b>
374 <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
375 <li>yes</li>
376 </ul>
377 </td>
378 <td>
379 <div>To suppress alerts from this correlation search or not</div>
380 </td>
381 </tr>
382 <tr>
383 <td class="elbow-placeholder"></td>
384 <td colspan="3">
385 <div class="ansibleOptionAnchor" id="parameter-"></div>
386 <b>throttle_fields_to_group_by</b>
387 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
388 <div style="font-size: small">
389 <span style="color: purple">list</span>
390 / <span style="color: purple">elements=string</span>
391 </div>
392 </td>
393 <td>
394 </td>
395 <td>
396 <div>Type the fields to consider for matching events for throttling.</div>
397 </td>
398 </tr>
399 <tr>
400 <td class="elbow-placeholder"></td>
401 <td colspan="3">
402 <div class="ansibleOptionAnchor" id="parameter-"></div>
403 <b>throttle_window_duration</b>
404 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
405 <div style="font-size: small">
406 <span style="color: purple">string</span>
407 </div>
408 </td>
409 <td>
410 </td>
411 <td>
412 <div>How much time to ignore other events that match the field values specified in Fields to group by.</div>
413 </td>
414 </tr>
415 <tr>
416 <td class="elbow-placeholder"></td>
417 <td colspan="3">
418 <div class="ansibleOptionAnchor" id="parameter-"></div>
419 <b>time_earliest</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 <b>Default:</b><br/><div style="color: blue">"-24h"</div>
427 </td>
428 <td>
429 <div>Earliest time using relative time modifiers.</div>
430 </td>
431 </tr>
432 <tr>
433 <td class="elbow-placeholder"></td>
434 <td colspan="3">
435 <div class="ansibleOptionAnchor" id="parameter-"></div>
436 <b>time_latest</b>
437 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
438 <div style="font-size: small">
439 <span style="color: purple">string</span>
440 </div>
441 </td>
442 <td>
443 <b>Default:</b><br/><div style="color: blue">"now"</div>
444 </td>
445 <td>
446 <div>Latest time using relative time modifiers.</div>
447 </td>
448 </tr>
449 <tr>
450 <td class="elbow-placeholder"></td>
451 <td colspan="3">
452 <div class="ansibleOptionAnchor" id="parameter-"></div>
453 <b>trigger_alert</b>
454 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
455 <div style="font-size: small">
456 <span style="color: purple">string</span>
457 </div>
458 </td>
459 <td>
460 <ul style="margin: 0; padding: 0"><b>Choices:</b>
461 <li><div style="color: blue"><b>once</b>&nbsp;&larr;</div></li>
462 <li>for each result</li>
463 </ul>
464 </td>
465 <td>
466 <div>Notable response actions and risk response actions are always triggered for each result. Choose whether the trigger is activated once or for each result.</div>
467 </td>
468 </tr>
469 <tr>
470 <td class="elbow-placeholder"></td>
471 <td colspan="3">
472 <div class="ansibleOptionAnchor" id="parameter-"></div>
473 <b>trigger_alert_when</b>
474 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
475 <div style="font-size: small">
476 <span style="color: purple">string</span>
477 </div>
478 </td>
479 <td>
480 <ul style="margin: 0; padding: 0"><b>Choices:</b>
481 <li><div style="color: blue"><b>number of events</b>&nbsp;&larr;</div></li>
482 <li>number of results</li>
483 <li>number of hosts</li>
484 <li>number of sources</li>
485 </ul>
486 </td>
487 <td>
488 <div>Raise the scheduling priority of a report. Set to &quot;Higher&quot; to prioritize it above other searches of the same scheduling mode, or &quot;Highest&quot; to prioritize it above other searches regardless of mode. Use with discretion.</div>
489 </td>
490 </tr>
491 <tr>
492 <td class="elbow-placeholder"></td>
493 <td colspan="3">
494 <div class="ansibleOptionAnchor" id="parameter-"></div>
495 <b>trigger_alert_when_condition</b>
496 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
497 <div style="font-size: small">
498 <span style="color: purple">string</span>
499 </div>
500 </td>
501 <td>
502 <ul style="margin: 0; padding: 0"><b>Choices:</b>
503 <li><div style="color: blue"><b>greater than</b>&nbsp;&larr;</div></li>
504 <li>less than</li>
505 <li>equal to</li>
506 <li>not equal to</li>
507 <li>drops by</li>
508 <li>rises by</li>
509 </ul>
510 </td>
511 <td>
512 <div>Conditional to pass to <code>trigger_alert_when</code></div>
513 </td>
514 </tr>
515 <tr>
516 <td class="elbow-placeholder"></td>
517 <td colspan="3">
518 <div class="ansibleOptionAnchor" id="parameter-"></div>
519 <b>trigger_alert_when_value</b>
520 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
521 <div style="font-size: small">
522 <span style="color: purple">string</span>
523 </div>
524 </td>
525 <td>
526 <b>Default:</b><br/><div style="color: blue">"10"</div>
527 </td>
528 <td>
529 <div>Value to pass to <code>trigger_alert_when</code></div>
530 </td>
531 </tr>
532 <tr>
533 <td class="elbow-placeholder"></td>
534 <td colspan="3">
535 <div class="ansibleOptionAnchor" id="parameter-"></div>
536 <b>ui_dispatch_context</b>
537 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
538 <div style="font-size: small">
539 <span style="color: purple">string</span>
540 </div>
541 </td>
542 <td>
543 </td>
544 <td>
545 <div>Set an app to use for links such as the drill-down search in a notable event or links in an email adaptive response action. If None, uses the Application Context.</div>
546 </td>
547 </tr>
548
549 <tr>
550 <td colspan="4">
551 <div class="ansibleOptionAnchor" id="parameter-"></div>
552 <b>running_config</b>
553 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
554 <div style="font-size: small">
555 <span style="color: purple">string</span>
556 </div>
557 </td>
558 <td>
559 </td>
560 <td>
561 <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>
562 </td>
563 </tr>
564 <tr>
565 <td colspan="4">
566 <div class="ansibleOptionAnchor" id="parameter-"></div>
567 <b>state</b>
568 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
569 <div style="font-size: small">
570 <span style="color: purple">string</span>
571 </div>
572 </td>
573 <td>
574 <ul style="margin: 0; padding: 0"><b>Choices:</b>
575 <li><div style="color: blue"><b>merged</b>&nbsp;&larr;</div></li>
576 <li>replaced</li>
577 <li>deleted</li>
578 <li>gathered</li>
579 </ul>
580 </td>
581 <td>
582 <div>The state the configuration should be left in</div>
583 </td>
584 </tr>
585 </table>
586 <br/>
587
588
589
590
591 Examples
592 --------
593
594 .. code-block:: yaml
595
596 # Using gathered
597 # --------------
598
599 - name: Gather correlation searches config
600 splunk.es.splunk_correlation_searches:
601 config:
602 - name: Ansible Test
603 - name: Ansible Test 2
604 state: gathered
605
606 # RUN output:
607 # -----------
608
609 # "gathered": [
610 # {
611 # "annotations": {
612 # "cis20": [
613 # "test1"
614 # ],
615 # "custom": [
616 # {
617 # "custom_annotations": [
618 # "test5"
619 # ],
620 # "framework": "test_framework"
621 # }
622 # ],
623 # "kill_chain_phases": [
624 # "test3"
625 # ],
626 # "mitre_attack": [
627 # "test2"
628 # ],
629 # "nist": [
630 # "test4"
631 # ]
632 # },
633 # "app": "DA-ESS-EndpointProtection",
634 # "cron_schedule": "*/5 * * * *",
635 # "description": "test description",
636 # "disabled": false,
637 # "name": "Ansible Test",
638 # "schedule_priority": "default",
639 # "schedule_window": "0",
640 # "scheduling": "realtime",
641 # "search": '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
642 # 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
643 # 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
644 # 'n.src" as "src" | where "count">=6',
645 # "suppress_alerts": false,
646 # "throttle_fields_to_group_by": [
647 # "test_field1"
648 # ],
649 # "throttle_window_duration": "5s",
650 # "time_earliest": "-24h",
651 # "time_latest": "now",
652 # "trigger_alert": "once",
653 # "trigger_alert_when": "number of events",
654 # "trigger_alert_when_condition": "greater than",
655 # "trigger_alert_when_value": "10",
656 # "ui_dispatch_context": "SplunkEnterpriseSecuritySuite"
657 # }
658 # ]
659
660 # Using merged
661 # ------------
662
663 - name: Merge and create new correlation searches configuration
664 splunk.es.splunk_correlation_searches:
665 config:
666 - name: Ansible Test
667 disabled: false
668 description: test description
669 app: DA-ESS-EndpointProtection
670 annotations:
671 cis20:
672 - test1
673 mitre_attack:
674 - test2
675 kill_chain_phases:
676 - test3
677 nist:
678 - test4
679 custom:
680 - framework: test_framework
681 custom_annotations:
682 - test5
683 ui_dispatch_context: SplunkEnterpriseSecuritySuite
684 time_earliest: -24h
685 time_latest: now
686 cron_schedule: "*/5 * * * *"
687 scheduling: realtime
688 schedule_window: "0"
689 schedule_priority: default
690 trigger_alert: once
691 trigger_alert_when: number of events
692 trigger_alert_when_condition: greater than
693 trigger_alert_when_value: "10"
694 throttle_window_duration: 5s
695 throttle_fields_to_group_by:
696 - test_field1
697 suppress_alerts: false
698 search: >
699 '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
700 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
701 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
702 'n.src" as "src" | where "count">=6'
703 state: merged
704
705 # RUN output:
706 # -----------
707
708 # "after": [
709 # {
710 # "annotations": {
711 # "cis20": [
712 # "test1"
713 # ],
714 # "custom": [
715 # {
716 # "custom_annotations": [
717 # "test5"
718 # ],
719 # "framework": "test_framework"
720 # }
721 # ],
722 # "kill_chain_phases": [
723 # "test3"
724 # ],
725 # "mitre_attack": [
726 # "test2"
727 # ],
728 # "nist": [
729 # "test4"
730 # ]
731 # },
732 # "app": "DA-ESS-EndpointProtection",
733 # "cron_schedule": "*/5 * * * *",
734 # "description": "test description",
735 # "disabled": false,
736 # "name": "Ansible Test",
737 # "schedule_priority": "default",
738 # "schedule_window": "0",
739 # "scheduling": "realtime",
740 # "search": '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
741 # 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
742 # 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
743 # 'n.src" as "src" | where "count">=6',
744 # "suppress_alerts": false,
745 # "throttle_fields_to_group_by": [
746 # "test_field1"
747 # ],
748 # "throttle_window_duration": "5s",
749 # "time_earliest": "-24h",
750 # "time_latest": "now",
751 # "trigger_alert": "once",
752 # "trigger_alert_when": "number of events",
753 # "trigger_alert_when_condition": "greater than",
754 # "trigger_alert_when_value": "10",
755 # "ui_dispatch_context": "SplunkEnterpriseSecuritySuite"
756 # },
757 # ],
758 # "before": [],
759
760 # Using replaced
761 # --------------
762
763 - name: Replace existing correlation searches configuration
764 splunk.es.splunk_correlation_searches:
765 state: replaced
766 config:
767 - name: Ansible Test
768 disabled: false
769 description: test description
770 app: SplunkEnterpriseSecuritySuite
771 annotations:
772 cis20:
773 - test1
774 - test2
775 mitre_attack:
776 - test3
777 - test4
778 kill_chain_phases:
779 - test5
780 - test6
781 nist:
782 - test7
783 - test8
784 custom:
785 - framework: test_framework2
786 custom_annotations:
787 - test9
788 - test10
789 ui_dispatch_context: SplunkEnterpriseSecuritySuite
790 time_earliest: -24h
791 time_latest: now
792 cron_schedule: "*/5 * * * *"
793 scheduling: continuous
794 schedule_window: auto
795 schedule_priority: default
796 trigger_alert: once
797 trigger_alert_when: number of events
798 trigger_alert_when_condition: greater than
799 trigger_alert_when_value: 10
800 throttle_window_duration: 5s
801 throttle_fields_to_group_by:
802 - test_field1
803 - test_field2
804 suppress_alerts: true
805 search: >
806 '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
807 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
808 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
809 'n.src" as "src" | where "count">=6'
810
811 # RUN output:
812 # -----------
813
814 # "after": [
815 # {
816 # "annotations": {
817 # "cis20": [
818 # "test1",
819 # "test2"
820 # ],
821 # "custom": [
822 # {
823 # "custom_annotations": [
824 # "test9",
825 # "test10"
826 # ],
827 # "framework": "test_framework2"
828 # }
829 # ],
830 # "kill_chain_phases": [
831 # "test5",
832 # "test6"
833 # ],
834 # "mitre_attack": [
835 # "test3",
836 # "test4"
837 # ],
838 # "nist": [
839 # "test7",
840 # "test8"
841 # ]
842 # },
843 # "app": "SplunkEnterpriseSecuritySuite",
844 # "cron_schedule": "*/5 * * * *",
845 # "description": "test description",
846 # "disabled": false,
847 # "name": "Ansible Test",
848 # "schedule_priority": "default",
849 # "schedule_window": "auto",
850 # "scheduling": "continuous",
851 # "search": '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
852 # 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
853 # 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
854 # 'n.src" as "src" | where "count">=6',
855 # "suppress_alerts": true,
856 # "throttle_fields_to_group_by": [
857 # "test_field1",
858 # "test_field2"
859 # ],
860 # "throttle_window_duration": "5s",
861 # "time_earliest": "-24h",
862 # "time_latest": "now",
863 # "trigger_alert": "once",
864 # "trigger_alert_when": "number of events",
865 # "trigger_alert_when_condition": "greater than",
866 # "trigger_alert_when_value": "10",
867 # "ui_dispatch_context": "SplunkEnterpriseSecuritySuite"
868 # }
869 # ],
870 # "before": [
871 # {
872 # "annotations": {
873 # "cis20": [
874 # "test1"
875 # ],
876 # "custom": [
877 # {
878 # "custom_annotations": [
879 # "test5"
880 # ],
881 # "framework": "test_framework"
882 # }
883 # ],
884 # "kill_chain_phases": [
885 # "test3"
886 # ],
887 # "mitre_attack": [
888 # "test2"
889 # ],
890 # "nist": [
891 # "test4"
892 # ]
893 # },
894 # "app": "DA-ESS-EndpointProtection",
895 # "cron_schedule": "*/5 * * * *",
896 # "description": "test description",
897 # "disabled": false,
898 # "name": "Ansible Test",
899 # "schedule_priority": "default",
900 # "schedule_window": "0",
901 # "scheduling": "realtime",
902 # "search": '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
903 # 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
904 # 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
905 # 'n.src" as "src" | where "count">=6',
906 # "suppress_alerts": false,
907 # "throttle_fields_to_group_by": [
908 # "test_field1"
909 # ],
910 # "throttle_window_duration": "5s",
911 # "time_earliest": "-24h",
912 # "time_latest": "now",
913 # "trigger_alert": "once",
914 # "trigger_alert_when": "number of events",
915 # "trigger_alert_when_condition": "greater than",
916 # "trigger_alert_when_value": "10",
917 # "ui_dispatch_context": "SplunkEnterpriseSecuritySuite"
918 # }
919 # ]
920
921 # Using deleted
922 # -------------
923
924 - name: Example to delete the corelation search
925 splunk.es.splunk_correlation_searches:
926 config:
927 - name: Ansible Test
928 state: deleted
929
930 # RUN output:
931 # -----------
932
933 # "after": [],
934 # "before": [
935 # {
936 # "annotations": {
937 # "cis20": [
938 # "test1"
939 # ],
940 # "custom": [
941 # {
942 # "custom_annotations": [
943 # "test5"
944 # ],
945 # "framework": "test_framework"
946 # }
947 # ],
948 # "kill_chain_phases": [
949 # "test3"
950 # ],
951 # "mitre_attack": [
952 # "test2"
953 # ],
954 # "nist": [
955 # "test4"
956 # ]
957 # },
958 # "app": "DA-ESS-EndpointProtection",
959 # "cron_schedule": "*/5 * * * *",
960 # "description": "test description",
961 # "disabled": false,
962 # "name": "Ansible Test",
963 # "schedule_priority": "default",
964 # "schedule_window": "0",
965 # "scheduling": "realtime",
966 # "search": '| tstats summariesonly=true values("Authentication.tag") as "tag",dc("Authentication.user") as "user_count",dc("Authent'
967 # 'ication.dest") as "dest_count",count from datamodel="Authentication"."Authentication" where nodename="Authentication.Fai'
968 # 'led_Authentication" by "Authentication.app","Authentication.src" | rename "Authentication.app" as "app","Authenticatio'
969 # 'n.src" as "src" | where "count">=6',
970 # "suppress_alerts": false,
971 # "throttle_fields_to_group_by": [
972 # "test_field1"
973 # ],
974 # "throttle_window_duration": "5s",
975 # "time_earliest": "-24h",
976 # "time_latest": "now",
977 # "trigger_alert": "once",
978 # "trigger_alert_when": "number of events",
979 # "trigger_alert_when_condition": "greater than",
980 # "trigger_alert_when_value": "10",
981 # "ui_dispatch_context": "SplunkEnterpriseSecuritySuite"
982 # },
983 # ],
984
985
986
987 Return Values
988 -------------
989 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:
990
991 .. raw:: html
992
993 <table border=0 cellpadding=0 class="documentation-table">
994 <tr>
995 <th colspan="1">Key</th>
996 <th>Returned</th>
997 <th width="100%">Description</th>
998 </tr>
999 <tr>
1000 <td colspan="1">
1001 <div class="ansibleOptionAnchor" id="return-"></div>
1002 <b>after</b>
1003 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1004 <div style="font-size: small">
1005 <span style="color: purple">list</span>
1006 </div>
1007 </td>
1008 <td>when changed</td>
1009 <td>
1010 <div>The configuration as structured data after module completion.</div>
1011 <br/>
1012 <div style="font-size: smaller"><b>Sample:</b></div>
1013 <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>
1014 </td>
1015 </tr>
1016 <tr>
1017 <td colspan="1">
1018 <div class="ansibleOptionAnchor" id="return-"></div>
1019 <b>before</b>
1020 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1021 <div style="font-size: small">
1022 <span style="color: purple">list</span>
1023 </div>
1024 </td>
1025 <td>always</td>
1026 <td>
1027 <div>The configuration as structured data prior to module invocation.</div>
1028 <br/>
1029 <div style="font-size: smaller"><b>Sample:</b></div>
1030 <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>
1031 </td>
1032 </tr>
1033 <tr>
1034 <td colspan="1">
1035 <div class="ansibleOptionAnchor" id="return-"></div>
1036 <b>gathered</b>
1037 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
1038 <div style="font-size: small">
1039 <span style="color: purple">dictionary</span>
1040 </div>
1041 </td>
1042 <td>when state is <em>gathered</em></td>
1043 <td>
1044 <div>Facts about the network resource gathered from the remote device as structured data.</div>
1045 <br/>
1046 <div style="font-size: smaller"><b>Sample:</b></div>
1047 <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>
1048 </td>
1049 </tr>
1050 </table>
1051 <br/><br/>
1052
1053
1054 Status
1055 ------
1056
1057
1058 Authors
1059 ~~~~~~~
1060
1061 - Ansible Security Automation Team (@pranav-bhatt) <https://github.com/ansible-security>