table¶
ClickHouse table used by format jsoneachrow. Required in that mode.
This parameter applies to omclickhouse: ClickHouse Output Module.
- Name:
table
- Scope:
action
- Type:
string
- Default:
none
- Required?:
no
- Introduced:
not specified
Description¶
Required with format="jsoneachrow" and used only there. The value is placed in
INSERT INTO <table> FORMAT JSONEachRow. It must be a table name or
database.table. Each part starts with an ASCII letter or underscore
and contains only letters, digits, and underscore. One dot is allowed
between the database and the table. The
maximum length is 128 characters. Anything else is rejected so the value
cannot change the query string.
Setting table together with format="values" is a configuration
error. In that mode the INSERT statement comes from the template.
Action usage¶
module(load="omclickhouse")
template(name="ClickHouseJson" type="list" option.jsonf="on") {
property(outname="message" name="msg" format="jsonf")
}
action(type="omclickhouse" format="jsoneachrow" table="soc.events"
template="ClickHouseJson")
YAML usage¶
actions:
- type: omclickhouse
format: jsoneachrow
table: soc.events
template: ClickHouseJson
See also¶
See also omclickhouse: ClickHouse Output Module.
Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project
Contributing: Source & docs: rsyslog source project
© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.