/** * Sets the index in which to store all generated events. * * @param index The index name. */ public void setIndex(String index) { setCacheValue("index", index); }
/** * Sets whether to use secure socket layer (SSL). * * @param SSL {@code true} to use SSL, {@code false} if not. */ public void setSSL(boolean SSL) { setCacheValue("SSL", SSL); }
/** * Sets the host from which the indexer gets data. * * @param host The host name. */ public void setHost(String host) { setCacheValue("host", host); }
/** * Sets the source type for events from this raw TCP input. * * @param sourcetype The source type. */ public void setSourceType(String sourcetype) { setCacheValue("sourcetype", sourcetype); } }
/** * Sets how the input processor should deposit the events it reads. Valid * values are:<ul> * <li>"parsingQueue": Applies props.conf and other parsing rules to your * data.</li> * <li>"indexQueue": Sends your data directly into the index.</li></ul> * * @param queue The queue-processing type. */ public void setQueue(String queue) { setCacheValue("queue", queue); }
/** * Sets the timeout value for adding a Done key. * * If a connection over the input port specified by {@code 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. * * @param rawTcpDoneTimeout The timeout value, in seconds. */ public void setRawTcpDoneTimeout(int rawTcpDoneTimeout) { setCacheValue("rawTcpDoneTimeout", rawTcpDoneTimeout); }
/** * Sets whether this input is enabled or disabled. * <p> * <b>Note:</b> Using this method requires you to restart Splunk before this * setting takes effect. To avoid restarting Splunk, use the * {@code Entity.disable} and {@code Entity.enable} methods instead, which * take effect immediately. * * @param disabled {@code true} to disable this input, {@code false} to * enable it. */ public void setDisabled(boolean disabled) { setCacheValue("disabled", disabled); }
/** * Sets the value for the <b>from-host</b> field for the remote server that * is sending data. Valid values are: <ul> * <li>"ip": Sets the host to the IP address of the remote server sending * data.</li> * <li>"dns": Sets the host to the reverse DNS entry for the IP address of * the remote server sending data.</li> * <li>"none": Leaves the host as specified in inputs.conf, which is * typically the Splunk system host name.</li></ul> * * @param connection_host The connection host information. */ public void setConnectionHost(String connection_host) { setCacheValue("connection_host", connection_host); }
/** * Sets the initial value for the source key for events from this * input. The source key is used during parsing and indexing. The * <b>source</b> field is used for searches. As a convenience, the source * string is prepended with "source::". * <p> * <b>Note:</b> 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. * * @param source The source. */ public void setSource(String source) { setCacheValue("source", source); }