asyncInsert

Adds ClickHouse async_insert and wait_for_async_insert to the request URL.

This parameter applies to omclickhouse: ClickHouse Output Module.

Name:

asyncInsert

Scope:

action

Type:

boolean

Default:

off

Required?:

no

Introduced:

not specified

Description

When enabled, the HTTP request URL gains async_insert=1&wait_for_async_insert=1. ClickHouse accepts the batch into its asynchronous insert buffer and the HTTP call waits until that buffer is flushed. The default leaves the URL without those settings, so existing configurations keep synchronous inserts.

The parameter applies to both format="values" and format="jsoneachrow".

Action usage

module(load="omclickhouse")
action(type="omclickhouse" asyncInsert="on")

YAML usage

actions:
  - type: omclickhouse
    format: jsoneachrow
    table: rsyslog.events
    template: ClickHouseJson
    asyncinsert: on

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.