Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f0bafdb3baec3bae01983644da9aa6bdcce3f2f7 1 parent 04ae828
Lennart Koopmann lennartkoopmann authored
4 app/models/Converter.java
View
@@ -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());
6 app/views/system/inputs/extractors/converters/lowercase.scala.html
View
@@ -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>
6 app/views/system/inputs/extractors/converters/uppercase.scala.html
View
@@ -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>
4 app/views/system/inputs/extractors/new_extractor.scala.html
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.