Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
lowercase/uppercase converters. fixes Graylog2/graylog2-server#458
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Koopmann committed Mar 11, 2014
1 parent 04ae828 commit f0bafdb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/Converter.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public enum Type {
SYSLOG_PRI_LEVEL,
SYSLOG_PRI_FACILITY,
TOKENIZER,
CSV;
CSV,
LOWERCASE,
UPPERCASE;

public static Type fromString(String type) {
return valueOf(type.toUpperCase());
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions app/views/system/inputs/extractors/new_extractor.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ <h2>
<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>
Expand All @@ -116,6 +118,8 @@ <h2>
@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
Expand Down

0 comments on commit f0bafdb

Please sign in to comment.