<?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 Turn Text into Attributes in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376224#M242819</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I use NiFi to frequently check if a website is up or down. I get the following response as text in a single Flowfile:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HTTP/1.1: 200 Connection established
Proxy-Agent: Fortinet-Proxy/1.0
Content-Type: image/jpeg
Connection: keep-alive
Date: Tue, 12 Sep 2023 14:05:43 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000
URL: https://test.com&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How can I turn these lines into Key/Value-Pairs or Attributes, to use them with further processors? My goal is to save these Informations in an mySQL Database where the following fields are given:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HTTP/1.1&lt;/LI&gt;&lt;LI&gt;Proxy-Agent&lt;/LI&gt;&lt;LI&gt;Content-Type&lt;/LI&gt;&lt;LI&gt;Connection&lt;/LI&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 14:18:13 GMT</pubDate>
    <dc:creator>CommanderLaus</dc:creator>
    <dc:date>2023-09-12T14:18:13Z</dc:date>
    <item>
      <title>Turn Text into Attributes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376224#M242819</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I use NiFi to frequently check if a website is up or down. I get the following response as text in a single Flowfile:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HTTP/1.1: 200 Connection established
Proxy-Agent: Fortinet-Proxy/1.0
Content-Type: image/jpeg
Connection: keep-alive
Date: Tue, 12 Sep 2023 14:05:43 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000
URL: https://test.com&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How can I turn these lines into Key/Value-Pairs or Attributes, to use them with further processors? My goal is to save these Informations in an mySQL Database where the following fields are given:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;HTTP/1.1&lt;/LI&gt;&lt;LI&gt;Proxy-Agent&lt;/LI&gt;&lt;LI&gt;Content-Type&lt;/LI&gt;&lt;LI&gt;Connection&lt;/LI&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 14:18:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376224#M242819</guid>
      <dc:creator>CommanderLaus</dc:creator>
      <dc:date>2023-09-12T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Text into Attributes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376233#M242821</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106070"&gt;@CommanderLaus&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The easiest way I can think of is to use the ExtractText Processor where you define an attribute as dynamic property and assign the Regex as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1694534042115.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38441i520293725ED252A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1694534042115.png" alt="SAMSAL_0-1694534042115.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did only the first three fields but you can do the others the same way.&lt;/P&gt;&lt;P&gt;If that helps please accept solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 15:55:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376233#M242821</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-09-12T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Turn Text into Attributes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376253#M242833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;that's pretty simple, but works fine for me. Thanks for the advice.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Maik&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 09:50:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Turn-Text-into-Attributes/m-p/376253#M242833</guid>
      <dc:creator>CommanderLaus</dc:creator>
      <dc:date>2023-09-13T09:50:08Z</dc:date>
    </item>
  </channel>
</rss>

