Permalink
Browse files

lowercase/uppercase converters. fixes Graylog2/graylog2-server#458

  • Loading branch information...
1 parent 04ae828 commit f0bafdb3baec3bae01983644da9aa6bdcce3f2f7 @lennartkoopmann lennartkoopmann committed Mar 11, 2014
@@ -34,7 +34,9 @@
SYSLOG_PRI_LEVEL,
SYSLOG_PRI_FACILITY,
TOKENIZER,
- CSV;
+ CSV,
+ LOWERCASE,
+ UPPERCASE;
public static Type fromString(String type) {
return valueOf(type.toUpperCase());
@@ -0,0 +1,6 @@
+<div class="xtrc-converter xtrc-converter-lowercase">
+ <label class="checkbox">
+ <input type="checkbox" value="enabled" name="converter_lowercase">
+ Lowercase transform value
+ </label>
+</div>
@@ -0,0 +1,6 @@
+<div class="xtrc-converter xtrc-converter-uppercase">
+ <label class="checkbox">
+ <input type="checkbox" value="enabled" name="converter_uppercase">
+ Uppercase transform value
+ </label>
+</div>
@@ -97,6 +97,8 @@
<option value="number">Numeric</option>
<option value="date">Date</option>
<option value="hash">Hash</option>
+ <option value="lowercase">Lowercase</option>
+ <option value="uppercase">Uppercase</option>
<option value="split-and-count">Split & Count</option>
<option value="tokenizer">Key=Value pairs to fields</option>
<option value="csv">CSV to fields</option>
@@ -116,6 +118,8 @@
@views.html.system.inputs.extractors.converters.ip_anonymizer()
@views.html.system.inputs.extractors.converters.tokenizer()
@views.html.system.inputs.extractors.converters.csv()
+ @views.html.system.inputs.extractors.converters.lowercase()
+ @views.html.system.inputs.extractors.converters.uppercase()
<div class="alert alert-info">
Please note that you cannot use the cutting feature on standard fields

0 comments on commit f0bafdb

Please sign in to comment.