splunk.InputsUdp
Explore with Pulumi AI
# Resource: splunk.InputsTcpRaw
Create and manage UDP data inputs.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Splunk = Pulumi.Splunk;
return await Deployment.RunAsync(() =>
{
var udp = new Splunk.InputsUdp("udp", new()
{
Disabled = false,
Index = "main",
Source = "new",
Sourcetype = "new",
});
});
package main
import (
"github.com/pulumi/pulumi-splunk/sdk/go/splunk"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := splunk.NewInputsUdp(ctx, "udp", &splunk.InputsUdpArgs{
Disabled: pulumi.Bool(false),
Index: pulumi.String("main"),
Source: pulumi.String("new"),
Sourcetype: pulumi.String("new"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.splunk.InputsUdp;
import com.pulumi.splunk.InputsUdpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var udp = new InputsUdp("udp", InputsUdpArgs.builder()
.disabled(false)
.index("main")
.source("new")
.sourcetype("new")
.build());
}
}
import pulumi
import pulumi_splunk as splunk
udp = splunk.InputsUdp("udp",
disabled=False,
index="main",
source="new",
sourcetype="new")
import * as pulumi from "@pulumi/pulumi";
import * as splunk from "@pulumi/splunk";
const udp = new splunk.InputsUdp("udp", {
disabled: false,
index: "main",
source: "new",
sourcetype: "new",
});
resources:
udp:
type: splunk:InputsUdp
properties:
disabled: false
index: main
source: new
sourcetype: new
Create InputsUdp Resource
new InputsUdp(name: string, args?: InputsUdpArgs, opts?: CustomResourceOptions);
@overload
def InputsUdp(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[InputsUdpAclArgs] = None,
connection_host: Optional[str] = None,
disabled: Optional[bool] = None,
host: Optional[str] = None,
index: Optional[str] = None,
name: Optional[str] = None,
no_appending_timestamp: Optional[bool] = None,
no_priority_stripping: Optional[bool] = None,
queue: Optional[str] = None,
restrict_to_host: Optional[str] = None,
source: Optional[str] = None,
sourcetype: Optional[str] = None)
@overload
def InputsUdp(resource_name: str,
args: Optional[InputsUdpArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewInputsUdp(ctx *Context, name string, args *InputsUdpArgs, opts ...ResourceOption) (*InputsUdp, error)
public InputsUdp(string name, InputsUdpArgs? args = null, CustomResourceOptions? opts = null)
public InputsUdp(String name, InputsUdpArgs args)
public InputsUdp(String name, InputsUdpArgs args, CustomResourceOptions options)
type: splunk:InputsUdp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InputsUdpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InputsUdpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InputsUdpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InputsUdpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InputsUdpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InputsUdp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InputsUdp resource accepts the following input properties:
- Acl
Inputs
Udp Acl The app/user context that is the namespace for the resource
- Connection
Host string Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
Indicates if input is disabled.
- Host string
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- Index string
Which index events from this input should be stored in. Defaults to default.
- Name string
The UDP port that this input should listen on.
- No
Appending boolTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- No
Priority boolStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- Queue string
Which queue events from this input should be sent to. Generally this does not need to be changed.
- Restrict
To stringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- Source string
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- Sourcetype string
The value to populate in the sourcetype field for incoming events.
- Acl
Inputs
Udp Acl Args The app/user context that is the namespace for the resource
- Connection
Host string Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
Indicates if input is disabled.
- Host string
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- Index string
Which index events from this input should be stored in. Defaults to default.
- Name string
The UDP port that this input should listen on.
- No
Appending boolTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- No
Priority boolStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- Queue string
Which queue events from this input should be sent to. Generally this does not need to be changed.
- Restrict
To stringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- Source string
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- Sourcetype string
The value to populate in the sourcetype field for incoming events.
- acl
Inputs
Udp Acl The app/user context that is the namespace for the resource
- connection
Host String Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
Indicates if input is disabled.
- host String
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index String
Which index events from this input should be stored in. Defaults to default.
- name String
The UDP port that this input should listen on.
- no
Appending BooleanTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no
Priority BooleanStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue String
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict
To StringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source String
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype String
The value to populate in the sourcetype field for incoming events.
- acl
Inputs
Udp Acl The app/user context that is the namespace for the resource
- connection
Host string Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled boolean
Indicates if input is disabled.
- host string
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index string
Which index events from this input should be stored in. Defaults to default.
- name string
The UDP port that this input should listen on.
- no
Appending booleanTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no
Priority booleanStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue string
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict
To stringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source string
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype string
The value to populate in the sourcetype field for incoming events.
- acl
Inputs
Udp Acl Args The app/user context that is the namespace for the resource
- connection_
host str Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled bool
Indicates if input is disabled.
- host str
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index str
Which index events from this input should be stored in. Defaults to default.
- name str
The UDP port that this input should listen on.
- no_
appending_ booltimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no_
priority_ boolstripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue str
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict_
to_ strhost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source str
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype str
The value to populate in the sourcetype field for incoming events.
- acl Property Map
The app/user context that is the namespace for the resource
- connection
Host String Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
Indicates if input is disabled.
- host String
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index String
Which index events from this input should be stored in. Defaults to default.
- name String
The UDP port that this input should listen on.
- no
Appending BooleanTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no
Priority BooleanStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue String
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict
To StringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source String
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype String
The value to populate in the sourcetype field for incoming events.
Outputs
All input properties are implicitly available as output properties. Additionally, the InputsUdp resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing InputsUdp Resource
Get an existing InputsUdp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InputsUdpState, opts?: CustomResourceOptions): InputsUdp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl: Optional[InputsUdpAclArgs] = None,
connection_host: Optional[str] = None,
disabled: Optional[bool] = None,
host: Optional[str] = None,
index: Optional[str] = None,
name: Optional[str] = None,
no_appending_timestamp: Optional[bool] = None,
no_priority_stripping: Optional[bool] = None,
queue: Optional[str] = None,
restrict_to_host: Optional[str] = None,
source: Optional[str] = None,
sourcetype: Optional[str] = None) -> InputsUdp
func GetInputsUdp(ctx *Context, name string, id IDInput, state *InputsUdpState, opts ...ResourceOption) (*InputsUdp, error)
public static InputsUdp Get(string name, Input<string> id, InputsUdpState? state, CustomResourceOptions? opts = null)
public static InputsUdp get(String name, Output<String> id, InputsUdpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl
Inputs
Udp Acl The app/user context that is the namespace for the resource
- Connection
Host string Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
Indicates if input is disabled.
- Host string
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- Index string
Which index events from this input should be stored in. Defaults to default.
- Name string
The UDP port that this input should listen on.
- No
Appending boolTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- No
Priority boolStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- Queue string
Which queue events from this input should be sent to. Generally this does not need to be changed.
- Restrict
To stringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- Source string
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- Sourcetype string
The value to populate in the sourcetype field for incoming events.
- Acl
Inputs
Udp Acl Args The app/user context that is the namespace for the resource
- Connection
Host string Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- Disabled bool
Indicates if input is disabled.
- Host string
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- Index string
Which index events from this input should be stored in. Defaults to default.
- Name string
The UDP port that this input should listen on.
- No
Appending boolTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- No
Priority boolStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- Queue string
Which queue events from this input should be sent to. Generally this does not need to be changed.
- Restrict
To stringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- Source string
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- Sourcetype string
The value to populate in the sourcetype field for incoming events.
- acl
Inputs
Udp Acl The app/user context that is the namespace for the resource
- connection
Host String Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
Indicates if input is disabled.
- host String
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index String
Which index events from this input should be stored in. Defaults to default.
- name String
The UDP port that this input should listen on.
- no
Appending BooleanTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no
Priority BooleanStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue String
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict
To StringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source String
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype String
The value to populate in the sourcetype field for incoming events.
- acl
Inputs
Udp Acl The app/user context that is the namespace for the resource
- connection
Host string Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled boolean
Indicates if input is disabled.
- host string
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index string
Which index events from this input should be stored in. Defaults to default.
- name string
The UDP port that this input should listen on.
- no
Appending booleanTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no
Priority booleanStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue string
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict
To stringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source string
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype string
The value to populate in the sourcetype field for incoming events.
- acl
Inputs
Udp Acl Args The app/user context that is the namespace for the resource
- connection_
host str Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled bool
Indicates if input is disabled.
- host str
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index str
Which index events from this input should be stored in. Defaults to default.
- name str
The UDP port that this input should listen on.
- no_
appending_ booltimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no_
priority_ boolstripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue str
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict_
to_ strhost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source str
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype str
The value to populate in the sourcetype field for incoming events.
- acl Property Map
The app/user context that is the namespace for the resource
- connection
Host String Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. dns sets the host to the reverse DNS entry for the IP address of the remote server sending data. none leaves the host as specified in inputs.conf, which is typically the Splunk system hostname. Default value is dns.
- disabled Boolean
Indicates if input is disabled.
- host String
The value to populate in the host field for incoming events. This is used during parsing/indexing, in particular to set the host field. It is also the host field used at search time.
- index String
Which index events from this input should be stored in. Defaults to default.
- name String
The UDP port that this input should listen on.
- no
Appending BooleanTimestamp If set to true, prevents Splunk software from prepending a timestamp and hostname to incoming events.
- no
Priority BooleanStripping If set to true, Splunk software does not remove the priority field from incoming syslog events.
- queue String
Which queue events from this input should be sent to. Generally this does not need to be changed.
- restrict
To StringHost Restrict incoming connections on this port to the host specified here. If this is not set, the value specified in [udp://:] in inputs.conf is used.
- source String
The value to populate in the source field for incoming events. The same source should not be used for multiple data inputs.
- sourcetype String
The value to populate in the sourcetype field for incoming events.
Supporting Types
InputsUdpAcl, InputsUdpAclArgs
Package Details
- Repository
- Splunk pulumi/pulumi-splunk
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
splunk
Terraform Provider.