logstash/logstash — pull request #119 by gja (2012-03-06 14:42:29+00:00)
Title: Added a filter to add fields from environment variables

I'm using logstash to read from stdin to avoid disk IO on some VMs.

I want to use environment variables to pass extra information to logstash, that will be sent on every message.

usage:

filter {
environment {
add_field_from_env ["path", "PATH"]
}
}

Similar to: https://groups.google.com/forum/#!msg/logstash-users/rB8gFlSW2EE/mL4djTkl4awJ