<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: update a get request to elastic search in nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217814#M81863</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;&lt;P&gt;Can you add something on it&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 13:18:17 GMT</pubDate>
    <dc:creator>kumarvaibhav199</dc:creator>
    <dc:date>2018-08-09T13:18:17Z</dc:date>
    <item>
      <title>update a get request to elastic search in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217813#M81862</link>
      <description>&lt;P&gt;I'm trying to hit a get request on my elastic search index using JSONelastisearchprocessor in NIFI. Now, for each flow file i have some incoming attributes, based on that i need to generate different get request and store the response somewhere.&lt;/P&gt;&lt;P&gt;The list of processors i'm using is as below:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Getfile (to read JSON file)&lt;/LI&gt;&lt;LI&gt;Evaluate JSON path (To extract the attributes which i want to use with every get request, PROC_INST_ID_ in this case )&lt;/LI&gt;&lt;LI&gt;JSON queryelastic search (to hit the request with the below )&lt;/LI&gt;&lt;LI&gt;PUTfile to store the response&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Request body&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "query": {
    "nested": {
      "path": "los",
      "query": {
        "bool": {
          "must": [
            { "match": { "los.${proc_ins_id}":"784525" }},
            { "match": { "los._source.cibilPermission.VALUE_":"1" }}
          ]
        }
      }
    }
  }
}
&lt;/PRE&gt;&lt;P&gt;I can't see the request being genrated and not getting any response instead i'm only getting the value of proc_ins_id as reponse in putfile. Can someone suggest some appropriate way to do this?&lt;/P&gt;&lt;P&gt;Attaching relevant screenshots as well for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86418-evaluate-json-path.png" style="width: 1920px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16113iF530A7D463745A5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="86418-evaluate-json-path.png" alt="86418-evaluate-json-path.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86417-flow.png" style="width: 1920px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16114i02318875BF85EBAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="86417-flow.png" alt="86417-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:54:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217813#M81862</guid>
      <dc:creator>kumarvaibhav199</dc:creator>
      <dc:date>2019-08-18T02:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: update a get request to elastic search in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217814#M81863</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt;&lt;P&gt;Can you add something on it&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 13:18:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217814#M81863</guid>
      <dc:creator>kumarvaibhav199</dc:creator>
      <dc:date>2018-08-09T13:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: update a get request to elastic search in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217815#M81864</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11938/kumarvaibhav1992.html" nodeid="11938" target="_blank"&gt;@Vaibhav Kumar&lt;/A&gt;&lt;P&gt;Please change EvaluateJsonPath processor configs &lt;B&gt;Destination to flowfile-attribute&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="85572-evaljson.png" style="width: 1183px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16110iEDF551E1DDA61F56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="85572-evaljson.png" alt="85572-evaljson.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now the processor will add the attribute to the flowfile then in JsonQueryElasticSearch processor will gets the attribute value and runs the query on ElasticSearch.&lt;/P&gt;&lt;P&gt;With &lt;STRONG&gt;Destination as flowfile-content&lt;/STRONG&gt; will overwrites the existing flowfile content with &lt;STRONG&gt;PROC_INST_ID_ &lt;/STRONG&gt;value.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;JsonQueryElasticSearch Relationships:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="85574-relationships.png" style="width: 2836px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16111iF981898339EE3041/image-size/medium?v=v2&amp;amp;px=400" role="button" title="85574-relationships.png" alt="85574-relationships.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Only feed the required relationships to PutFile processor i.e. hits (or) aggregations&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="85575-flow.png" style="width: 1593px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16112iE02FA22156817AC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="85575-flow.png" alt="85575-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:54:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217815#M81864</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T02:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: update a get request to elastic search in nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217816#M81865</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 20:38:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/update-a-get-request-to-elastic-search-in-nifi/m-p/217816#M81865</guid>
      <dc:creator>kumarvaibhav199</dc:creator>
      <dc:date>2018-08-09T20:38:10Z</dc:date>
    </item>
  </channel>
</rss>

