# Translate error not working

**URL:** <https://discuss.elastic.co/t/translate-error-not-working/287118>\
**Category:** Logstash\
**Created:** [October 19, 2021, 3:31pm UTC](https://discuss.elastic.co/t/translate-error-not-working/287118 "2021-10-19T15:31:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [October 19, 2021, 3:31pm UTC](https://discuss.elastic.co/t/translate-error-not-working/287118/1 "2021-10-19T15:31:02Z")

</div>

Hello .. i am trying to use translate filter in my logstash config file but im getting below error

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/adee51babd4c116850a51e7982fc32113bb9cb0f.png)

here's is my logstash config file

```auto
input {
  tcp {
    port => 9563
    codec => plain { charset=>"UTF-8" }
  }
}
filter {
        translate {
                source => "[message]"
				dictionary_path => "/etc/logstash/conf.d/vsphere/pdl/vsphere_esxi_lookup.csv"
        }
}
output {
	stdout {
			codec => rubydebug
			}
}

```

appreciate any help

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [October 19, 2021, 5:22pm UTC](https://discuss.elastic.co/t/translate-error-not-working/287118/2 "2021-10-19T17:22:43Z")

</div>

What version are you using?  
I think you may be using newer docs than what is installed on your system.  
The "source" configuration option was introduced in version 3.3.0 (released in June 2021).

The previous configuration option is called "field" so try using that instead.

> <https://github.com/logstash-plugins/logstash-filter-translate/blob/e3670bb3137437ad05a90036a90b4711a67e04ea/CHANGELOG.md>

```auto
input {
  tcp {
    port => 9563
    codec => plain { charset=>"UTF-8" }
  }
}
filter {
        translate {
                field => "[message]"
		dictionary_path => "/etc/logstash/conf.d/vsphere/pdl/vsphere_esxi_lookup.csv"
        }
}
output {
	stdout {
			codec => rubydebug
			}
}

```

Alternatively you can upgrade your logstash or the filter plugin to the latest version.

---

<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:** [November 16, 2021, 5:22pm UTC](https://discuss.elastic.co/t/translate-error-not-working/287118/3 "2021-11-16T17:22:53Z")

</div>

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