|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource com.splunk.Entity com.splunk.Input com.splunk.ScriptInput
public class ScriptInput
The ScriptInput
class represents a scripted data input.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
java.util.Date |
getEndTime()
Returns the time when the scripted input stopped running. |
java.lang.String |
getGroup()
Returns the OS group of commands for this scripted input. |
java.lang.String |
getHost()
Returns the source host for this scripted input. |
java.lang.String |
getIndex()
Returns the index name for this scripted input. |
java.lang.String |
getInterval()
Returns the frequency for running this scripted input. |
InputKind |
getKind()
Returns the input kind for this scripted input. |
java.lang.String |
getPassAuth()
Returns the username that this scripted input runs under. |
int |
getRcvBuf()
Deprecated. Returns the value of the _rcvbuf attribute for this
scripted input. |
java.lang.String |
getSource()
Returns the source of events from this scripted input. |
java.lang.String |
getSourceType()
Returns the source type of events from this scripted input. |
java.util.Date |
getStartTime()
Returns the time when the script was started. |
void |
setDisabled(boolean disabled)
Sets whether the scripted input is enabled or disabled. |
void |
setHost(java.lang.String host)
Sets the value for the host field for events from this scripted input. |
void |
setIndex(java.lang.String index)
Sets the index in which to store events from this scripted input. |
void |
setInterval(java.lang.String interval)
Sets an interval or a cron schedule that determines when to run the script. |
void |
setPassAuth(java.lang.String passAuth)
Sets a username to run the script under. |
void |
setRenameSource(java.lang.String name)
Sets the source name for events from this scripted input. |
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 scripted input. |
Methods inherited from class com.splunk.Entity |
---|
clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.util.Date getEndTime()
null
if not specified.public java.lang.String getGroup()
null
if not specified.public java.lang.String getHost()
null
if not specified.public java.lang.String getIndex()
public java.lang.String getInterval()
public InputKind getKind()
getKind
in class Input
public java.lang.String getPassAuth()
public int getRcvBuf()
_rcvbuf
attribute for this
scripted input.
_rcvbuf
value.public java.lang.String getSource()
public java.lang.String getSourceType()
public java.util.Date getStartTime()
null if not specified
.public void setDisabled(boolean disabled)
Note: Using this method requires you to restart Splunk before this
setting takes effect. To avoid restarting Splunk, use the
Entity.disable
and Entity.enable
methods instead, which
take effect immediately.
disabled
- true
to disable the input, false
to
enable it.public void setHost(java.lang.String host)
host
- The host.public void setIndex(java.lang.String index)
index
- The index name.public void setInterval(java.lang.String interval)
interval
- An interval, in seconds or a cron schedule.public void setPassAuth(java.lang.String passAuth)
passAuth
- The username.public void setRenameSource(java.lang.String name)
name
- The source name.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 |