public class ElasticSearchLogStashEventSerializer extends Object implements ElasticSearchEventSerializer
 {
    "@timestamp": "2010-12-21T21:48:33.309258Z",
    "@tags": [ "array", "of", "tags" ],
    "@type": "string",
    "@source": "source of the event, usually a URL."
    "@source_host": ""
    "@source_path": ""
    "@fields":{
       # a set of fields for this event
       "user": "jordan",
       "command": "shutdown -r":
     }
     "@message": "the original plain-text message"
   }
 
 If the following headers are present, they will map to the above logstash
 output as long as the logstash fields are not already present.
 timestamp: long -> @timestamp:Date host: String -> @source_host: String src_path: String -> @source_path: String type: String -> @type: String source: String -> @source: String
://github.com/logstash/logstash/wiki/logstash%27s-internal-message-
      formatcharset| Constructor and Description | 
|---|
| ElasticSearchLogStashEventSerializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | configure(ComponentConfiguration conf) | 
| void | configure(Context context)
 Request the implementing class to (re)configure itself. | 
| org.elasticsearch.common.xcontent.XContentBuilder | getContentBuilder(Event event)Return an  BytesStreammade up of the serialized flume event | 
public ElasticSearchLogStashEventSerializer()
public org.elasticsearch.common.xcontent.XContentBuilder getContentBuilder(Event event) throws IOException
ElasticSearchEventSerializerBytesStream made up of the serialized flume eventgetContentBuilder in interface ElasticSearchEventSerializerevent - The flume event to serializeBytesStream used to write to ElasticSearchIOException - If an error occurs during serializationpublic void configure(Context context)
ConfigurableRequest the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure in interface Configurablepublic void configure(ComponentConfiguration conf)
configure in interface ConfigurableComponentCopyright © 2009-2017 Apache Software Foundation. All Rights Reserved.