pulsar
Reads messages from an Apache Pulsar server.
Introduced in version 1.0.0.
- Common
- Advanced
# Common config fields, showing default values
input:
label: ""
pulsar:
url: pulsar://localhost:6650 # No default (required)
topics: [] # No default (optional)
topics_pattern: "" # No default (optional)
subscription_name: "" # No default (required)
subscription_type: shared
tls:
root_cas_file: ""
# All config fields, showing default values
input:
label: ""
pulsar:
url: pulsar://localhost:6650 # No default (required)
topics: [] # No default (optional)
topics_pattern: "" # No default (optional)
subscription_name: "" # No default (required)
subscription_type: shared
tls:
root_cas_file: ""
auth:
oauth2:
enabled: false
audience: ""
issuer_url: ""
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
url
A URL to connect to.
Type: string
# Examples
url: pulsar://localhost:6650
url: pulsar://pulsar.us-west.example.com:6650
url: pulsar+ssl://pulsar.us-west.example.com:6651
topics
A list of topics to subscribe to. This or topics_pattern must be set.
Type: array
topics_pattern
A regular expression matching the topics to subscribe to. This or topics must be set.
Type: string
subscription_name
Specify the subscription name for this consumer.
Type: string