Hello,
I have the following code:
input {
file {
path => "/home/path/files/*.csv"
start_position => "beginning"
}
}
filter {
csv {
columns => [ "xx1","xx2","xx3","xx4","Response","TimeStamp","Username","xx5" ]
}
date {
match => [ "TimeStamp", "yyyyMMddHHmmss" ]
locale => "en"
}
translate {
dictionary_path => "/home/mihai/prefixes_trimmed.csv"
field => "xx4"
destination => "name"
fallback => "Unknown Name"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "mihai"
}
}
The prefix is a substring of first 5 or 6 digits from xx4 field. I expect the variable "name" to contain the second column from prefixes_trimmed.csv, if a prefix match is made.
When tested, nothing is happening, no data is inserted.
Can you please help me with the correct translate sentence to make this work?
Best Regards,
Mihai Radulescu