| 1 |
.. _splunk.es.splunk_data_inputs_network_module: |
| 2 |
|
| 3 |
|
| 4 |
************************************ |
| 5 |
splunk.es.splunk_data_inputs_network |
| 6 |
************************************ |
| 7 |
|
| 8 |
**Manage Splunk Data Inputs of type TCP or UDP resource module** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 2.1.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- Module that allows to add/update or delete of TCP and UDP Data Inputs in Splunk. |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
Parameters |
| 26 |
---------- |
| 27 |
|
| 28 |
.. raw:: html |
| 29 |
|
| 30 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 31 |
<tr> |
| 32 |
<th colspan="2">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="2"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>config</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">list</span> |
| 43 |
/ <span style="color: purple">elements=dictionary</span> |
| 44 |
</div> |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
</td> |
| 48 |
<td> |
| 49 |
<div>Manage and preview protocol input data.</div> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td class="elbow-placeholder"></td> |
| 54 |
<td colspan="1"> |
| 55 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 56 |
<b>cipher_suite</b> |
| 57 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 58 |
<div style="font-size: small"> |
| 59 |
<span style="color: purple">string</span> |
| 60 |
</div> |
| 61 |
</td> |
| 62 |
<td> |
| 63 |
</td> |
| 64 |
<td> |
| 65 |
<div>Specifies list of acceptable ciphers to use in ssl.</div> |
| 66 |
<div>Only obtained for TCP SSL configuration present on device.</div> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
<tr> |
| 70 |
<td class="elbow-placeholder"></td> |
| 71 |
<td colspan="1"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>connection_host</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">string</span> |
| 77 |
</div> |
| 78 |
</td> |
| 79 |
<td> |
| 80 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 81 |
<li>ip</li> |
| 82 |
<li>dns</li> |
| 83 |
<li>none</li> |
| 84 |
</ul> |
| 85 |
</td> |
| 86 |
<td> |
| 87 |
<div>Set the host for the remote server that is sending data.</div> |
| 88 |
<div><code>ip</code> sets the host to the IP address of the remote server sending data.</div> |
| 89 |
<div><code>dns</code> sets the host to the reverse DNS entry for the IP address of the remote server sending data.</div> |
| 90 |
<div><code>none</code> leaves the host as specified in inputs.conf, which is typically the Splunk system hostname.</div> |
| 91 |
</td> |
| 92 |
</tr> |
| 93 |
<tr> |
| 94 |
<td class="elbow-placeholder"></td> |
| 95 |
<td colspan="1"> |
| 96 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 97 |
<b>datatype</b> |
| 98 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 99 |
<div style="font-size: small"> |
| 100 |
<span style="color: purple">string</span> |
| 101 |
</div> |
| 102 |
</td> |
| 103 |
<td> |
| 104 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 105 |
<li>cooked</li> |
| 106 |
<li>raw</li> |
| 107 |
<li>splunktcptoken</li> |
| 108 |
<li>ssl</li> |
| 109 |
</ul> |
| 110 |
</td> |
| 111 |
<td> |
| 112 |
<div><code>cooked</code> lets one access cooked TCP input information and create new containers for managing cooked data.</div> |
| 113 |
<div><code>raw</code> lets one manage raw tcp inputs from forwarders.</div> |
| 114 |
<div><code>splunktcptoken</code> lets one manage receiver access using tokens.</div> |
| 115 |
<div><code>ssl</code> Provides access to the SSL configuration of a Splunk server. This option does not support states <em>deleted</em> and <em>replaced</em>.</div> |
| 116 |
</td> |
| 117 |
</tr> |
| 118 |
<tr> |
| 119 |
<td class="elbow-placeholder"></td> |
| 120 |
<td colspan="1"> |
| 121 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 122 |
<b>disabled</b> |
| 123 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 124 |
<div style="font-size: small"> |
| 125 |
<span style="color: purple">boolean</span> |
| 126 |
</div> |
| 127 |
</td> |
| 128 |
<td> |
| 129 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 130 |
<li>no</li> |
| 131 |
<li>yes</li> |
| 132 |
</ul> |
| 133 |
</td> |
| 134 |
<td> |
| 135 |
<div>Indicates whether the input is disabled.</div> |
| 136 |
</td> |
| 137 |
</tr> |
| 138 |
<tr> |
| 139 |
<td class="elbow-placeholder"></td> |
| 140 |
<td colspan="1"> |
| 141 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 142 |
<b>host</b> |
| 143 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 144 |
<div style="font-size: small"> |
| 145 |
<span style="color: purple">string</span> |
| 146 |
</div> |
| 147 |
</td> |
| 148 |
<td> |
| 149 |
</td> |
| 150 |
<td> |
| 151 |
<div>Host from which the indexer gets data.</div> |
| 152 |
</td> |
| 153 |
</tr> |
| 154 |
<tr> |
| 155 |
<td class="elbow-placeholder"></td> |
| 156 |
<td colspan="1"> |
| 157 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 158 |
<b>index</b> |
| 159 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 160 |
<div style="font-size: small"> |
| 161 |
<span style="color: purple">string</span> |
| 162 |
</div> |
| 163 |
</td> |
| 164 |
<td> |
| 165 |
</td> |
| 166 |
<td> |
| 167 |
<div>default Index to store generated events.</div> |
| 168 |
</td> |
| 169 |
</tr> |
| 170 |
<tr> |
| 171 |
<td class="elbow-placeholder"></td> |
| 172 |
<td colspan="1"> |
| 173 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 174 |
<b>name</b> |
| 175 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 176 |
<div style="font-size: small"> |
| 177 |
<span style="color: purple">string</span> |
| 178 |
/ <span style="color: red">required</span> |
| 179 |
</div> |
| 180 |
</td> |
| 181 |
<td> |
| 182 |
</td> |
| 183 |
<td> |
| 184 |
<div>The input port which receives raw data.</div> |
| 185 |
</td> |
| 186 |
</tr> |
| 187 |
<tr> |
| 188 |
<td class="elbow-placeholder"></td> |
| 189 |
<td colspan="1"> |
| 190 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 191 |
<b>no_appending_timestamp</b> |
| 192 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 193 |
<div style="font-size: small"> |
| 194 |
<span style="color: purple">boolean</span> |
| 195 |
</div> |
| 196 |
</td> |
| 197 |
<td> |
| 198 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 199 |
<li>no</li> |
| 200 |
<li>yes</li> |
| 201 |
</ul> |
| 202 |
</td> |
| 203 |
<td> |
| 204 |
<div>If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.</div> |
| 205 |
<div>Only for UDP data input configuration.</div> |
| 206 |
</td> |
| 207 |
</tr> |
| 208 |
<tr> |
| 209 |
<td class="elbow-placeholder"></td> |
| 210 |
<td colspan="1"> |
| 211 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 212 |
<b>no_priority_stripping</b> |
| 213 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 214 |
<div style="font-size: small"> |
| 215 |
<span style="color: purple">boolean</span> |
| 216 |
</div> |
| 217 |
</td> |
| 218 |
<td> |
| 219 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 220 |
<li>no</li> |
| 221 |
<li>yes</li> |
| 222 |
</ul> |
| 223 |
</td> |
| 224 |
<td> |
| 225 |
<div>If set to true, Splunk software does not remove the priority field from incoming syslog events.</div> |
| 226 |
<div>Only for UDP data input configuration.</div> |
| 227 |
</td> |
| 228 |
</tr> |
| 229 |
<tr> |
| 230 |
<td class="elbow-placeholder"></td> |
| 231 |
<td colspan="1"> |
| 232 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 233 |
<b>password</b> |
| 234 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 235 |
<div style="font-size: small"> |
| 236 |
<span style="color: purple">string</span> |
| 237 |
</div> |
| 238 |
</td> |
| 239 |
<td> |
| 240 |
</td> |
| 241 |
<td> |
| 242 |
<div>Server certificate password, if any.</div> |
| 243 |
<div>Only for TCP SSL configuration.</div> |
| 244 |
</td> |
| 245 |
</tr> |
| 246 |
<tr> |
| 247 |
<td class="elbow-placeholder"></td> |
| 248 |
<td colspan="1"> |
| 249 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 250 |
<b>protocol</b> |
| 251 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 252 |
<div style="font-size: small"> |
| 253 |
<span style="color: purple">string</span> |
| 254 |
/ <span style="color: red">required</span> |
| 255 |
</div> |
| 256 |
</td> |
| 257 |
<td> |
| 258 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 259 |
<li>tcp</li> |
| 260 |
<li>udp</li> |
| 261 |
</ul> |
| 262 |
</td> |
| 263 |
<td> |
| 264 |
<div>Choose whether to manage TCP or UDP inputs</div> |
| 265 |
</td> |
| 266 |
</tr> |
| 267 |
<tr> |
| 268 |
<td class="elbow-placeholder"></td> |
| 269 |
<td colspan="1"> |
| 270 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 271 |
<b>queue</b> |
| 272 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 273 |
<div style="font-size: small"> |
| 274 |
<span style="color: purple">string</span> |
| 275 |
</div> |
| 276 |
</td> |
| 277 |
<td> |
| 278 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 279 |
<li>parsingQueue</li> |
| 280 |
<li>indexQueue</li> |
| 281 |
</ul> |
| 282 |
</td> |
| 283 |
<td> |
| 284 |
<div>Specifies where the input processor should deposit the events it reads. Defaults to parsingQueue.</div> |
| 285 |
<div>Set queue to parsingQueue to apply props.conf and other parsing rules to your data. For more information about props.conf and rules for timestamping and linebreaking, refer to props.conf and the online documentation at "Monitor files and directories with inputs.conf"</div> |
| 286 |
<div>Set queue to indexQueue to send your data directly into the index.</div> |
| 287 |
<div>Only applicable for "/tcp/raw" and "/udp" APIs</div> |
| 288 |
</td> |
| 289 |
</tr> |
| 290 |
<tr> |
| 291 |
<td class="elbow-placeholder"></td> |
| 292 |
<td colspan="1"> |
| 293 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 294 |
<b>raw_tcp_done_timeout</b> |
| 295 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 296 |
<div style="font-size: small"> |
| 297 |
<span style="color: purple">integer</span> |
| 298 |
</div> |
| 299 |
</td> |
| 300 |
<td> |
| 301 |
</td> |
| 302 |
<td> |
| 303 |
<div>Specifies in seconds the timeout value for adding a Done-key.</div> |
| 304 |
<div>If a connection over the port specified by name remains idle after receiving data for specified number of seconds, it adds a Done-key. This implies the last event is completely received.</div> |
| 305 |
<div>Only for TCP raw input configuration.</div> |
| 306 |
</td> |
| 307 |
</tr> |
| 308 |
<tr> |
| 309 |
<td class="elbow-placeholder"></td> |
| 310 |
<td colspan="1"> |
| 311 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 312 |
<b>require_client_cert</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 |
</td> |
| 320 |
<td> |
| 321 |
<div>Determines whether a client must authenticate.</div> |
| 322 |
<div>Only for TCP SSL configuration.</div> |
| 323 |
</td> |
| 324 |
</tr> |
| 325 |
<tr> |
| 326 |
<td class="elbow-placeholder"></td> |
| 327 |
<td colspan="1"> |
| 328 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 329 |
<b>restrict_to_host</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 |
</td> |
| 337 |
<td> |
| 338 |
<div>Allows for restricting this input to only accept data from the host specified here.</div> |
| 339 |
</td> |
| 340 |
</tr> |
| 341 |
<tr> |
| 342 |
<td class="elbow-placeholder"></td> |
| 343 |
<td colspan="1"> |
| 344 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 345 |
<b>root_ca</b> |
| 346 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 347 |
<div style="font-size: small"> |
| 348 |
<span style="color: purple">string</span> |
| 349 |
</div> |
| 350 |
</td> |
| 351 |
<td> |
| 352 |
</td> |
| 353 |
<td> |
| 354 |
<div>Certificate authority list (root file).</div> |
| 355 |
<div>Only for TCP SSL configuration.</div> |
| 356 |
</td> |
| 357 |
</tr> |
| 358 |
<tr> |
| 359 |
<td class="elbow-placeholder"></td> |
| 360 |
<td colspan="1"> |
| 361 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 362 |
<b>server_cert</b> |
| 363 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 364 |
<div style="font-size: small"> |
| 365 |
<span style="color: purple">string</span> |
| 366 |
</div> |
| 367 |
</td> |
| 368 |
<td> |
| 369 |
</td> |
| 370 |
<td> |
| 371 |
<div>Full path to the server certificate.</div> |
| 372 |
<div>Only for TCP SSL configuration.</div> |
| 373 |
</td> |
| 374 |
</tr> |
| 375 |
<tr> |
| 376 |
<td class="elbow-placeholder"></td> |
| 377 |
<td colspan="1"> |
| 378 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 379 |
<b>source</b> |
| 380 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 381 |
<div style="font-size: small"> |
| 382 |
<span style="color: purple">string</span> |
| 383 |
</div> |
| 384 |
</td> |
| 385 |
<td> |
| 386 |
</td> |
| 387 |
<td> |
| 388 |
<div>Sets the source key/field for events from this input. Defaults to the input file path.</div> |
| 389 |
<div>Sets the source key initial value. The key is used during parsing/indexing, in particular to set the source field during indexing. It is also the source field used at search time. As a convenience, the chosen string is prepended with 'source::'.</div> |
| 390 |
<div>Note that Overriding the source key is generally not recommended. Typically, the input layer provides a more accurate string to aid in problem analysis and investigation, accurately recording the file from which the data was retrieved. Consider use of source types, tagging, and search wildcards before overriding this value.</div> |
| 391 |
</td> |
| 392 |
</tr> |
| 393 |
<tr> |
| 394 |
<td class="elbow-placeholder"></td> |
| 395 |
<td colspan="1"> |
| 396 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 397 |
<b>sourcetype</b> |
| 398 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 399 |
<div style="font-size: small"> |
| 400 |
<span style="color: purple">string</span> |
| 401 |
</div> |
| 402 |
</td> |
| 403 |
<td> |
| 404 |
</td> |
| 405 |
<td> |
| 406 |
<div>Set the source type for events from this input.</div> |
| 407 |
<div>"sourcetype=" is automatically prepended to <string>.</div> |
| 408 |
<div>Defaults to audittrail (if signedaudit=true) or fschange (if signedaudit=false).</div> |
| 409 |
</td> |
| 410 |
</tr> |
| 411 |
<tr> |
| 412 |
<td class="elbow-placeholder"></td> |
| 413 |
<td colspan="1"> |
| 414 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 415 |
<b>ssl</b> |
| 416 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 417 |
<div style="font-size: small"> |
| 418 |
<span style="color: purple">boolean</span> |
| 419 |
</div> |
| 420 |
</td> |
| 421 |
<td> |
| 422 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 423 |
<li>no</li> |
| 424 |
<li>yes</li> |
| 425 |
</ul> |
| 426 |
</td> |
| 427 |
<td> |
| 428 |
<div>Enable or disble ssl for the data stream</div> |
| 429 |
</td> |
| 430 |
</tr> |
| 431 |
<tr> |
| 432 |
<td class="elbow-placeholder"></td> |
| 433 |
<td colspan="1"> |
| 434 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 435 |
<b>token</b> |
| 436 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 437 |
<div style="font-size: small"> |
| 438 |
<span style="color: purple">string</span> |
| 439 |
</div> |
| 440 |
</td> |
| 441 |
<td> |
| 442 |
</td> |
| 443 |
<td> |
| 444 |
<div>Token value to use for SplunkTcpToken. If unspecified, a token is generated automatically.</div> |
| 445 |
</td> |
| 446 |
</tr> |
| 447 |
|
| 448 |
<tr> |
| 449 |
<td colspan="2"> |
| 450 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 451 |
<b>running_config</b> |
| 452 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 453 |
<div style="font-size: small"> |
| 454 |
<span style="color: purple">string</span> |
| 455 |
</div> |
| 456 |
</td> |
| 457 |
<td> |
| 458 |
</td> |
| 459 |
<td> |
| 460 |
<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> |
| 461 |
</td> |
| 462 |
</tr> |
| 463 |
<tr> |
| 464 |
<td colspan="2"> |
| 465 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 466 |
<b>state</b> |
| 467 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 468 |
<div style="font-size: small"> |
| 469 |
<span style="color: purple">string</span> |
| 470 |
</div> |
| 471 |
</td> |
| 472 |
<td> |
| 473 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 474 |
<li><div style="color: blue"><b>merged</b> ←</div></li> |
| 475 |
<li>replaced</li> |
| 476 |
<li>deleted</li> |
| 477 |
<li>gathered</li> |
| 478 |
</ul> |
| 479 |
</td> |
| 480 |
<td> |
| 481 |
<div>The state the configuration should be left in</div> |
| 482 |
</td> |
| 483 |
</tr> |
| 484 |
</table> |
| 485 |
<br/> |
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
Examples |
| 491 |
-------- |
| 492 |
|
| 493 |
.. code-block:: yaml |
| 494 |
|
| 495 |
# Using gathered |
| 496 |
# -------------- |
| 497 |
|
| 498 |
- name: Gathering information about TCP Cooked Inputs |
| 499 |
splunk.es.splunk_data_inputs_network: |
| 500 |
config: |
| 501 |
- protocol: tcp |
| 502 |
datatype: cooked |
| 503 |
state: gathered |
| 504 |
|
| 505 |
# RUN output: |
| 506 |
# ----------- |
| 507 |
|
| 508 |
# "gathered": [ |
| 509 |
# { |
| 510 |
# "connection_host": "ip", |
| 511 |
# "disabled": true, |
| 512 |
# "host": "$decideOnStartup", |
| 513 |
# "index": "default", |
| 514 |
# "name": "8101" |
| 515 |
# }, |
| 516 |
# { |
| 517 |
# "disabled": false, |
| 518 |
# "host": "$decideOnStartup", |
| 519 |
# "index": "default", |
| 520 |
# "name": "9997" |
| 521 |
# }, |
| 522 |
# { |
| 523 |
# "connection_host": "ip", |
| 524 |
# "disabled": true, |
| 525 |
# "host": "$decideOnStartup", |
| 526 |
# "index": "default", |
| 527 |
# "name": "default:8101", |
| 528 |
# "restrict_to_host": "default" |
| 529 |
# } |
| 530 |
# ] |
| 531 |
|
| 532 |
|
| 533 |
- name: Gathering information about TCP Cooked Inputs by Name |
| 534 |
splunk.es.splunk_data_inputs_network: |
| 535 |
config: |
| 536 |
- protocol: tcp |
| 537 |
datatype: cooked |
| 538 |
name: 9997 |
| 539 |
state: gathered |
| 540 |
|
| 541 |
# RUN output: |
| 542 |
# ----------- |
| 543 |
|
| 544 |
# "gathered": [ |
| 545 |
# { |
| 546 |
# "datatype": "cooked", |
| 547 |
# "disabled": false, |
| 548 |
# "host": "$decideOnStartup", |
| 549 |
# "name": "9997", |
| 550 |
# "protocol": "tcp" |
| 551 |
# } |
| 552 |
# ] |
| 553 |
|
| 554 |
|
| 555 |
- name: Gathering information about TCP Raw Inputs |
| 556 |
splunk.es.splunk_data_inputs_network: |
| 557 |
config: |
| 558 |
- protocol: tcp |
| 559 |
datatype: raw |
| 560 |
state: gathered |
| 561 |
|
| 562 |
# RUN output: |
| 563 |
# ----------- |
| 564 |
|
| 565 |
# "gathered": [ |
| 566 |
# { |
| 567 |
# "connection_host": "ip", |
| 568 |
# "disabled": false, |
| 569 |
# "host": "$decideOnStartup", |
| 570 |
# "index": "default", |
| 571 |
# "name": "8099", |
| 572 |
# "queue": "parsingQueue", |
| 573 |
# "raw_tcp_done_timeout": 10 |
| 574 |
# }, |
| 575 |
# { |
| 576 |
# "connection_host": "ip", |
| 577 |
# "disabled": true, |
| 578 |
# "host": "$decideOnStartup", |
| 579 |
# "index": "default", |
| 580 |
# "name": "default:8100", |
| 581 |
# "queue": "parsingQueue", |
| 582 |
# "raw_tcp_done_timeout": 10, |
| 583 |
# "restrict_to_host": "default", |
| 584 |
# "source": "test_source", |
| 585 |
# "sourcetype": "test_source_type" |
| 586 |
# } |
| 587 |
# ] |
| 588 |
|
| 589 |
- name: Gathering information about TCP Raw inputs by Name |
| 590 |
splunk.es.splunk_data_inputs_network: |
| 591 |
config: |
| 592 |
- protocol: tcp |
| 593 |
datatype: raw |
| 594 |
name: 8099 |
| 595 |
state: gathered |
| 596 |
|
| 597 |
# RUN output: |
| 598 |
# ----------- |
| 599 |
|
| 600 |
# "gathered": [ |
| 601 |
# { |
| 602 |
# "connection_host": "ip", |
| 603 |
# "datatype": "raw", |
| 604 |
# "disabled": false, |
| 605 |
# "host": "$decideOnStartup", |
| 606 |
# "index": "default", |
| 607 |
# "name": "8099", |
| 608 |
# "protocol": "tcp", |
| 609 |
# "queue": "parsingQueue", |
| 610 |
# "raw_tcp_done_timeout": 10 |
| 611 |
# } |
| 612 |
# ] |
| 613 |
|
| 614 |
- name: Gathering information about TCP SSL configuration |
| 615 |
splunk.es.splunk_data_inputs_network: |
| 616 |
config: |
| 617 |
- protocol: tcp |
| 618 |
datatype: ssl |
| 619 |
state: gathered |
| 620 |
|
| 621 |
# RUN output: |
| 622 |
# ----------- |
| 623 |
|
| 624 |
# "gathered": [ |
| 625 |
# { |
| 626 |
# "cipher_suite": <cipher-suites>, |
| 627 |
# "disabled": true, |
| 628 |
# "host": "$decideOnStartup", |
| 629 |
# "index": "default", |
| 630 |
# "name": "test_host" |
| 631 |
# } |
| 632 |
# ] |
| 633 |
|
| 634 |
- name: Gathering information about TCP SplunkTcpTokens |
| 635 |
splunk.es.splunk_data_inputs_network: |
| 636 |
config: |
| 637 |
- protocol: tcp |
| 638 |
datatype: splunktcptoken |
| 639 |
state: gathered |
| 640 |
|
| 641 |
# RUN output: |
| 642 |
# ----------- |
| 643 |
|
| 644 |
# "gathered": [ |
| 645 |
# { |
| 646 |
# "disabled": false, |
| 647 |
# "host": "$decideOnStartup", |
| 648 |
# "index": "default", |
| 649 |
# "name": "splunktcptoken://test_token1", |
| 650 |
# "token": <token1> |
| 651 |
# }, |
| 652 |
# { |
| 653 |
# "disabled": false, |
| 654 |
# "host": "$decideOnStartup", |
| 655 |
# "index": "default", |
| 656 |
# "name": "splunktcptoken://test_token2", |
| 657 |
# "token": <token2> |
| 658 |
# } |
| 659 |
# ] |
| 660 |
|
| 661 |
# Using merged |
| 662 |
# ------------ |
| 663 |
|
| 664 |
- name: To add the TCP raw config |
| 665 |
splunk.es.splunk_data_inputs_network: |
| 666 |
config: |
| 667 |
- protocol: tcp |
| 668 |
datatype: raw |
| 669 |
name: 8100 |
| 670 |
connection_host: ip |
| 671 |
disabled: true |
| 672 |
raw_tcp_done_timeout: 9 |
| 673 |
restrict_to_host: default |
| 674 |
queue: parsingQueue |
| 675 |
source: test_source |
| 676 |
sourcetype: test_source_type |
| 677 |
state: merged |
| 678 |
|
| 679 |
# RUN output: |
| 680 |
# ----------- |
| 681 |
|
| 682 |
# "after": [ |
| 683 |
# { |
| 684 |
# "connection_host": "ip", |
| 685 |
# "datatype": "raw", |
| 686 |
# "disabled": true, |
| 687 |
# "host": "$decideOnStartup", |
| 688 |
# "index": "default", |
| 689 |
# "name": "default:8100", |
| 690 |
# "protocol": "tcp", |
| 691 |
# "queue": "parsingQueue", |
| 692 |
# "raw_tcp_done_timeout": 9, |
| 693 |
# "restrict_to_host": "default", |
| 694 |
# "source": "test_source", |
| 695 |
# "sourcetype": "test_source_type" |
| 696 |
# } |
| 697 |
# ], |
| 698 |
# "before": [ |
| 699 |
# { |
| 700 |
# "connection_host": "ip", |
| 701 |
# "datatype": "raw", |
| 702 |
# "disabled": true, |
| 703 |
# "host": "$decideOnStartup", |
| 704 |
# "index": "default", |
| 705 |
# "name": "default:8100", |
| 706 |
# "protocol": "tcp", |
| 707 |
# "queue": "parsingQueue", |
| 708 |
# "raw_tcp_done_timeout": 10, |
| 709 |
# "restrict_to_host": "default", |
| 710 |
# "source": "test_source", |
| 711 |
# "sourcetype": "test_source_type" |
| 712 |
# } |
| 713 |
# ] |
| 714 |
|
| 715 |
- name: To add the TCP cooked config |
| 716 |
splunk.es.splunk_data_inputs_network: |
| 717 |
config: |
| 718 |
- protocol: tcp |
| 719 |
datatype: cooked |
| 720 |
name: 8101 |
| 721 |
connection_host: ip |
| 722 |
disabled: false |
| 723 |
restrict_to_host: default |
| 724 |
state: merged |
| 725 |
|
| 726 |
# RUN output: |
| 727 |
# ----------- |
| 728 |
|
| 729 |
# "after": [ |
| 730 |
# { |
| 731 |
# "connection_host": "ip", |
| 732 |
# "datatype": "cooked", |
| 733 |
# "disabled": false, |
| 734 |
# "host": "$decideOnStartup", |
| 735 |
# "name": "default:8101", |
| 736 |
# "protocol": "tcp", |
| 737 |
# "restrict_to_host": "default" |
| 738 |
# } |
| 739 |
# ], |
| 740 |
# "before": [ |
| 741 |
# { |
| 742 |
# "connection_host": "ip", |
| 743 |
# "datatype": "cooked", |
| 744 |
# "disabled": true, |
| 745 |
# "host": "$decideOnStartup", |
| 746 |
# "name": "default:8101", |
| 747 |
# "protocol": "tcp", |
| 748 |
# "restrict_to_host": "default" |
| 749 |
# } |
| 750 |
# ], |
| 751 |
|
| 752 |
- name: To add the Splunk TCP token |
| 753 |
splunk.es.splunk_data_inputs_network: |
| 754 |
config: |
| 755 |
- protocol: tcp |
| 756 |
datatype: splunktcptoken |
| 757 |
name: test_token |
| 758 |
state: merged |
| 759 |
|
| 760 |
# RUN output: |
| 761 |
# ----------- |
| 762 |
|
| 763 |
# "after": [ |
| 764 |
# { |
| 765 |
# "datatype": "splunktcptoken", |
| 766 |
# "name": "splunktcptoken://test_token", |
| 767 |
# "protocol": "tcp", |
| 768 |
# "token": <token> |
| 769 |
# } |
| 770 |
# ], |
| 771 |
# "before": [], |
| 772 |
|
| 773 |
- name: To add the Splunk SSL |
| 774 |
splunk.es.splunk_data_inputs_network: |
| 775 |
config: |
| 776 |
- protocol: tcp |
| 777 |
datatype: ssl |
| 778 |
name: test_host |
| 779 |
root_ca: {root CA directory} |
| 780 |
server_cert: {server cretificate directory} |
| 781 |
state: merged |
| 782 |
|
| 783 |
# RUN output: |
| 784 |
# ----------- |
| 785 |
|
| 786 |
# "after": [ |
| 787 |
# { |
| 788 |
# "cipher_suite": <cipher suite>, |
| 789 |
# "datatype": "ssl", |
| 790 |
# "disabled": true, |
| 791 |
# "host": "$decideOnStartup", |
| 792 |
# "index": "default", |
| 793 |
# "name": "test_host", |
| 794 |
# "protocol": "tcp" |
| 795 |
# } |
| 796 |
# ], |
| 797 |
# "before": [] |
| 798 |
|
| 799 |
|
| 800 |
# Using deleted |
| 801 |
# ------------- |
| 802 |
|
| 803 |
- name: To Delete TCP Raw |
| 804 |
splunk.es.splunk_data_inputs_network: |
| 805 |
config: |
| 806 |
- protocol: tcp |
| 807 |
datatype: raw |
| 808 |
name: default:8100 |
| 809 |
state: deleted |
| 810 |
|
| 811 |
# RUN output: |
| 812 |
# ----------- |
| 813 |
|
| 814 |
# "after": [], |
| 815 |
# "before": [ |
| 816 |
# { |
| 817 |
# "connection_host": "ip", |
| 818 |
# "datatype": "raw", |
| 819 |
# "disabled": true, |
| 820 |
# "host": "$decideOnStartup", |
| 821 |
# "index": "default", |
| 822 |
# "name": "default:8100", |
| 823 |
# "protocol": "tcp", |
| 824 |
# "queue": "parsingQueue", |
| 825 |
# "raw_tcp_done_timeout": 9, |
| 826 |
# "restrict_to_host": "default", |
| 827 |
# "source": "test_source", |
| 828 |
# "sourcetype": "test_source_type" |
| 829 |
# } |
| 830 |
# ] |
| 831 |
|
| 832 |
# Using replaced |
| 833 |
# -------------- |
| 834 |
|
| 835 |
- name: Replace existing data inputs networks configuration |
| 836 |
register: result |
| 837 |
splunk.es.splunk_data_inputs_network: |
| 838 |
state: replaced |
| 839 |
config: |
| 840 |
- protocol: tcp |
| 841 |
datatype: raw |
| 842 |
name: 8100 |
| 843 |
connection_host: ip |
| 844 |
disabled: true |
| 845 |
host: "$decideOnStartup" |
| 846 |
index: default |
| 847 |
queue: parsingQueue |
| 848 |
raw_tcp_done_timeout: 10 |
| 849 |
restrict_to_host: default |
| 850 |
source: test_source |
| 851 |
sourcetype: test_source_type |
| 852 |
|
| 853 |
# RUN output: |
| 854 |
# ----------- |
| 855 |
|
| 856 |
# "after": [ |
| 857 |
# { |
| 858 |
# "connection_host": "ip", |
| 859 |
# "datatype": "raw", |
| 860 |
# "disabled": true, |
| 861 |
# "host": "$decideOnStartup", |
| 862 |
# "index": "default", |
| 863 |
# "name": "default:8100", |
| 864 |
# "protocol": "tcp", |
| 865 |
# "queue": "parsingQueue", |
| 866 |
# "raw_tcp_done_timeout": 9, |
| 867 |
# "restrict_to_host": "default", |
| 868 |
# "source": "test_source", |
| 869 |
# "sourcetype": "test_source_type" |
| 870 |
# } |
| 871 |
# ], |
| 872 |
# "before": [ |
| 873 |
# { |
| 874 |
# "connection_host": "ip", |
| 875 |
# "datatype": "raw", |
| 876 |
# "disabled": true, |
| 877 |
# "host": "$decideOnStartup", |
| 878 |
# "index": "default", |
| 879 |
# "name": "default:8100", |
| 880 |
# "protocol": "tcp", |
| 881 |
# "queue": "parsingQueue", |
| 882 |
# "raw_tcp_done_timeout": 10, |
| 883 |
# "restrict_to_host": "default", |
| 884 |
# "source": "test_source", |
| 885 |
# "sourcetype": "test_source_type" |
| 886 |
# } |
| 887 |
# ], |
| 888 |
|
| 889 |
|
| 890 |
|
| 891 |
Return Values |
| 892 |
------------- |
| 893 |
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: |
| 894 |
|
| 895 |
.. raw:: html |
| 896 |
|
| 897 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 898 |
<tr> |
| 899 |
<th colspan="1">Key</th> |
| 900 |
<th>Returned</th> |
| 901 |
<th width="100%">Description</th> |
| 902 |
</tr> |
| 903 |
<tr> |
| 904 |
<td colspan="1"> |
| 905 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 906 |
<b>after</b> |
| 907 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 908 |
<div style="font-size: small"> |
| 909 |
<span style="color: purple">list</span> |
| 910 |
</div> |
| 911 |
</td> |
| 912 |
<td>when changed</td> |
| 913 |
<td> |
| 914 |
<div>The resulting configuration after module execution.</div> |
| 915 |
<br/> |
| 916 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 917 |
<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> |
| 918 |
</td> |
| 919 |
</tr> |
| 920 |
<tr> |
| 921 |
<td colspan="1"> |
| 922 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 923 |
<b>before</b> |
| 924 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 925 |
<div style="font-size: small"> |
| 926 |
<span style="color: purple">list</span> |
| 927 |
</div> |
| 928 |
</td> |
| 929 |
<td>when state is <em>merged</em>, <em>replaced</em>, <em>deleted</em></td> |
| 930 |
<td> |
| 931 |
<div>The configuration prior to the module execution.</div> |
| 932 |
<br/> |
| 933 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 934 |
<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> |
| 935 |
</td> |
| 936 |
</tr> |
| 937 |
<tr> |
| 938 |
<td colspan="1"> |
| 939 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 940 |
<b>gathered</b> |
| 941 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 942 |
<div style="font-size: small"> |
| 943 |
<span style="color: purple">dictionary</span> |
| 944 |
</div> |
| 945 |
</td> |
| 946 |
<td>when state is <em>gathered</em></td> |
| 947 |
<td> |
| 948 |
<div>Facts about the network resource gathered from the remote device as structured data.</div> |
| 949 |
<br/> |
| 950 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 951 |
<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> |
| 952 |
</td> |
| 953 |
</tr> |
| 954 |
</table> |
| 955 |
<br/><br/> |
| 956 |
|
| 957 |
|
| 958 |
Status |
| 959 |
------ |
| 960 |
|
| 961 |
|
| 962 |
Authors |
| 963 |
~~~~~~~ |
| 964 |
|
| 965 |
- Ansible Security Automation Team (@pranav-bhatt) <https://github.com/ansible-security> |