# Logstash translate dictionary\_path using http

**URL:** <https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159>\
**Category:** Logstash\
**Created:** [February 5, 2019, 4:20pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159 "2019-02-05T16:20:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcDAFrame](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcdaframe/32/40026_2.png) [@MarcDAFrame](https://discuss.elastic.co/u/MarcDAFrame)\
**Post date:** [February 5, 2019, 4:20pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159/1 "2019-02-05T16:20:51Z")

</div>

is there anyway to provide Logstash with a dictionary path over http?

```
  filter {
    ...
    translate {
      dictionary_path => "http://0.0.0.0:8000/dictionary.yml"
      ...
    }
  }

```

or what are the alternatives ?

I have a few log stash distributed that all need the same copy of a dictionary that I would rather just have updated in one place.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 5, 2019, 4:37pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159/2 "2019-02-05T16:37:30Z")

</div>

> [@MarcDAFrame](#):
>
> is there anyway to provide Logstash with a dictionary path over http?

No. The existing [code](https://github.com/logstash-plugins/logstash-filter-translate/blob/5e0705a6d92dc4d7fc128da8b4d1b9adf3dc7afe/lib/logstash/filters/dictionary/file.rb#L12) expects to read a local file using IO.read.

---

<div class="post-metadata">

**Author:** ![MarcDAFrame](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcdaframe/32/40026_2.png) [@MarcDAFrame](https://discuss.elastic.co/u/MarcDAFrame)\
**Post date:** [February 5, 2019, 5:27pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159/3 "2019-02-05T17:27:34Z")

</div>

is there anything within Logstash that could help with this?

our alternative is to create a bash script that would pull the new version and then restart Logstash

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 5, 2019, 5:48pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159/4 "2019-02-05T17:48:10Z")

</div>

> [@MarcDAFrame](#):
>
> our alternative is to create a bash script that would pull the new version and then restart Logstash

By default the filter will check for an updated file and re-read it every 300 seconds. You can adjust that timing using the refresh\_interval option.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 5, 2019, 7:44pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159/5 "2019-02-05T19:44:32Z")

</div>

[https://www.elastic.co/guide/en/logstash/current/plugins-filters-http.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-http.html) maybe?

---

<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:** [March 5, 2019, 7:44pm UTC](https://discuss.elastic.co/t/logstash-translate-dictionary-path-using-http/167159/6 "2019-03-05T19:44:33Z")

</div>

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