-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/20601/#review41786
-----------------------------------------------------------



flume-ng-doc/sphinx/FlumeUserGuide.rst
<https://reviews.apache.org/r/20601/#comment75384>

    substituion should be spelt substitution.
    
    I would probably also add that the date time will be appended to 
substituted values too.



flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/AbstractElasticSearchIndexRequestBuilderFactory.java
<https://reviews.apache.org/r/20601/#comment75385>

    Is there anyway this substitution can be used as an attack? i.e. we are now 
allowing event submitters to provide part of the URL used to submit the event 
to elasticsearch (if using the REST client). Could an attacker craft something 
nefarious?


- Edward Sargisson


On April 22, 2014, 8:05 p.m., Satoshi Iijima wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/20601/
> -----------------------------------------------------------
> 
> (Updated April 22, 2014, 8:05 p.m.)
> 
> 
> Review request for Flume.
> 
> 
> Repository: flume-git
> 
> 
> Description
> -------
> 
> The ElasticSearchSink would be improved by allowing for header substitution 
> in the indexName and indexType property.
> A use case is where the sink is an intermediate part of a chain and the index 
> name is required to identify the message origin, at present it can only be a 
> hardcoded value.
> The HDFS sink already supports header substitution so a similar format would 
> maintain consistency.
> 
> Example is below:
> 
> a1.sinks.k1.type = elasticsearch
> a1.sinks.k1.indexName = %{index-name}
> a1.sinks.k1.indexType = %{index-type}
> a1.sinks.k1.hostNames = 127.0.0.1:9200
> a1.sinks.k1.channel = c1
> 
> 
> Diffs
> -----
> 
>   flume-ng-doc/sphinx/FlumeUserGuide.rst 7b918ed 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/AbstractElasticSearchIndexRequestBuilderFactory.java
>  de84b95 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/ElasticSearchSink.java
>  39b6db5 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/SimpleIndexNameBuilder.java
>  19079af 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/TimeBasedIndexNameBuilder.java
>  a8603a4 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/client/ElasticSearchRestClient.java
>  ff95e30 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/main/java/org/apache/flume/sink/elasticsearch/client/ElasticSearchTransportClient.java
>  e9ed0b4 
>   
> flume-ng-sinks/flume-ng-elasticsearch-sink/src/test/java/org/apache/flume/sink/elasticsearch/TestElasticSearchIndexRequestBuilderFactory.java
>  807a9c7 
> 
> Diff: https://reviews.apache.org/r/20601/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Satoshi Iijima
> 
>

Reply via email to