pulsar
Reads messages from an Apache Pulsar server.
Introduced in version 3.43.0.
-
Common
-
Advanced
inputs:
label: ""
pulsar:
url: "" # No default (required)
topics: [] # No default (optional)
topics_pattern: "" # No default (optional)
subscription_name: "" # No default (required)
subscription_type: shared
subscription_initial_position: latest
tls:
root_cas_file: ""
inputs:
label: ""
pulsar:
url: "" # No default (required)
topics: [] # No default (optional)
topics_pattern: "" # No default (optional)
subscription_name: "" # No default (required)
subscription_type: shared
subscription_initial_position: latest
tls:
root_cas_file: ""
auth:
oauth2:
enabled: false
audience: ""
issuer_url: ""
scope: ""
private_key_file: ""
token:
enabled: false
token: ""
Metadata
This input adds the following metadata fields to each message:
- pulsar_message_id
- pulsar_key
- pulsar_ordering_key
- pulsar_event_time_unix
- pulsar_publish_time_unix
- pulsar_topic
- pulsar_producer_name
- pulsar_redelivery_count
- All properties of the message
You can access these metadata fields using function interpolation.
Fields
auth
Optional configuration of Pulsar authentication methods.
Requires version 3.60.0 or later.
Type: object
subscription_initial_position
Specify the subscription initial position for this consumer.
Type: string
Default: latest
Options: latest, earliest
subscription_type
Specify the subscription type for this consumer.
Using a key_sharedsubscription type will allow out-of-order delivery since nack-ing messages sets non-zero nack delivery delay - this can potentially cause consumers to stall. See Pulsar documentation and this Github issue for more details.
Type: string
Default: shared
Options: shared, key_shared, failover, exclusive
tls.root_cas_file
An optional path of a root certificate authority file to use. This is a file, often with a .pem extension, containing a certificate chain from the parent trusted root certificate, to possible intermediate signing certificates, to the host certificate.
Type: string
Default: ""
# Examples:
root_cas_file: ./root_cas.pem