# Import settings for a Input plugin from an external file

**URL:** https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334
**Category:** Logstash
**Created:** [April 24, 2018, 3:13pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334 "2018-04-24T15:13:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljak/32/40307_2.png) [@ljak](https://discuss.elastic.co/u/ljak)
#### Post date: [April 24, 2018, 3:13pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334/1 "2018-04-24T15:13:19Z")

</div>

Hi everyone,

I'm asking if it is possible to specify a(n) (path to an) external file into the input section. The reference to these external file is not be used for defining an input events streams (like all other available input plug-ins actually...I think) but to access information settings used to specify an other input plug-in (the one used for setting a input event stream).

For instance / Why ?  
I have a config file like ...

> ```
> input {
> couchdb_changes {
> db => "db_name"
> username => "usr"
> password => "pwd"
> initial_sequence => 0
> codec =>"json"
> }
> }
> filter {
> ...
> }
> output {
> ...
> }
> 
> ```

I want to be able to "extract" the sensitive informations (used to access the DB) from an other file to set the logstash config.

Any ideas ?

Thanks !

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [April 24, 2018, 5:07pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334/2 "2018-04-24T17:07:55Z")

</div>

There's no general support for this. What problem are you trying to solve?

---

<div class="post-metadata">

### Author: ![ljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljak/32/40307_2.png) [@ljak](https://discuss.elastic.co/u/ljak)
#### Post date: [April 24, 2018, 6:13pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334/3 "2018-04-24T18:13:22Z")

</div>

Actually, it's quite similar to [https://github.com/elastic/logstash/issues/4744](https://github.com/elastic/logstash/issues/4744)

Thanks for the support.

---

<div class="post-metadata">

### Author: ![ljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljak/32/40307_2.png) [@ljak](https://discuss.elastic.co/u/ljak)
#### Post date: [April 26, 2018, 6:28pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334/4 "2018-04-26T18:28:10Z")

</div>

Hi again,

Maybe I was not clear but the link I posted does not resolve my problem.  
The problem mentioned in the link explicit more the problem. And actually,  
people in the post decide to solve it by extending some functions into the plugin.

I think it does not resolve the problem in general.

So other ideas ?

Thanks

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [April 26, 2018, 7:59pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334/5 "2018-04-26T19:59:05Z")

</div>

> I think it does not resolve the problem in general.

No, of course it doesn't. As I said there is no general support for what you want.

If you explain what problem you're trying to solve maybe someone can suggest a solution.

---

<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: [May 24, 2018, 7:59pm UTC](https://discuss.elastic.co/t/import-settings-for-a-input-plugin-from-an-external-file/129334/6 "2018-05-24T19:59:26Z")

</div>

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