Modifier and Type | Method and Description |
---|---|
Date |
getEndTime()
Returns the time when the scripted input stopped running.
|
String |
getGroup()
Returns the OS group of commands for this scripted input.
|
String |
getHost()
Returns the source host for this scripted input.
|
String |
getIndex()
Returns the index name for this scripted input.
|
String |
getInterval()
Returns the frequency for running this scripted input.
|
InputKind |
getKind()
Returns the input kind for this scripted input.
|
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. |
String |
getSource()
Returns the source of events from this scripted input.
|
String |
getSourceType()
Returns the source type of events from this scripted input.
|
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(String host)
Sets the value for the host field for events from this scripted
input.
|
void |
setIndex(String index)
Sets the index in which to store events from this scripted input.
|
void |
setInterval(String interval)
Sets an interval or a cron schedule that determines when to run the
script.
|
void |
setPassAuth(String passAuth)
Sets a username to run the script under.
|
void |
setRenameSource(String name)
Sets the source name for events from this scripted input.
|
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 scripted input.
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, 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 Date getEndTime()
null
if not specified.public String getGroup()
null
if not specified.public String getHost()
null
if not specified.public String getIndex()
public String getInterval()
public InputKind getKind()
public String getPassAuth()
public int getRcvBuf()
_rcvbuf
attribute for this
scripted input._rcvbuf
value.public String getSource()
public String getSourceType()
public 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(String host)
host
- The host.public void setIndex(String index)
index
- The index name.public void setInterval(String interval)
interval
- An interval, in seconds or a cron schedule.public void setPassAuth(String passAuth)
passAuth
- The username.public void setRenameSource(String name)
name
- The source name.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.Copyright © 2022 Splunk, Inc.. All rights reserved.