Translate error not working

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

here's is my logstash config file

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

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.

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.

1 Like

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