|
|||||||||
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.MonitorInput
public class MonitorInput
The MonitorInput
class represents a monitor input, which is a file,
directory, script, or network port that is monitored for new data.
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 |
---|
content, toUpdate |
Fields inherited from class com.splunk.Resource |
---|
actions, path, refreshArgs, service, title |
Method Summary | |
---|---|
java.lang.String |
getBlacklist()
Returns a regular expression for a file path that when matched is not indexed. |
java.lang.String |
getCrcSalt()
Returns a string that is used to force Splunk to index files that have a matching cyclic redundancy check (CRC). |
int |
getFileCount()
Returns the file count of this monitor input. |
boolean |
getFollowTail()
Indicates whether files that are seen for the first time will be read from the end. |
java.lang.String |
getHost()
Returns the host for this monitor input. |
java.lang.String |
getHostRegex()
Returns the regular expression for a file path to determine the host. |
java.lang.String |
getIgnoreOlderThan()
Returns a time value that defines a rolling time window for monitoring files. |
java.lang.String |
getIndex()
Gets the index where events from this monitor input are stored. |
InputKind |
getKind()
Returns the type of monitor input. |
java.lang.String |
getQueue()
Returns the queue for this monitor input. |
int |
getRcvBuf()
Deprecated. Returns the value of the _rcvbuf attribute for this
monitor input. |
boolean |
getRecursive()
Indicates whether sub-directories are monitored within this monitor input. |
java.lang.String |
getSource()
Returns the source of events from this monitor input. |
java.lang.String |
getSourceType()
Returns the source type of events from this monitor input. |
int |
getTimeBeforeClose()
Returns the time period for keeping a file open. |
java.lang.String |
getWhitelist()
Returns a regular expression for a file path that, when matched, is indexed. |
void |
setBlacklist(java.lang.String blacklist)
Sets a regular expression for a file path that, when matched, is not indexed. |
void |
setCheckIndex(boolean index)
Sets whether the index value is checked to ensure that it is the
name of a valid index. |
void |
setCheckPath(boolean path)
Sets whether the name value is checked to ensure that it exists. |
void |
setCrcSalt(java.lang.String salt)
Sets a string that is used to force Splunk to index files that have a matching cyclic redundancy check (CRC). |
void |
setFollowTail(boolean followTail)
Sets whether files that are seen for the first time will be read from the end. |
void |
setHost(java.lang.String host)
Sets the value to populate in the host field for events from this monitor input. |
void |
setHostRegex(java.lang.String regex)
Set the regular expression for a file path to determine the host. |
void |
setHostSegment(java.lang.String segment)
Sets the specified slash-separate segment of the file path as the host field value. |
void |
setIgnoreOlderThan(java.lang.String time)
Sets a time value that defines a rolling time window for monitoring files. |
void |
setIndex(java.lang.String index)
Sets the index where events from this monitor input are stored. |
void |
setRecursive(boolean recursive)
Sets whether to monitor sub-directories within this monitor input. |
void |
setRenameSource(java.lang.String name)
Sets the name to populate in the source field for events from this monitor input. |
void |
setSourcetype(java.lang.String sourcetype)
Sets the source type to populate in the sourcetype field for events from this monitor input. |
void |
setTimeBeforeClose(int period)
Sets the time period for keeping a file open. |
void |
setWhitelist(java.lang.String whitelist)
Sets a regular expression for a file path that, when matched, is indexed. |
Methods inherited from class com.splunk.Entity |
---|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, 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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public java.lang.String getBlacklist()
public java.lang.String getCrcSalt()
<SOURCE>
", the full source path is added to the CRC, ensuring
that each file being monitored has a unique CRC. For more info, see the
Edit inputs.conf
topic in the Getting Data In manual.
null
if not set.public int getFileCount()
public boolean getFollowTail()
true
if new files are read from the end, false
if
not.public java.lang.String getHost()
null
if not specified.public java.lang.String getHostRegex()
public java.lang.String getIgnoreOlderThan()
public java.lang.String getIndex()
public InputKind getKind()
getKind
in class Input
public java.lang.String getQueue()
null
if not specified.public boolean getRecursive()
true
if sub-directories are monitored, false
if
not.public int getRcvBuf()
_rcvbuf
attribute for this
monitor input.
_rcvbuf
value.public java.lang.String getSource()
public java.lang.String getSourceType()
public int getTimeBeforeClose()
public java.lang.String getWhitelist()
public void setBlacklist(java.lang.String blacklist)
blacklist
- The regular expression for a file path.public void setCheckIndex(boolean index)
index
value is checked to ensure that it is the
name of a valid index.
index
- true
to verify index
, false
if not.public void setCheckPath(boolean path)
name
value is checked to ensure that it exists.
path
- true
to verify name
, false
if not.public void setCrcSalt(java.lang.String salt)
<SOURCE>
", the full source path is added to the CRC, ensuring
that each file being monitored has a unique CRC. For more info, see the
Edit inputs.conf
topic in the Getting Data In manual.
salt
- The string that is added to the CRC.public void setFollowTail(boolean followTail)
followTail
- true
to read new files from the end,
false
if not.public void setHost(java.lang.String host)
host
- The value for the host field.public void setHostRegex(java.lang.String regex)
regex
- The regular expression for a file path.public void setHostSegment(java.lang.String segment)
segment
- The slash-separate segment.public void setIgnoreOlderThan(java.lang.String time)
time
- The time value.public void setIndex(java.lang.String index)
index
- The index name.public void setRecursive(boolean recursive)
recursive
- true
to monitor sub-directories, false
if not.public void setRenameSource(java.lang.String name)
name
- The source name.public void setSourcetype(java.lang.String sourcetype)
sourcetype
- The source type.public void setTimeBeforeClose(int period)
period
- The time to keep a file open, in seconds.public void setWhitelist(java.lang.String whitelist)
whitelist
- The regular expression for the file path.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |