public interface EventConverter<E extends Exceptional>
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder |
configureTemplate(org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder templateBuilder)
Perform some logic against the template builder in order to inject values before the template is built.
|
org.elasticsearch.hadoop.util.BytesArray |
generateEvent(E event,
org.elasticsearch.hadoop.util.ecs.MessageTemplate template)
Converts an event into an ECS compliant document using the given message template.
|
org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder configureTemplate(org.elasticsearch.hadoop.util.ecs.ElasticCommonSchema.TemplateBuilder templateBuilder)
org.elasticsearch.hadoop.util.BytesArray generateEvent(E event, org.elasticsearch.hadoop.util.ecs.MessageTemplate template) throws IOException
event
- Exceptional event to converttemplate
- template to use for conversionIOException