Installing logstash-output-kusto plugin thru logstash container deployment

Could someone please provide guidance on how we can install additional plugins like logstash-output-kusto using a command like bin/logstash-plugin install logstash-output-kusto inside a logstash container?

Any example code would definitely help.

I tried setting up the logstash.yml using

containers:
  - name: logstash
    image: docker.elastic.co/logstash/logstash:7.11.1
    imagePullPolicy: IfNotPresent
    command: ['sh', '-c', 'bin/logstash-plugin install logstash-output-kusto']

but when the yaml is kubectl deployed, the pod continuously crashes with backoff. ON commenting out the line command: the pod gets created fine.

Tried configuring the InitContainer instead of just Container to install the plugin using the above shown command and the InitContainer terminates fine with a status "Completed". But then when the main Container is running, it is throwing below error in LiveLogs -

[ERROR] 2021-03-11 03:37:02.404 [Converge PipelineAction::Create<main>] registry - Tried to 
load a plugin's code, but failed. {:exception=>#<LoadError: no such file to load -- 
logstash/outputs/kusto>, :path=>"logstash/outputs/kusto", :type=>"output", :name=>"kusto"}


[ERROR] 2021-03-11 03:37:02.407 [Converge PipelineAction::Create<main>] agent - Failed to 
execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, 
:exception=>"Java::JavaLang::IllegalStateException", :message=>"
Unable to configure plugins:
(PluginLoadingError) Couldn't find any output plugin named 'kusto'. Are you sure this is
correct? Trying to load the kusto output plugin resulted in this error: no such file to load --
logstash/outputs/kusto", :backtrace=>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.