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

Add support for providing CEF Extensions as a map while encoding. #68

Open
Laikulo opened this issue May 7, 2019 · 0 comments
Open

Comments

@Laikulo
Copy link

Laikulo commented May 7, 2019

This would allow dynamic management of fields to be appended. Particularly useful with inter-pipeline communication.

Config Mockup:

input {
  heartbeat {
    add_field => {
      "[@metadata][cef_extensions]" => {}
      "[rt]" => "%{+s}"
    }
  }
}

filter {
  mutate {
    copy => {
      "[counter]" => "[@metadata][cef_extensions][counter]"
    }
  }
}

output {
  stdout {
    codec => cef {
      extensions_from => "[@metadata][cef_extensions]"
      fields => ["[rt]"]
      [...]
    }
  }
}

Example Output

CEF:0|SomeVendor|SomeProduct|0.0.1|msg|Message|6|counter=1 rt=1557255119000
CEF:0|SomeVendor|SomeProduct|0.0.1|msg|Message|6|counter=2 rt=1557255179000
CEF:0|SomeVendor|SomeProduct|0.0.1|msg|Message|6|counter=3 rt=1557255209000

+tag: enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant