Socket
Book a DemoInstallSign in
Socket

logstash-input-pulsar

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logstash-input-pulsar

bundlerRubygems
Version
2.11.0.3
Version published
Maintainers
2
Created
Source

Logstash Input Pulsar Plugin

This is a Ruby plugin for Logstash.

It is fully free and fully open source. The license is Apache 2.0, meaning you are free to use it however you want.

This input will read events from a Pulsar topic.

The version of this plugin x.y.z.m conforms to Pulsar x.y.z, while m is the patch version number. For broker compatibility, see the official Pulsar compatibility reference. If the compatibility wiki is not up-to-date, please contact Pulsar support/community to confirm compatibility.

If you require features not yet available in this plugin (including client version upgrades), please file an issue with details about what you need.

Pulsar Input Configuration Options

This plugin supports these configuration options.

SettingsInput typeDefault valueRequired
service_urlstring-Yes
topics or topics_patternarray["topic-1"]No
subscription_namestring"logstash-group"No
client_idstring"logstash-client"No
subscription_typestring, one of["Shared","Exclusive","Failover","Key_shared"]"Shared"No
subscription_initial_positionstring, one of["Latest","Earliest"]"Earliest"No
codeccodec"plain"No
consumer_threadsnumber1No
decorate_eventsbooleanfalseNo
commit_asyncbooleanfalseNo
auth_plugin_class_namestring-No
auth_paramspassword-No

Example

pulsar without tls & token

input{
  pulsar{
    serviceUrl => "pulsar://127.0.0.1:6650"
    codec => "json"
    topics => [
        "persistent://public/default/topic1",
        "persistent://public/default/topic2"
    ]
    subscriptionName => "my_consumer"
    subscriptionType => "Shared"
    subscriptionInitialPosition => "Earliest"
  }
}

pulsar with token

input{
  pulsar{
    serviceUrl => "pulsar://127.0.0.1:6650"
    codec => "plain"
    topics => [
        "persistent://public/default/topic1",
        "persistent://public/default/topic2"
    ]
    subscriptionName => "my_subscription"
    subscriptionType => "Shared"
    subscriptionInitialPosition => "Earliest"
    auth_plugin_class_name => "org.apache.pulsar.client.impl.auth.AuthenticationToken"
    auth_params => "token:${token}"
  }
}

Installation

bin/logstash-plugin install /{PATH_TO}/logstash-input-pulsar-x.y.z.m.gem

Develop

  • Develop environment
  • rvm
  • jruby (Do not use ruby, it may fail to compile)
  • gem
  • bundler
  • rake
  • Install dependencies
bundle install
rake install_jars
  • Build
gem build logstash-input-pulsar.gemspec

FAQs

Package last updated on 14 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts