define name of value column

The name of the column containing the value is now part of the
csv settings. This allows us to use different names than "duration".
This commit is contained in:
2019-12-14 08:34:33 +01:00
parent 204c258980
commit 7737d45887
5 changed files with 27 additions and 14 deletions

View File

@@ -67,7 +67,7 @@ public final class IngestionHandler implements Callable<Void> {
} else {
in.reset();
final CsvToEntryTransformer csvTransformer = new CsvToEntryTransformer(queue,
CsvReaderSettings.create("@timestamp", ','));
CsvReaderSettings.create("@timestamp", "duration", ','));
csvTransformer.readCSV(in);
}
}