<?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: JOLT Guide for Apache NiFi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/413555#M254133</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136677"&gt;@hckorkmaz01&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was testing one way that in CFM didn't worked, but in your case, in NiFi directly, it may work, you can test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under NiFi settings, create a reporting task like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vafs_0-1771203263797.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46621i4F1FCB6BE5BD821B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vafs_0-1771203263797.png" alt="vafs_0-1771203263797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will need to use this&amp;nbsp;QueryNiFiReportingTask.&amp;nbsp;&lt;BR /&gt;This query should work for what you need:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT&lt;BR /&gt;QUEUE_ID,&lt;BR /&gt;QUEUE_NAME,&lt;BR /&gt;FLOWFILE_COUNT,&lt;BR /&gt;CONTENT_SIZE&lt;BR /&gt;FROM FLOWFILE_QUEUE_STATS&lt;/PRE&gt;&lt;P&gt;Then save the output to either log or any other method you prefer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option I was thinking is to use&amp;nbsp;InvokeHTTP processor.&amp;nbsp;&lt;BR /&gt;To get the information you need.&amp;nbsp;&lt;BR /&gt;That will be in NiFi but using the REST API:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GET &lt;A href="https://community.cloudera.com/" target="_blank"&gt;http://localhost:8080/nifi-api/flow/process-groups/&amp;lt;PG_ID&amp;gt;/connections&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;That could be an option for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe test this and let us know if that worked.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Feb 2026 00:57:44 GMT</pubDate>
    <dc:creator>vafs</dc:creator>
    <dc:date>2026-02-16T00:57:44Z</dc:date>
    <item>
      <title>JOLT Guide for Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/412892#M254011</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone, I hope you’re doing well. I am working on a dataflow in Apache NiFi 1.18, and I need to retrieve the queue size information (flowfile count and content size) directly within NiFi itself, not via an external script or Postman. I know that the NiFi REST API provides this data, and I can access it successfully using external tools. However, my goal is to access queue metrics from inside NiFi, for example through processors like InvokeScriptedProcessor, QueryNiFiReportingTask, or any other built-in mechanism, without sending an external REST API request from outside NiFi. Is there a recommended approach, processor, or reporting task that allows NiFi to read its own queue sizes internally? If not, what would be the best practice to achieve this? Any guidance or examples would be greatly appreciated. Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="host-lopnbnfpjmgpbppclhclehhgafnifija"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="host-lopnbnfpjmgpbppclhclehhgafnifija"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Jan 2026 06:23:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/412892#M254011</guid>
      <dc:creator>hckorkmaz01</dc:creator>
      <dc:date>2026-01-13T06:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: JOLT Guide for Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/413555#M254133</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136677"&gt;@hckorkmaz01&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was testing one way that in CFM didn't worked, but in your case, in NiFi directly, it may work, you can test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under NiFi settings, create a reporting task like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vafs_0-1771203263797.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46621i4F1FCB6BE5BD821B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vafs_0-1771203263797.png" alt="vafs_0-1771203263797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will need to use this&amp;nbsp;QueryNiFiReportingTask.&amp;nbsp;&lt;BR /&gt;This query should work for what you need:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT&lt;BR /&gt;QUEUE_ID,&lt;BR /&gt;QUEUE_NAME,&lt;BR /&gt;FLOWFILE_COUNT,&lt;BR /&gt;CONTENT_SIZE&lt;BR /&gt;FROM FLOWFILE_QUEUE_STATS&lt;/PRE&gt;&lt;P&gt;Then save the output to either log or any other method you prefer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option I was thinking is to use&amp;nbsp;InvokeHTTP processor.&amp;nbsp;&lt;BR /&gt;To get the information you need.&amp;nbsp;&lt;BR /&gt;That will be in NiFi but using the REST API:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GET &lt;A href="https://community.cloudera.com/" target="_blank"&gt;http://localhost:8080/nifi-api/flow/process-groups/&amp;lt;PG_ID&amp;gt;/connections&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;That could be an option for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe test this and let us know if that worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 00:57:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/413555#M254133</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2026-02-16T00:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: JOLT Guide for Apache NiFi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/413557#M254135</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/136677"&gt;@hckorkmaz01&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114383"&gt;@vafs&lt;/a&gt;&amp;nbsp;provided a couple excellent options already.&lt;BR /&gt;&lt;BR /&gt;As a third option, you could utilize the&amp;nbsp;&lt;A href="https://nifi.apache.org/components/org.apache.nifi.reporting.SiteToSiteStatusReportingTask/" target="_blank" rel="noopener"&gt;SiteToSiteStatusReportingTask&lt;/A&gt;.&amp;nbsp; You can configure this NiFi reporting task to send metrics for only connections and you can add a regex to limited the number of connections returned (this requires renaming the desired connections so you have more granular control with the regex).&amp;nbsp; This Reporting task can be configured to send to a remote input port on on the same NiFi.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Reporting task will execute the query on each host in your NiFi Cluster and send results to the the desired Site-To-Site remote input port.&amp;nbsp; &amp;nbsp;So in a three node NiFi cluster three FlowFiles will be produced and sent with Json content for connection(s) you filtered on.&amp;nbsp; &amp;nbsp;This way you can see what is queued per node.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Limitations to monitoring connections in this way exist.&amp;nbsp; Keep in mind that you are grabbing a snapshot at one specific moment in time.&amp;nbsp; So if the downstream component of this monitored connection is running, the connection stat would have likely changed by the time you got the last status details.&amp;nbsp; &amp;nbsp;Now if you are using this to monitor flow dead-ends where you don't expect FlowFiles to ever accumulate, that is perhaps a valid use case.&lt;BR /&gt;&lt;BR /&gt;Example json output placed in FlowFile:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ {
  "statusId" : "27b01368-8280-4e5e-ac22-0e749c46fe17",
  "timestampMillis" : 1771336855410,
  "timestamp" : "2026-02-17T14:00:55.410Z",
  "actorHostname" : "nifi-node-1",
  "componentType" : "Connection",
  "componentName" : "Monitored-success",
  "parentId" : "603017c1-0197-1000-0000-000013171e7c",
  "parentName" : "test",
  "parentPath" : "NiFi Flow / test",
  "platform" : "nifi",
  "application" : "NiFi Flow",
  "componentId" : "508a2293-019a-1000-ffff-fffff15dc582",
  "sourceId" : "5089d4ab-019a-1000-ffff-ffff9b682ab3",
  "sourceName" : "UpdateAttribute",
  "destinationId" : "4dc23b89-25b0-1eff-b974-6fe5425c283f",
  "destinationName" : "UpdateAttribute",
  "maxQueuedBytes" : 0,
  "maxQueuedCount" : 0,
  "queuedBytes" : 30720,
  "queuedCount" : 30,
  "inputBytes" : 0,
  "inputCount" : 0,
  "outputBytes" : 0,
  "outputCount" : 0,
  "backPressureBytesThreshold" : 1073741824,
  "backPressureObjectThreshold" : 10000,
  "backPressureDataSizeThreshold" : "1 GB",
  "isBackPressureEnabled" : "false"
} ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IMPORTANT NOTE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'd also like to point out that Apache NiFi 1.18 was released back in 2021 and newer releases have addressed many bugs and CVEs.&amp;nbsp; I strongly encourage you to transition to a newer version of Apache NiFi.&amp;nbsp; If you aren't ready to migrate to the newer Apache NiFi 2.x major release versions, you can still easily upgrade to last Apache NiFi 1.x major release version (1.28.0).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 14:14:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Guide-for-Apache-NiFi/m-p/413557#M254135</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2026-02-17T14:14:00Z</dc:date>
    </item>
  </channel>
</rss>

