logstash-plugins / logstash-filter-translate

Translate filter for Logstash
Apache License 2.0
21 stars 47 forks source link

Docs: Quoted Integer Keys #73

Closed numbnut closed 6 years ago

numbnut commented 6 years ago

Hi, the docs about the 'dictionary_path' property states "Make sure you specify any integer-based keys in quotes.". It would be nice to know some details about it.

  1. Why is this necessary?
  2. Is it necessary for all three formats? This sounds like an unimportant detail, but the YAML lib (pyyaml) that I'm using to create these mapping files doesn't quote integer keys. I'm not that into YAML, but I guess integer keys are valid. Hope this helps to clarify this detail and maybe improve the documentation. Thanks!

https://www.elastic.co/guide/en/logstash/current/plugins-filters-translate.html#plugins-filters-translate-dictionary_path