From e02624a8b032ee0f42e59186fcf80525d725163c Mon Sep 17 00:00:00 2001 From: Eric Fontana Date: Mon, 29 Sep 2014 11:14:11 -0400 Subject: [PATCH] Added type to diagnostic json --- TimberWinR/Filters/DateFilter.cs | 1 + TimberWinR/Filters/GeoIPFilter.cs | 1 + TimberWinR/Filters/GrokFilter.cs | 1 + TimberWinR/Filters/JsonFilter.cs | 1 + TimberWinR/Filters/MutateFilter.cs | 1 + 5 files changed, 5 insertions(+) diff --git a/TimberWinR/Filters/DateFilter.cs b/TimberWinR/Filters/DateFilter.cs index 63a1e61..8a431a1 100644 --- a/TimberWinR/Filters/DateFilter.cs +++ b/TimberWinR/Filters/DateFilter.cs @@ -40,6 +40,7 @@ namespace TimberWinR.Parser new JProperty("date", new JObject( new JProperty("condition", Condition), + new JProperty("type", Type), new JProperty("addfields", AddField) ))); return json; diff --git a/TimberWinR/Filters/GeoIPFilter.cs b/TimberWinR/Filters/GeoIPFilter.cs index 9eee0eb..41f51a5 100644 --- a/TimberWinR/Filters/GeoIPFilter.cs +++ b/TimberWinR/Filters/GeoIPFilter.cs @@ -24,6 +24,7 @@ namespace TimberWinR.Parser new JProperty("geoip", new JObject( new JProperty("source", Source), + new JProperty("type", Type), new JProperty("condition", Condition), new JProperty("target", Target) ))); diff --git a/TimberWinR/Filters/GrokFilter.cs b/TimberWinR/Filters/GrokFilter.cs index 290093e..f0b3796 100644 --- a/TimberWinR/Filters/GrokFilter.cs +++ b/TimberWinR/Filters/GrokFilter.cs @@ -42,6 +42,7 @@ namespace TimberWinR.Parser new JProperty("condition", Condition), new JProperty("addfields", AddField), new JProperty("addtags", AddTag), + new JProperty("type", Type), new JProperty("removefields", RemoveField), new JProperty("removetag", RemoveTag) ))); diff --git a/TimberWinR/Filters/JsonFilter.cs b/TimberWinR/Filters/JsonFilter.cs index 11f9831..b3a0314 100644 --- a/TimberWinR/Filters/JsonFilter.cs +++ b/TimberWinR/Filters/JsonFilter.cs @@ -25,6 +25,7 @@ namespace TimberWinR.Parser new JProperty("source", Source), new JProperty("promote", Source), new JProperty("target", Target), + new JProperty("type", Type), new JProperty("addfields", AddField), new JProperty("addtags", AddTag), new JProperty("removefields", RemoveField), diff --git a/TimberWinR/Filters/MutateFilter.cs b/TimberWinR/Filters/MutateFilter.cs index 6fab38b..8ac85e3 100644 --- a/TimberWinR/Filters/MutateFilter.cs +++ b/TimberWinR/Filters/MutateFilter.cs @@ -18,6 +18,7 @@ namespace TimberWinR.Parser new JObject( new JProperty("condition", Condition), new JProperty("splits", Split), + new JProperty("type", Type), new JProperty("rename", Rename), new JProperty("replace", Replace) )));