<?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 send kafka topic as header when publishing data to another topic in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379536#M243880</link>
    <description>&lt;P&gt;i want to send value of &lt;STRONG&gt;kafka.topic as header&lt;/STRONG&gt; i.e (the topic from where i consumed message) to publish topic (another topic) by using publish processor.&lt;/P&gt;&lt;P&gt;But iam getting below error in publish processor-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot1.png" style="width: 856px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39002iD825B8042D7C8B3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot1.png" alt="Screenshot1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot2.png" style="width: 825px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39003i7C1F28A43D2E9A10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot2.png" alt="Screenshot2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2023 09:04:10 GMT</pubDate>
    <dc:creator>Rohit1997jio</dc:creator>
    <dc:date>2023-11-24T09:04:10Z</dc:date>
    <item>
      <title>send kafka topic as header when publishing data to another topic in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379536#M243880</link>
      <description>&lt;P&gt;i want to send value of &lt;STRONG&gt;kafka.topic as header&lt;/STRONG&gt; i.e (the topic from where i consumed message) to publish topic (another topic) by using publish processor.&lt;/P&gt;&lt;P&gt;But iam getting below error in publish processor-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot1.png" style="width: 856px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39002iD825B8042D7C8B3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot1.png" alt="Screenshot1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot2.png" style="width: 825px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39003i7C1F28A43D2E9A10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot2.png" alt="Screenshot2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 09:04:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379536#M243880</guid>
      <dc:creator>Rohit1997jio</dc:creator>
      <dc:date>2023-11-24T09:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: send kafka topic as header when publishing data to another topic in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379592#M243889</link>
      <description>&lt;P&gt;The error tells you it needs to be a regular expression matching the attribute you wish to send so if it's &lt;EM&gt;kafka.topic&lt;/EM&gt; it could be that literally or more accurately would be &lt;EM&gt;kafka\.topic&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 17:53:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379592#M243889</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-11-24T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: send kafka topic as header when publishing data to another topic in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379633#M243896</link>
      <description>&lt;P&gt;kafka.topic is a key , it will have value of a kafka topic name e.g abc_xyz&amp;nbsp; .&lt;/P&gt;&lt;P&gt;this value will keep on depending from where iam consuming the meassge , from which topic .&lt;/P&gt;&lt;P&gt;my requirement is to send the topic from where i consumed as header to the topic where iam publishing it .&lt;/P&gt;&lt;P&gt;how can i do that ??&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 16:39:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379633#M243896</guid>
      <dc:creator>Rohit1997jio</dc:creator>
      <dc:date>2023-11-26T16:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: send kafka topic as header when publishing data to another topic in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379634#M243897</link>
      <description>&lt;P&gt;Yes, the regular expression it's asking for is that of the attribute containing the value you want... It's not asking for the value. Since you want the value of the attribute kafka.topic (name/key) then this is what the regular expression you need to match. Have you tried just putting what I previously recommended "kafka\.topic"?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 01:54:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379634#M243897</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-11-27T01:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: send kafka topic as header when publishing data to another topic in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379757#M243917</link>
      <description>&lt;P&gt;&lt;SPAN&gt;kafka\.topic&amp;nbsp; , i tried adding this&amp;nbsp; , but it did not work . I checked kafka headers too there also nothing being printed in haeder.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 13:45:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379757#M243917</guid>
      <dc:creator>Rohit1997jio</dc:creator>
      <dc:date>2023-11-28T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: send kafka topic as header when publishing data to another topic in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379758#M243918</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105558"&gt;@joseomjr&lt;/a&gt;&amp;nbsp;Is on to the right solution here.&amp;nbsp; Your regex statement should match "kafka.topic" not "${kafka.topic}".&amp;nbsp; &amp;nbsp; &amp;nbsp;A quick test in regex101.com confirms&amp;nbsp;&lt;SPAN&gt;"kafka\.topic" should match.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 13:47:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/send-kafka-topic-as-header-when-publishing-data-to-another/m-p/379758#M243918</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2023-11-28T13:47:01Z</dc:date>
    </item>
  </channel>
</rss>

