All issues

undefined method `flat_map' for nil:NilClass when conditional on an output
LOGSTASH-2288
Logstash 1.4.2 RPM Creation (auto-dependencies)
LOGSTASH-2287
nagios_nsca plugin not working
LOGSTASH-2286
1.4.2 crash for unknown reason
LOGSTASH-2285
ArgumentError: invalid byte sequence in UTF-8
LOGSTASH-2284
Logstash (node client) haphazardly connects to Elasticsearch
LOGSTASH-2283
http output plugin leaks FDs
LOGSTASH-2282
S3 input config - credentials never nil
LOGSTASH-2281
S3 configuration doesn't work when loaded via folder
LOGSTASH-2280
Process dies when trying to *use* it.
LOGSTASH-2279
"java.lang.OutOfMemoryError: Java heap space" when using rabbitmq input (march_hare variant) with ack => false
LOGSTASH-2278
RabbitMQ input should support multi ack
LOGSTASH-2277
RabbitMQ input (march_hare variant) uses incorrect connection url
LOGSTASH-2276
logstash crash when elasticsearch output no longer reachable
LOGSTASH-2275
multiline codec: logstash getting blocked
LOGSTASH-2274
Logstash does not appear to cleanup after itself well (specifically S3)
LOGSTASH-2273
kv filter: support escaped quotes
LOGSTASH-2272
contrib zabbix plugin - zabbix_sender [805]: Warning: incorrect answer from server []
LOGSTASH-2271
redis input reconnect
LOGSTASH-2270
Zabbix plugin crash
LOGSTASH-2269
How to troubleshoot Exception: java.lang.ThreadDeath
LOGSTASH-2268
One output blocking will block all outputs.
LOGSTASH-2267
Documentation for metrics filter uses wrong example
LOGSTASH-2266
How to consume Logstash's own messages?
LOGSTASH-2265
"make package" is a bit fragile
LOGSTASH-2264
filter chaining question
LOGSTASH-2263
Guidance on lookup
LOGSTASH-2262
Remove unneeded fields in elasticsearch template
LOGSTASH-2261
Redis output balancing
LOGSTASH-2260
file input plugin overrides "path" field in json
LOGSTASH-2259
Critical error in multiline filter plugin
LOGSTASH-2258
plugin install contrib fails
LOGSTASH-2257
contrib plugin: cipher filter, base64 encoding bug on encryption, support for random IVs
LOGSTASH-2256
sqs input does not work after a while
LOGSTASH-2255
sqs input does not work after a while
LOGSTASH-2254
Mixed up Init and upstart configs and process.
LOGSTASH-2253
Exclude .gitignore files from the release tarballs
LOGSTASH-2252
fingerprint punctuation doesn't just leave punctuation
LOGSTASH-2251
[ES_master] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]
LOGSTASH-2250
Contrib distribution overwrites some files in Logstash
LOGSTASH-2249
Logstash contrib plugin manual installation steps are not correct
LOGSTASH-2248
Logstash crashs and Google BigQuery feature upgrade
LOGSTASH-2247
UndefinedConversionError with UTF-8 encoding in xml plugin
LOGSTASH-2246
Input imap - undefined method encode for nil:NilClass
LOGSTASH-2245
Running logstash with wildcard configuration fails
LOGSTASH-2244
Make it configurable, in what timezone events are written to the output
LOGSTASH-2243
Logstash JMX input plugin doesn't support add_field
LOGSTASH-2242
logstash takes forever to run, even just 'logstash version'
LOGSTASH-2241
fingerprint filter fails on Windows for SHA & MD5
LOGSTASH-2240
Unable to stop Logstash with a unix input
LOGSTASH-2239
issue 1 of 2283

undefined method `flat_map' for nil:NilClass when conditional on an output

Description

Using the following config + the latest code as of 9/19/14, this error is thrown when the output receives an event:

(eval):22:in `block in initialize': undefined method `flat_map' for nil:NilClass (NoMethodError)
from /media/truecrypt1/git/danielredoak/logstash/lib/logstash/pipeline.rb:272:in `call'
from /media/truecrypt1/git/danielredoak/logstash/lib/logstash/pipeline.rb:272:in `output'
from /media/truecrypt1/git/danielredoak/logstash/lib/logstash/pipeline.rb:231:in `outputworker'
from /media/truecrypt1/git/danielredoak/logstash/lib/logstash/pipeline.rb:160:in `block in start_outputs'

Config Ex:

Related file, code starts at 328:
https://github.com/elasticsearch/logstash/blob/4211522de1cf996891c6b93f93ba1ab4e408d587/lib/logstash/config/config_ast.rb#L328

Environment

None

Status

Assignee

Colin Surprenant

Reporter

Ryan O'Keeffe

Labels

None

Fix versions

Affects versions

Priority

Configure