Hey Guys,
We have logstash using redis input plugin, and use pattner_channel to match multiple channels, how to get the info to the either event or message.
I see people post same question and use add_field, but those example with static key, not dynamic, just want to know if this is supported.
for example:
input {
redis {
host => "127.0.0.1"
type => "redis-input"
data_type => "pattern_channel"
key => "logstash*"
format => "json_event"
}
}
and we have following matched pattern, how to add that to the message or event ?
- "logstash-nodelog-2014.03.07.17"
- "logstash-javalog-2014.03.07.15"
- "logstash-applog-2014.03.07.14"
- "logstash-catalina-2014.03.08.23"
- "logstash-applog-2014.03.08.23"
- "logstash-catalina-2014.03.07.15"
- "logstash-nodelog-2014.03.07.14"
- "logstash-javalog-2014.03.07.14"
- "logstash-nodelog-2014.03.08.23"
- "logstash-applog-2014.03.07.15"
- "logstash-javalog-2014.03.08.23"