|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splunk.Resource
com.splunk.Entity
com.splunk.Input
com.splunk.TcpInput
public class TcpInput
The TcpInput
class represents a TCP raw input. This differs from a
TCP cooked input in that this TCP input is in raw form, and is not
processed (or "cooked").
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.splunk.Entity |
---|
toUpdate |
Fields inherited from class com.splunk.Resource |
---|
actions, partialPath, path, refreshArgs, service, title |
Method Summary | |
---|---|
TcpConnections |
connections()
Returns an object that contains the inbound raw TCP connections. |
java.lang.String |
getConnectionHost()
Returns the style of host connection. |
java.lang.String |
getGroup()
Returns the group of this TCP input. |
java.lang.String |
getHost()
Returns the source host of this TCP input where this indexer gets its data. |
java.lang.String |
getIndex()
Returns the index name of this TCP input. |
InputKind |
getKind()
Returns the input kind of this TCP input. |
java.lang.String |
getQueue()
Returns the queue for this TCP input. |
int |
getRcvBuf()
Deprecated. Returns the value of the _rcvbuf attribute for this
TCP input. |
java.lang.String |
getRestrictToHost()
Returns the incoming host restriction for this TCP input. |
java.lang.String |
getSource()
Returns the initial source key for this TCP input. |
java.lang.String |
getSourceType()
Returns the source type for events from this TCP input. |
boolean |
getSSL()
Indicates whether this TCP input is using secure socket layer (SSL). |
void |
setConnectionHost(java.lang.String connection_host)
Sets the from-host for the remote server that is sending data. |
void |
setDisabled(boolean disabled)
Sets whether this input is enabled or disabled. |
void |
setHost(java.lang.String host)
Sets the host from which the indexer gets data. |
void |
setIndex(java.lang.String index)
Sets the index in which to store all generated events. |
void |
setQueue(java.lang.String queue)
Sets how the input processor should deposit the events it reads. |
void |
setRawTcpDoneTimeout(int rawTcpDoneTimeout)
Sets the timeout value for adding a Done key. |
void |
setRestrictToHost(java.lang.String restrictToHost)
Sets a restriction to accept inputs from the specified host only. |
void |
setSource(java.lang.String source)
Sets the initial value for the source key for events from this input. |
void |
setSourceType(java.lang.String sourcetype)
Sets the source type for events from this input. |
void |
setSSL(boolean SSL)
Sets whether to use secure socket layer (SSL). |
Methods inherited from class com.splunk.Entity |
---|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, reload, remove, remove, size, update, update, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getActions, getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public TcpConnections connections()
public java.lang.String getConnectionHost()
null
if not specified.public java.lang.String getGroup()
public java.lang.String getHost()
null
if not specified.public java.lang.String getIndex()
null
if not specified.public InputKind getKind()
getKind
in class Input
InputKind
public java.lang.String getQueue()
null
if not specified.public int getRcvBuf()
_rcvbuf
attribute for this
TCP input.
_rcvbuf
value.public java.lang.String getRestrictToHost()
null
if not specified.public java.lang.String getSource()
null
if not specified.public java.lang.String getSourceType()
null
if not specified.public boolean getSSL()
true
if this TCP input is using SSL, false
if
not.public void setSSL(boolean SSL)
SSL
- true
to use SSL, false
if not.public void setConnectionHost(java.lang.String connection_host)
from-host
for the remote server that is sending data.
Valid values are:
connection_host
- The connection host information.public void setDisabled(boolean disabled)
Entity.disable
and
Entity.enable
methods.
disabled
- true
to disabled to script input,
false
to enable.Entity.disable()
,
Entity.enable()
public void setHost(java.lang.String host)
host
- The host name.public void setIndex(java.lang.String index)
index
- The index name.public void setQueue(java.lang.String queue)
parsingQueue
: Applies props.conf and other parsing rules to
your data.indexQueue
: Sends your data directly into the index.
queue
- The queue-processing type.public void setRawTcpDoneTimeout(int rawTcpDoneTimeout)
name
remains
idle after receiving data for this specified number of seconds, it adds
a Done key, implying that the last event has been completely received.
rawTcpDoneTimeout
- The timeout value, in seconds.public void setRestrictToHost(java.lang.String restrictToHost)
restrictToHost
- The host.public void setSource(java.lang.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(java.lang.String sourcetype)
sourcetype
- The source type.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |