Hi, I have been using the translate plugin that works great however I have multiple fields that all reference to the one field used for the translate. So is it possible to use the translate plugin to lookup a value against a file and return multiple fields that is then loaded into ES?
Here is what I am currently using in the filter:
...
translate {
field => "Calling"
destination => "Calling_Name"
dictionary_path => "/opt/.../calling_name.yaml"
}
...
The translate file looks currently as follows:
...
"1001": "OK"
"1002": "failed"
Here is what I would like to achive:
Lookup multiple fields e.g.
translate field
...
"1001": "field1,field2,field3,..."
...
The 1001 is the reference field then return all the different field1 to field3.
It's not entirely clear what result you want to achieve for an event with Calling=1001. That said, the translate lookup returns a single value, but that value could be processed with other filters like csv, json, or kv.
Apologies, yes I would like to process the value returned from the translate lookup. Do you have an example maybe how to process a returned value separated by a comma?
Apologies, I was not able to respond earlier. Thank you for the last chance, I will try and make it as clear as possible.
The current section and what I would like to achieve section could be the current challenge that is causing confusion.
When using filter [quote="Hans, post:1, topic:64590"]
...
translate {
field => "Calling"
destination => "Calling_Name"
dictionary_path => "/opt/.../calling_name.yaml"
}
...
[/quote]
The file being called [quote="Hans, post:1, topic:64590"]
dictionary_path => "/opt/.../calling_name.yaml"
[/quote] should looks something like this:
Now the field [quote="Hans, post:1, topic:64590"]
destination => "Calling_Name"
[/quote] field has multiples values of information separated by ",". How can I now split the field [quote="Hans, post:1, topic:64590"]
Calling_Name
[/quote] to index the fields individually in elasticsearch and not as one long string? Also can I use a CSV filter on this field to add the field name?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.