<?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: log to graylog2 by adding external jar to classpath in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/log-to-graylog2-by-adding-external-jar-to-classpath/m-p/112063#M54770</link>
    <description>&lt;P&gt;
	This works actually, by placing the .jar file into the lib and the lib/bootstrap folder and then just applying the changes to the logback.xml like usually.&lt;/P&gt;&lt;PRE&gt;&amp;lt;appender name="GELF" class="de.siegmar.logbackgelf.GelfUdpAppender"&amp;gt;
  &amp;lt;graylogHost&amp;gt;ip&amp;lt;/graylogHost&amp;gt;
  &amp;lt;graylogPort&amp;gt;12201&amp;lt;/graylogPort&amp;gt;
&amp;lt;/appender&amp;gt;&lt;/PRE&gt;&lt;P&gt;
	I am using de.siegmar:logback-gelf/1.0.3.&lt;/P&gt;&lt;P&gt;
	Issue resolved for me.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 17:36:20 GMT</pubDate>
    <dc:creator>jw1</dc:creator>
    <dc:date>2017-02-17T17:36:20Z</dc:date>
    <item>
      <title>log to graylog2 by adding external jar to classpath</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/log-to-graylog2-by-adding-external-jar-to-classpath/m-p/112062#M54769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in order to log errors and stacktraces to Graylog2 I had the following intention&lt;/P&gt;&lt;P&gt;- manually put the &lt;A href="https://github.com/Moocar/logback-gelf" target="_blank"&gt;https://github.com/Moocar/logback-gelf&lt;/A&gt; as a jar into the nifi dir&lt;/P&gt;&lt;P&gt;- add the jar to the classpath&lt;/P&gt;&lt;P&gt;- change the logback config and add the gelf-appender.&lt;/P&gt;&lt;P&gt;Now, nifi.sh is only loading the bootstrap process that runs nifi. So adding the jar to the cp there is no help. Any idea how I can achieve the effect without touching the nifi source and compile myself?&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:16:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/log-to-graylog2-by-adding-external-jar-to-classpath/m-p/112062#M54769</guid>
      <dc:creator>jw1</dc:creator>
      <dc:date>2017-02-17T17:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: log to graylog2 by adding external jar to classpath</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/log-to-graylog2-by-adding-external-jar-to-classpath/m-p/112063#M54770</link>
      <description>&lt;P&gt;
	This works actually, by placing the .jar file into the lib and the lib/bootstrap folder and then just applying the changes to the logback.xml like usually.&lt;/P&gt;&lt;PRE&gt;&amp;lt;appender name="GELF" class="de.siegmar.logbackgelf.GelfUdpAppender"&amp;gt;
  &amp;lt;graylogHost&amp;gt;ip&amp;lt;/graylogHost&amp;gt;
  &amp;lt;graylogPort&amp;gt;12201&amp;lt;/graylogPort&amp;gt;
&amp;lt;/appender&amp;gt;&lt;/PRE&gt;&lt;P&gt;
	I am using de.siegmar:logback-gelf/1.0.3.&lt;/P&gt;&lt;P&gt;
	Issue resolved for me.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 17:36:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/log-to-graylog2-by-adding-external-jar-to-classpath/m-p/112063#M54770</guid>
      <dc:creator>jw1</dc:creator>
      <dc:date>2017-02-17T17:36:20Z</dc:date>
    </item>
  </channel>
</rss>

