<?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: What is best way to  read nifi logs and put in MongoDb ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322061#M228660</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90810"&gt;@Green_&lt;/a&gt;&amp;nbsp; Filtering means I may need to ignore some INFO level logs and consider only DEBUG or ERROR level logs... and I dont have to be using native nifi processors only.. but right way of doing is importtant.&lt;/P&gt;&lt;P&gt;Please suggest if you see an other way&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 05:43:08 GMT</pubDate>
    <dc:creator>hegdemahendra</dc:creator>
    <dc:date>2021-08-05T05:43:08Z</dc:date>
    <item>
      <title>What is best way to  read nifi logs and put in MongoDb ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322050#M228657</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where nifi flows imp log information should be written to MongDB, so that another application can read mongodb and display those interesting logs info on web UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for best way to do this.&lt;/P&gt;&lt;P&gt;One way I am thinking of is tail nifi log (using tail file processor) and filter for imp log and put into MongoDb using native processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest if any other better approaches,&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 16:36:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322050#M228657</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2021-08-04T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is best way to  read nifi logs and put in MongoDb ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322051#M228658</link>
      <description>&lt;P&gt;Your approach sounds perfectly reasonable if you only plan to use native nifi tools. I didn't fully understand what kind of filtering you meant, but simply reading the logs with the TailFile processor and sending them to mongo with the PutMongo processor sounds like it would work for your use-case.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 19:44:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322051#M228658</guid>
      <dc:creator>Green_</dc:creator>
      <dc:date>2021-08-04T19:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is best way to  read nifi logs and put in MongoDb ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322061#M228660</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90810"&gt;@Green_&lt;/a&gt;&amp;nbsp; Filtering means I may need to ignore some INFO level logs and consider only DEBUG or ERROR level logs... and I dont have to be using native nifi processors only.. but right way of doing is importtant.&lt;/P&gt;&lt;P&gt;Please suggest if you see an other way&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 05:43:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322061#M228660</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2021-08-05T05:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is best way to  read nifi logs and put in MongoDb ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322062#M228661</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filtering like that in nifi could work though it might be a bit resource intensive depending on the logs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be worth checking out a different tool specifically designed for handling logs. I've written logs to elasticsearch using logstash in the past,&amp;nbsp; perhaps it could also work for writing to a mongodb.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 06:08:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322062#M228661</guid>
      <dc:creator>Green_</dc:creator>
      <dc:date>2021-08-05T06:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is best way to  read nifi logs and put in MongoDb ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322226#M228725</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/90810"&gt;@Green_&lt;/a&gt;&amp;nbsp; - Can I have a custom appender configured in logback.xml to collect logs and put that in MongoDB ? would that be possible with nifi logs ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 06:51:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322226#M228725</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2021-08-09T06:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is best way to  read nifi logs and put in MongoDb ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322353#M228760</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/37332"&gt;@hegdemahendra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found &lt;A href="https://www.google.com/amp/s/pierrevillard.com/2017/05/12/monitoring-nifi-logback-configuration/amp/" target="_blank" rel="noopener"&gt;this article&lt;/A&gt;&amp;nbsp;by Pierre V. Where he goes into deeper detail about the logback.xml file. He mentions something that might be relevant to what you're looking for - the following two passages are what caught my eye:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;"We can also define new appenders in the log configuration file and change it according to our needs. In particular, we could be interested by the SMTP Appender that can send logs via emails based on quite a large set of conditions. Full documentation here."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Obviously&amp;nbsp; you can also configure this configuration file so that NiFi log files integrate with your existing systems. An idea could be to configure a Syslog appender to also redirect the logs to an external system."&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;I myself have never done something like this, but it sounds like a step in the right direction for directly writing logs from nifi to mongo.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 21:12:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-best-way-to-read-nifi-logs-and-put-in-MongoDb/m-p/322353#M228760</guid>
      <dc:creator>Green_</dc:creator>
      <dc:date>2021-08-10T21:12:42Z</dc:date>
    </item>
  </channel>
</rss>

