121.5. 端点选项
Splunk 端点使用 URI 语法进行配置:
splunk:name
使用以下路径和查询参数:
121.5.1. 路径参数(1 参数)
Name | 描述 | default | 类型 |
---|---|---|---|
name (common) | 必需 的名称没有目的。 | 字符串 |
121.5.2. 查询参数(45 参数)
Name | 描述 | default | 类型 |
---|---|---|---|
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 | 字符串 |
count (consumer) | 表示要返回的最大实体数的数字。 | int | |
earliestTime (consumer) | 搜索时间窗的最早时间。 | 字符串 | |
initEarliestTime (consumer) | 第一个搜索的初始开始偏移。 | 字符串 | |
latestTime (consumer) | 搜索时间窗的最新时间。 | 字符串 | |
savedSearch (consumer) | 要运行的 Splunk 中保存的查询名称。 | 字符串 | |
Search (consumer) | 要运行的 Splunk 查询。 | 字符串 | |
sendEmptyMessageWhenIdle (consumer) | 如果轮询使用者没有轮询任何文件,您可以启用此选项来发送空消息(无正文)。 | false | 布尔值 |
streaming (consumer) | 设置流模式。流模式在收到交换时发送交换,而不是在批处理中发送。 | false | 布尔值 |
bridgeErrorHandler (consumer (advanced)) | 允许将消费者桥接到 Camel 路由错误处理程序,这意味着当消费者试图选择传入消息或类似信息时发生异常,现在将作为消息处理并由路由 Error Handler 处理。默认情况下,使用者将使用 org.apache.camel.spi.ExceptionHandler 来处理例外情况,该处理程序将被记录在 WARN 或 ERROR 级别,并忽略。 | false | 布尔值 |
exceptionHandler (consumer (advanced)) | 要让使用者使用自定义例外处理程序:请注意,如果启用了 bridgeErrorHandler 选项,则此选项不使用。默认情况下,消费者将处理异常,其记录在 WARN 或 ERROR 级别中,并忽略。 | ExceptionHandler | |
exchangePattern (consumer (advanced)) | 在消费者创建交换时设置交换模式。 Enum 值:
| ExchangePattern | |
pollStrategy (consumer (advanced)) | 可插拔 org.apache.camel.PollingConsumerPollingStrategy 允许您提供自定义实施来控制在轮询操作期间通常会发生错误处理,然后再创建交换并在 Camel 中路由。 | PollingConsumerPollStrategy | |
eventHost (producer) | 覆盖默认的 Splunk 事件主机字段。 | 字符串 | |
index (producer) | 要写入的 Splunk 索引。 | 字符串 | |
raw (producer) | 有效负载应插入 raw。 | false | 布尔值 |
source (producer) | Splunk 源参数. | 字符串 | |
sourceType (producer) | Splunk sourcetype 参数。 | 字符串 | |
tcpReceiverLocalPort (producer) | Splunk tcp 接收器端口在 mvapich 服务器上本地定义。(例如,如果 mvapich 端口 9997 映射到 12345,tcpReceiverLocalPort 必须是 9997)。 | 整数 | |
tcpReceiverPort (producer) | Splunk tcp 接收器端口。 | int | |
lazyStartProducer (producer (advanced)) | 生成者是否应懒惰启动 (在第一个消息中)。通过懒惰启动,您可以使用此选项来允许 CamelContext 和路由在生成者启动期间启动,并导致路由启动失败。通过懒惰启动,启动失败可以在路由信息时通过 Camel 的路由错误处理程序进行处理。请注意,在处理第一个消息时,创建并启动生成者可能需要稍等时间,并延长处理的总处理时间。 | false | 布尔值 |
backoffErrorThreshold (scheduler) | 在 backoffMultipler 应该 kick-in 之前发生的后续错误轮询(因为某些错误)的数量。 | int | |
backoffIdleThreshold (scheduler) | 在 backoffMultipler 应该 kick-in 之前应该发生的后续空闲轮询数量。 | int | |
backoffMultiplier (scheduler) | 如果一行中有很多后续空闲/errors,则让调度的轮询消费者避退。然后,倍数是在下一次实际尝试再次发生前跳过的轮询数量。当使用这个选项时,还必须配置 backoffIdleThreshold 和/或 backoffErrorThreshold。 | int | |
delay (scheduler) | 下一次轮询前的时间(毫秒)。 | 500 | long |
greedy (scheduler) | 如果启用了 greedy,如果上一个运行轮询 1 或更多消息,则 ScheduledPollConsumer 将立即运行。 | false | 布尔值 |
initialDelay (scheduler) | 第一次轮询开始前的毫秒。 | 1000 | long |
repeatCount (scheduler) | 指定触发的最大数量。因此,如果您将其设置为 1,调度程序将只触发一次。如果您将其设置为 5,它将只触发五次。值为零或负数表示会永久触发。 | 0 | long |
runLoggingLevel (scheduler) | 消费者在轮询时记录 start/complete log 行。这个选项允许您为其配置日志级别。 Enum 值:
| TRACE | LoggingLevel |
scheduledExecutorService (scheduler) | 允许配置用于消费者的自定义/共享线程池。默认情况下,每个使用者都有自己的单线程线程池。 | ScheduledExecutorService | |
scheduler (scheduler) | 要使用 camel-spring 或 camel-quartz 组件的 cron 调度程序。使用值 spring 或 quartz 用于内置在调度程序中。 | none | 对象 |
schedulerProperties (scheduler) | 在使用自定义调度程序或任何基于 Spring 的调度程序时配置附加属性。 | Map | |
startScheduler (scheduler) | 调度程序是否应自动启动。 | true | 布尔值 |
timeUnit (scheduler) | initialDelay 和 delay 选项的时间单位。 Enum 值:
| MILLISECONDS | TimeUnit |
useFixedDelay (scheduler) | 控制是否使用固定延迟或固定率。详情请参阅 JDK 中的 ScheduledExecutorService。 | true | 布尔值 |
password (security) | Splunk 的密码。 | 字符串 | |
SSLProtocol ( security) | 设置要使用的 ssl 协议。 Enum 值:
| TLSv1.2 | SSLSecurityProtocol |
令牌 (安全) | Splunk 的用户令牌。当两者都被设置时,这优先于密码。 | 字符串 | |
用户名 (安全性) | Splunk 的用户名。 | 字符串 | |
useSunHttpsHandler (security) | 使用 sun.net.www.protocol.https.Handler Https 处理程序建立 Splunk 连接。在应用服务器中运行 时很有用,以避免 app. 服务器 https 处理。 | false | 布尔值 |