-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance multi-field lookup enrichment #44
Comments
As a workaround, or perhaps solution, you can achieve, today, what you
describe by using multiple translate filters.
…On Fri, Mar 17, 2017 at 9:42 PM Alvin Chen ***@***.***> wrote:
Translate supports JSON, CSV, and YAML file lookups. Each of these formats
support some type of multi-field lookup; for JSON and YAML its
heirarchical, and in CSV, a lookup on a key could reference multiple values
in the row.
Currently, these lookups are possible, but will result in a complex object
in the "destination" or self defined field. We should allow for these
multi-field lookups to just add new top level fields for enriching the
event.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#44>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIC6hcJInFRO2c7fK_KeRT9nSbvaSMxks5rm2CqgaJpZM4MhSuZ>
.
|
I agree. Basically, what I need is this -
The objective is to use the same reference file to replace multiple fields with values. If I use multiple translate filters it will re-load the same file multiple times(?) Kindly confirm. |
+1 |
Yes. What is your concern with this? |
+1 I need this. |
This would be a nice new feature for data enrichment! For example, for username data enrichment using a CSV/JSON file, you would be able to add full name, department, office, etc, at the same time with just one call to translate filter. |
It seems like the requested feature links multiple
This, however, would mean that the dictionary holds keys and values from multiple domains. On the other hand I can see scenarios where an event has several field values in the same domain, e.g. src_ip/dest_ip or from_id/to_id. |
As regards the original proposal of having multi-valued translations added to the root of an event, the problem lies with the The question is how to accommodate a multi-field lookup value with a string My advice would be to use a CSV dictionary followed by a Dissect filter. The lookup value and fallback value should have the same structure then one can apply the Dissect filter regardless of match or no match. |
I have created a PR #67 that adds support for With this one can achieve multiple field translations. First build an field with array values , say, |
Translate supports JSON, CSV, and YAML file lookups. Each of these formats support some type of multi-field lookup; for JSON and YAML its heirarchical, and in CSV, a lookup on a key could reference multiple values in the row.
Currently, these lookups are possible, but will result in a complex object in the "destination" or self defined field. We should allow for these multi-field lookups to just add new top level fields for enriching the event.
The text was updated successfully, but these errors were encountered: