You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mario Eppig (Jira)" <ji...@apache.org> on 2022/07/19 09:53:00 UTC
[jira] [Created] (NIFI-10250) ListenHTTP processor : Add query string to the attributes
Mario Eppig created NIFI-10250:
----------------------------------
Summary: 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
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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)