# Installing logstash-output-kusto plugin thru logstash container deployment

**URL:** <https://discuss.elastic.co/t/installing-logstash-output-kusto-plugin-thru-logstash-container-deployment/266684>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [March 9, 2021, 11:31am UTC](https://discuss.elastic.co/t/installing-logstash-output-kusto-plugin-thru-logstash-container-deployment/266684 "2021-03-09T11:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![omkarg81](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@omkarg81](https://discuss.elastic.co/u/omkarg81)\
**Post date:** [March 9, 2021, 11:31am UTC](https://discuss.elastic.co/t/installing-logstash-output-kusto-plugin-thru-logstash-container-deployment/266684/1 "2021-03-09T11:31:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![omkarg81](https://avatars.discourse-cdn.com/v4/letter/o/e495f1/32.png) [@omkarg81](https://discuss.elastic.co/u/omkarg81)\
**Post date:** [March 11, 2021, 3:47am UTC](https://discuss.elastic.co/t/installing-logstash-output-kusto-plugin-thru-logstash-container-deployment/266684/2 "2021-03-11T03:47:26Z")

</div>

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=>
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 8, 2021, 3:48am UTC](https://discuss.elastic.co/t/installing-logstash-output-kusto-plugin-thru-logstash-container-deployment/266684/3 "2021-04-08T03:48:15Z")

</div>

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