From e67fe07f955e424477222c7b7eec178810894878 Mon Sep 17 00:00:00 2001 From: Tudor Golubenco Date: Wed, 12 Apr 2017 13:33:00 +0200 Subject: [PATCH] Don't stop Filebeat when modules + logstash are used together (#3929) (#3999) To simplify the migration from Ingest Node to Logstash, we replace the hard error ("Filebeat modules require an Elasticsearch output defined") with a warning. (cherry picked from commit 12c69b3e25f6931b2abc7242b6011cf46855500f) --- filebeat/beater/filebeat.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/filebeat/beater/filebeat.go b/filebeat/beater/filebeat.go index 878b830a7fc5..0ac217ac1568 100644 --- a/filebeat/beater/filebeat.go +++ b/filebeat/beater/filebeat.go @@ -75,7 +75,11 @@ func New(b *beat.Beat, rawConfig *common.Config) (beat.Beater, error) { func (fb *Filebeat) modulesSetup(b *beat.Beat) error { esConfig := b.Config.Output["elasticsearch"] if esConfig == nil || !esConfig.Enabled() { - return fmt.Errorf("Filebeat modules configured but the Elasticsearch output is not configured/enabled") + logp.Warn("Filebeat is unable to load the Ingest Node pipelines for the configured" + + " modules because the Elasticsearch output is not configured/enabled. If you have" + + " already loaded the Ingest Node pipelines or are using Logstash pipelines, you" + + " can ignore this warning.") + return nil } esClient, err := elasticsearch.NewConnectedClient(esConfig) if err != nil {