PutSyslog 2025.10.2.19¶
捆绑包¶
org.apache.nifi | nifi-standard-nar
描述¶
Sends Syslog messages to a given host and port over TCP or UDP. Messages are constructed from the "Message ___" properties of the processor which can use expression language to generate messages from incoming FlowFiles. The properties are used to construct messages of the form: (<PRIORITY>)(VERSION )(TIMESTAMP) (HOSTNAME) (BODY) where version is optional. The constructed messages are checked against regular expressions for RFC5424 and RFC3164 formatted messages. The timestamp can be an RFC5424 timestamp with a format of "yyyy-MM-dd 'T'HH:mm:ss. S 'Z'" or "yyyy-MM-dd 'T'HH:mm:ss. S+hh:mm", or it can be an RFC3164 timestamp with a format of "MMM d HH:mm:ss". If a message is constructed that does not form a valid Syslog message according to the above description, then it is routed to the invalid relationship. Valid messages are sent to the Syslog server and successes are routed to the success relationship, failures routed to the failure relationship.
输入要求¶
REQUIRED
支持敏感的动态属性¶
false
属性¶
属性 |
描述 |
|---|---|
批处理大小 |
该处理器的单次执行中处理的传入 FlowFiles 数量。 |
字符集 |
指定 Syslog 消息的字符集。请注意,表达式语言不按 FlowFile 进行求值。 |
主机名 |
Syslog 服务器的 IP 地址或主机名。 |
空闲连接有效期 |
在关闭连接之前,连接在不使用的情况下应保持打开状态的时间长度。 |
套接字发送缓冲区的最大大小 |
应使用的套接字发送缓冲区的最大大小。此值用于向操作系统建议套接字缓冲区的大小。如果此值设置过低,缓冲区可能在数据读取之前就已填满,导致传入的数据被丢弃。 |
消息正文 |
Syslog 消息的正文。 |
消息主机名 |
Syslog 消息的主机名。 |
消息优先级 |
Syslog 消息的优先级,不包括 < >。 |
消息时间戳 |
The timestamp for the Syslog messages. The timestamp can be an RFC5424 timestamp with a format of "yyyy-MM-dd 'T'HH:mm:ss. S 'Z'" or "yyyy-MM-dd 'T'HH:mm:ss. S+hh:mm", " or it can be an RFC3164 timestamp with a format of "MMM d HH:mm:ss". |
消息版本 |
Syslog 消息的版本。 |
端口 |
用于 Syslog 通信的端口。请注意,表达式语言不按 FlowFile 进行求值。 |
协议 |
用于 Syslog 通信的协议。 |
SSL Context Service |
用于获取 SSL Context 的控制器服务。如果设置了此属性,则将通过安全连接发送 Syslog 消息。 |
超时 |
连接到 Syslog 服务器以及与之通信的超时时间。此项不适用于 UDP。请注意,表达式语言不按 FlowFile 进行求值。 |
关系¶
名称 |
描述 |
|---|---|
failure |
未能发送到 Syslog 的 FlowFiles 将发送出此关系。 |
invalid |
未形成有效 Syslog 消息的 FlowFiles 将发送出此关系。 |
success |
成功发送到 Syslog 的 FlowFiles 将发送出此关系。 |