Modifier and Type | Method and Description |
---|---|
UdpConnections |
connections()
Returns an object that contains the inbound UDP connections.
|
String |
getConnectionHost()
Returns the style of host connection.
|
String |
getGroup()
Returns the group for this UDP input.
|
String |
getHost()
Returns the source host for this UDP input, where this indexer gets its
data.
|
String |
getIndex()
Returns the index name for this UDP input.
|
InputKind |
getKind()
Returns the input kind for this input.
|
boolean |
getNoAppendingTimeStamp()
Indicates whether Splunk prepends a timestamp and host name to
incoming events.
|
boolean |
getNoPriorityStripping()
Indicates whether Splunk removes the priority field from incoming
events.
|
int |
getPort()
Returns the port that this input is listening on.
|
String |
getQueue()
Returns the queue for this UDP input.
|
int |
getRcvBuf()
Deprecated.
This is not used anymore. No replacement.
|
String |
getSource()
Returns the initial source key for this UDP input.
|
String |
getSourceType()
Returns the event source type for this UDP input.
|
void |
setConnectionHost(String connection_host)
Sets the value of the from-host field for the remote server that
is sending data.
|
void |
setHost(String host)
Sets the host from which the indexer gets data.
|
void |
setIndex(String index)
Sets the index in which to store all generated events.
|
void |
setNoAppendingTimeStamp(boolean no_appending_timestamp)
Sets whether Splunk should prepend a timestamp and host name to incoming
events.
|
void |
setNoPriorityStripping(boolean no_priority_stripping)
Sets whether Splunk should strip the priority field from incoming
events.
|
void |
setQueue(String queue)
Sets how the input processor should deposit the events it reads.
|
void |
setSource(String source)
Sets the initial value for the source key for events from this
input.
|
void |
setSourceType(String sourcetype)
Sets the source type for events from this input.
|
void |
submit(String eventBody)
Send a string to this UDP input.
|
void |
update(Map<String,Object> args)
Updates the entity with the values you previously set using the setter
methods, and any additional specified arguments.
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, validate, values
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public UdpConnections connections()
public String getConnectionHost()
null
if not specified.public String getGroup()
public String getHost()
null
if not specified.public String getIndex()
public InputKind getKind()
public String getQueue()
null
if not specified.public int getRcvBuf()
_rcvbuf
attribute for this
UDP input._rcvbuf
value.public String getSource()
null
if not specified.public String getSourceType()
null
if not specified.public boolean getNoAppendingTimeStamp()
true
if Splunk does not prepend a timestamp and
host name to incoming events, false
if it does.public boolean getNoPriorityStripping()
true
if Splunk does not remove the priority field
from incoming syslog events, false
if it does.public void setConnectionHost(String connection_host)
connection_host
- The connection host information.public void setHost(String host)
host
- The host.public void setIndex(String index)
index
- The index.public void setNoAppendingTimeStamp(boolean no_appending_timestamp)
no_appending_timestamp
- true
to not prepend a
timestamp and host name to incoming events, false
to prepend that
information.public void setNoPriorityStripping(boolean no_priority_stripping)
no_priority_stripping
- true
to not strip the
priority field, false
to remove it.public void setQueue(String queue)
queue
- The queue-processing type.public void setSource(String source)
Note: 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 the use of source types, tagging, and search wildcards before overriding this value.
source
- The source.public void setSourceType(String sourcetype)
sourcetype
- The source type.public void submit(String eventBody) throws IOException
eventBody
- The text to send.IOException
- The IOException instancepublic int getPort()
public void update(Map<String,Object> args)
update
method to additionally update this input's
path if the RestrictToHost
property is changed.Copyright © 2022 Splunk, Inc.. All rights reserved.