Skip to content
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

Enrichment rule #108

Closed
vklimontovich opened this issue Nov 11, 2020 · 0 comments · Fixed by #116
Closed

Enrichment rule #108

vklimontovich opened this issue Nov 11, 2020 · 0 comments · Fixed by #116
Assignees

Comments

@vklimontovich
Copy link
Contributor

vklimontovich commented Nov 11, 2020

Concept

Enrichment rule is a piece of business logic that transforms original JSON event. The rule properties are:

  • Input: JSON node path as /json/path
  • Output: JSON node path as /json/out
  • Rule: string

The rule takes should be represented as F(json_node) → json_node.

Supported rules

So far we need to support two rules:

  • ip_lookup
  • user_agent_parse

We already have the code, we just need to wrap it into new structures.

Rules configuration

Rules should be configured on per destination basis:

destinations:
  destination_name:
    enrichment:
       - 
          name: ip_lookup
          from: /ip_address
          to: /geo/

Implicit rules

Some rules should always exist. They mainly needed for events coming from web browser

    enrichment:
       - 
          name: ip_lookup
          from: /source_ip
          to: /eventn_ctx/location
       - 
          name:  user_agent_parse
          from: /eventn_ctx/user_agent
          to: /eventn_ctx/parsed_ua     

Also, It is supported in server to server integration

    enrichment:
       - 
          name: ip_lookup
          from: /device_ctx/location/ip
          to: /eventn_ctx/location
       - 
          name:  user_agent_parse
          from: /device_ctx/user_agent
          to: /eventn_ctx/parsed_ua     
@xtreding xtreding added the [GO] label Nov 13, 2020
@xtreding xtreding added this to Backlog in EventNative dev via automation Nov 13, 2020
@xtreding xtreding moved this from Backlog to Todo in EventNative dev Nov 13, 2020
@xtreding xtreding moved this from Todo to In progress in EventNative dev Nov 16, 2020
@xtreding xtreding linked a pull request Nov 18, 2020 that will close this issue
EventNative dev automation moved this from In progress to Done Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants