Skip to content

Instantly share code, notes, and snippets.

@andrewvc
Created March 6, 2016 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewvc/dc39f793c876d279c298 to your computer and use it in GitHub Desktop.
Save andrewvc/dc39f793c876d279c298 to your computer and use it in GitHub Desktop.
input {
generator {
message => "baz=bot blah=bar"
count => 10000000
}
}
filter {
kv {}
mutate {
add_field => {foo => bar}
}
}
output {
stdout {
codec => dots
}
}
---
graph:
log-reader:
component: input-generator
options: {"message": "baz=bot blah=bar", "count": 10000000}
to: [main-queue]
main-queue:
component: queue-synchronous
to: [hello-kv]
hello-kv:
component: filter-kv
to: [main-out]
field-adder:
component: filter-mutate
options:
add_field:
foo: bar
main-out:
component: output-stdout
options:
codec: dots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment