314.4.2. 查询参数(42 参数):
名称 | 描述 | 默认 | 类型 |
---|---|---|---|
app (common) | Splunk 应用程序 | 字符串 | |
connectionTimeout (common) | 连接到 Splunk 服务器时的 MS 超时 | 5000 | int |
host (common) | Splunk 主机. | localhost | 字符串 |
owner (common) | Splunk 所有者 | 字符串 | |
port (common) | Splunk 端口 | 8089 | int |
scheme (common) | Splunk 方案 | https | 字符串 |
bridgeErrorHandler (consumer) | 允许将消费者桥接到 Camel 路由 Error Handler,这意味着使用者试图获取传入消息或类似信息时出现任何异常,现在将作为一个消息进行处理,并由路由 Error Handler 处理。默认情况下,使用者将使用 org.apache.camel.spi.Exception 处理程序处理异常,该处理程序将记录在 WARN 或 ERROR 级别,并忽略。 | false | 布尔值 |
count (consumer) | 表示要返回的最大实体数的数字。 | int | |
earliestTime (consumer) | 搜索时间窗最早的时间。 | 字符串 | |
initEarliestTime (consumer) | 初始搜索开始偏移 | 字符串 | |
latestTime (consumer) | 搜索时间窗的最新时间。 | 字符串 | |
savedSearch (consumer) | 运行 Splunk 中保存的查询的名称 | 字符串 | |
搜索 (消费者) | 要运行的 Splunk 查询 | 字符串 | |
sendEmptyMessageWhenIdle (consumer) | 如果轮询使用者没有轮询任何文件,您可以启用这个选项来发送空消息(无正文)。 | false | 布尔值 |
streaming (consumer) | 设置流传输模式。流模式会在收到交换时发送交换,而不是在批处理中发送。 | 布尔值 | |
exceptionHandler (consumer) | 要让使用者使用自定义 ExceptionHandler。请注意,如果启用了选项 bridgeErrorHandler,则不使用这个选项。默认情况下,消费者处理异常,这将在 WARN 或 ERROR 级别记录,并忽略。 | ExceptionHandler | |
exchangePattern (consumer) | 在使用者创建交换时设置交换模式。 | ExchangePattern | |
pollStrategy (consumer) | 可插拔 org.apache.camel.PollingConsumerPollingStrategy 允许您提供自定义实施来控制在轮询操作中通常会发生错误处理,然后再在 Camel 中创建并被路由。 | PollingConsumerPoll Strategy | |
eventHost (producer) | 覆盖默认的 Splunk 事件主机字段 | 字符串 | |
index (producer) | Splunk 索引以写入 | 字符串 | |
raw (producer) | 应将有效负载插入原始数据 | false | 布尔值 |
source (producer) | Splunk 源参数 | 字符串 | |
sourceType (producer) | Splunk sourcetype 参数 | 字符串 | |
tcpReceiverPort (producer) | Splunk tcp 接收器端口 | int | |
同步 (高级) | 设置同步处理是否应当严格使用,还是允许 Camel 使用异步处理(如果受支持)。 | false | 布尔值 |
backoffErrorThreshold (scheduler) | 后续错误轮询(因某些错误导致的失败)的数量,在 backoffMultipler 应该启动前发生。 | int | |
backoffIdleThreshold (scheduler) | 后续闲置轮询的数量,在 backoffMultipler 应该启动之前发生。 | int | |
backoffMultiplier (scheduler) | 如果行中有多个后续闲置/errors,让调度的轮询消费者重新关闭。然后,倍数是下一次实际尝试发生前跳过的轮询数量。当使用这个选项时,还必须配置 backoffIdleThreshold 和/or backoffErrorThreshold。 | int | |
延迟 (scheduler) | 下次轮询前的毫秒。您还可以使用单位(60 秒)、5m30s (5 分钟和 30 秒)和 1h (1 小时)指定时间值。 | 500 | long |
greedy (scheduler) | 如果启用了 greedy,则 ScheduledPollConsumer 将立即再次运行,如果上一运行轮询了 1 或更多消息。 | false | 布尔值 |
initialDelay (scheduler) | 第一次轮询启动前的毫秒。您还可以使用单位(60 秒)、5m30s (5 分钟和 30 秒)和 1h (1 小时)指定时间值。 | 1000 | long |
runLoggingLevel (scheduler) | 消费者日志轮询轮询时启动/完成日志行。此选项允许您为其配置日志级别。 | TRACE | LoggingLevel |
scheduledExecutorService (scheduler) | 允许配置用于使用者的自定义/共享线程池。默认情况下,每个使用者都有自己的单个线程池。 | ScheduledExecutor 服务 | |
调度程序 (scheduler) | 使用来自 camel-spring 或 camel-quartz2 组件的 cron 调度程序 | none | ScheduledPollConsumer Scheduler |
schedulerProperties (scheduler) | 在使用自定义调度程序或任何基于 Spring 的调度程序时配置额外属性。 | map | |
startScheduler (scheduler) | 调度程序是否应自动启动。 | true | 布尔值 |
timeUnit (scheduler) | 初始延迟和延迟选项的时间单位。 | 毫秒 | TimeUnit |
useFixedDelay (scheduler) | 控制是否使用固定延迟或固定率。详情请参阅 JDK 中的 ScheduledExecutorService。 | true | 布尔值 |
密码 (安全) | Splunk 的密码 | 字符串 | |
sslProtocol (security) | 将 ssl 协议设置为使用 | TLSv1.2 | SSLSecurityProtocol |
username (security) | Splunk 的用户名 | 字符串 | |
useSunHttpsHandler (security) | 使用 sun.net.www.protocol.https.Handler Https 处理程序建立 Splunk 连接。在应用服务器中运行以避免 app. server https 处理时很有用。 | false | 布尔值 |