From 809b3e700a2a3ca81f167732e61127a8ef9420e6 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Mon, 4 Dec 2017 13:05:44 -0800
Subject: [PATCH] Don't index the devstack summary logs

The devstack summary logs are being picked up by logstash workers but
they are a proper subset of the full devstack log which we also index.
Avoid duplicative indexing by excluding the summary file.

This also addresses an issue with crm114 indexing these files with each
of them ending up with its own data dir due to timestamp data in the
filenames.

Change-Id: Ia397a3ceef0bf9f2198b4b6f9956d5b3dc9abcef
---
 roles/submit-logstash-jobs/defaults/main.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/submit-logstash-jobs/defaults/main.yaml b/roles/submit-logstash-jobs/defaults/main.yaml
index a2ead3e8af..194add07f4 100644
--- a/roles/submit-logstash-jobs/defaults/main.yaml
+++ b/roles/submit-logstash-jobs/defaults/main.yaml
@@ -16,7 +16,7 @@ logstash_processor_config:
       tags:
         - console
         - console.html
-    - name: devstacklog\.txt
+    - name: devstacklog\.txt(?!.*summary)
       tags:
         - console
         - console.html