Retrieves data from Splunk Enterprise.
get, splunk, logs
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.
| Display Name | API Name | Default Value | Allowable Values | Description |
|---|---|---|---|---|
| Scheme | Scheme | https |
| The scheme for connecting to Splunk. |
| Hostname | Hostname | localhost | The ip address or hostname of the Splunk server. | |
| Port | Port | 8089 | The port of the Splunk server. | |
| Connection Timeout | Connection Timeout | 5 secs | Max wait time for connection to the Splunk server. | |
| Read Timeout | Read Timeout | 15 secs | Max wait time for response from the Splunk server. | |
| Query | Query | search * | head 100 | The query to execute. Typically beginning with a <search> command followed by a search clause, such as <search source="tcp:7689"> to search for messages received on TCP port 7689. | |
| Time Field Strategy | Time Field Strategy | Event Time |
| Indicates whether to search by the time attached to the event, or by the time the event was indexed in Splunk. |
| Time Range Strategy | Time Range Strategy | Provided |
| Indicates how to apply time ranges to each execution of the query. Selecting a managed option allows the processor to apply a time range from the last execution time to the current execution time. When using <Managed from Beginning>, an earliest time will not be applied on the first execution, and thus all records searched. When using <Managed from Current> the earliest time of the first execution will be the initial execution time. When using <Provided>, the time range will come from the Earliest Time and Latest Time properties, or no time range will be applied if these properties are left blank. |
| Earliest Time | Earliest Time | The value to use for the earliest time when querying. Only used with a Time Range Strategy of Provided. See Splunk's documentation on Search Time Modifiers for guidance in populating this field. | ||
| Latest Time | Latest Time | The value to use for the latest time when querying. Only used with a Time Range Strategy of Provided. See Splunk's documentation on Search Time Modifiers for guidance in populating this field. | ||
| Time Zone | Time Zone | UTC |
| The Time Zone to use for formatting dates when performing a search. Only used with Managed time strategies. |
| Application | Application | The Splunk Application to query. | ||
| Owner | Owner | The owner to pass to Splunk. | ||
| Token | Token | The token to pass to Splunk. | ||
| Username | Username | The username to authenticate to Splunk. | ||
| Password | Password | The password to authenticate to Splunk. Sensitive Property: true | ||
| Security Protocol | Security Protocol | TLSv1_2 |
| The security protocol to use for communicating with Splunk. |
| Output Mode | Output Mode | JSON |
| The output mode for the results. |
| SSL Context Service | SSL Context Service | Controller Service API: SSLContextService Implementations: StandardSSLContextService StandardRestrictedSSLContextService | The SSL Context Service used to provide client certificate information for TLS/SSL connections. |
| Name | Description |
|---|---|
| success | Results retrieved from Splunk are sent out this relationship. |
| Name | Description |
|---|---|
| splunk.query | The query that performed to produce the FlowFile. |
| splunk.earliest.time | The value of the earliest time that was used when performing the query. |
| splunk.latest.time | The value of the latest time that was used when performing the query. |
| Scope | Description |
|---|---|
| CLUSTER | If using one of the managed Time Range Strategies, this processor will store the values of the latest and earliest times from the previous execution so that the next execution of the can pick up where the last execution left off. The state will be cleared and start over if the query is changed. |