[ 
https://issues.apache.org/jira/browse/NIFI-10250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mario Eppig updated NIFI-10250:
-------------------------------
    Description: 
The idea is to have the query string of the request as an attribute.

Simple solution could be to add the whole query string as 1 attribute similar 
to the request URI here: 
[https://github.com/apache/nifi/blob/aa741cc5967f62c3c38c2a47e712b7faa6fe19ff/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/servlets/ListenHTTPServlet.java#L341]

More advanced solution could be to extract certain query parameters similar to 
the option "HTTP Headers to receive as Attributes (Regex)" that stores certain 
headers as attribute.

Example :
 * /write?db=test&precision=ms : route to test processor
 * /write?db=prod&precision=ms : route to prod processor

 

Related issue: NIFI-4999

  was:
The idea is to have the query string of the request as an attribute.

Simple solution could be to add the whole query string as 1 attribute similar 
to the request URI here: 
[https://github.com/apache/nifi/blob/aa741cc5967f62c3c38c2a47e712b7faa6fe19ff/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/servlets/ListenHTTPServlet.java#L341]

More advanced solution could be to extract certain query parameters similar to 
the option "HTTP Headers to receive as Attributes (Regex)" that stores certain 
headers as attribute.

Example :
 * /write?db=test&precision=ms : route to test processor
 * /write?db=prod&precision=ms : route to fluentd processor

 

Related issue: NIFI-4999


> ListenHTTP processor : Add query string to the attributes
> ---------------------------------------------------------
>
>                 Key: NIFI-10250
>                 URL: https://issues.apache.org/jira/browse/NIFI-10250
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: 1.16.3
>            Reporter: Mario Eppig
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The idea is to have the query string of the request as an attribute.
> Simple solution could be to add the whole query string as 1 attribute similar 
> to the request URI here: 
> [https://github.com/apache/nifi/blob/aa741cc5967f62c3c38c2a47e712b7faa6fe19ff/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/servlets/ListenHTTPServlet.java#L341]
> More advanced solution could be to extract certain query parameters similar 
> to the option "HTTP Headers to receive as Attributes (Regex)" that stores 
> certain headers as attribute.
> Example :
>  * /write?db=test&precision=ms : route to test processor
>  * /write?db=prod&precision=ms : route to prod processor
>  
> Related issue: NIFI-4999



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to