Modifier and Type | Method and Description |
---|---|
String |
getBlacklist()
Returns a regular expression for a file path that when matched is not
indexed.
|
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.
|
String |
getHost()
Returns the host for this monitor input.
|
String |
getHostRegex()
Returns the regular expression for a file path to determine the host.
|
String |
getIgnoreOlderThan()
Returns a time value that defines a rolling time window for monitoring
files.
|
String |
getIndex()
Gets the index where events from this monitor input are stored.
|
InputKind |
getKind()
Returns the type of monitor input.
|
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.
|
String |
getSource()
Returns the source of events from this monitor input.
|
String |
getSourceType()
Returns the source type of events from this monitor input.
|
int |
getTimeBeforeClose()
Returns the time period for keeping a file open.
|
String |
getWhitelist()
Returns a regular expression for a file path that, when matched, is
indexed.
|
void |
setBlacklist(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(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(String host)
Sets the value to populate in the host field for events from this
monitor input.
|
void |
setHostRegex(String regex)
Set the regular expression for a file path to determine the host.
|
void |
setHostSegment(String segment)
Sets the specified slash-separate segment of the file path as the
host field value.
|
void |
setIgnoreOlderThan(String time)
Sets a time value that defines a rolling time window for monitoring
files.
|
void |
setIndex(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(String name)
Sets the name to populate in the source field for events
from this monitor input.
|
void |
setSourcetype(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(String whitelist)
Sets a regular expression for a file path that, when matched, is indexed.
|
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 String getBlacklist()
public 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 String getHost()
null
if not specified.public String getHostRegex()
public String getIgnoreOlderThan()
public String getIndex()
public InputKind getKind()
public 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 String getSource()
public String getSourceType()
public int getTimeBeforeClose()
public String getWhitelist()
public void setBlacklist(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(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(String host)
host
- The value for the host field.public void setHostRegex(String regex)
regex
- The regular expression for a file path.public void setHostSegment(String segment)
segment
- The slash-separate segment.public void setIgnoreOlderThan(String time)
time
- The time value.public void setIndex(String index)
index
- The index name.public void setRecursive(boolean recursive)
recursive
- true
to monitor sub-directories, false
if not.public void setRenameSource(String name)
name
- The source name.public void setSourcetype(String sourcetype)
sourcetype
- The source type.public void setTimeBeforeClose(int period)
period
- The time to keep a file open, in seconds.public void setWhitelist(String whitelist)
whitelist
- The regular expression for the file path.Copyright © 2022 Splunk, Inc.. All rights reserved.