<?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>topic Re: Adding splunk logback appender prevents application termination in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324042#M166207</link>
    <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/577988/splunk-logging-logback-appenders-is-not-terminatin.html?minQuestionBodyLength=80"&gt;Here&lt;/A&gt; is the answer to your question.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2017 02:45:20 GMT</pubDate>
    <dc:creator>SNaikwade</dc:creator>
    <dc:date>2017-10-03T02:45:20Z</dc:date>
    <item>
      <title>Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324039#M166204</link>
      <description>&lt;P&gt;I have the following logback configuration and I am using it in a simple java application that does nothing but logging one line. When I uncomment the splunk appender line it won't let the applicaiton exit, eventhough the application is finished. Is there a way to terminate all the logging threads so let the main application exits?&lt;/P&gt;

&lt;P&gt;logback.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;appender name="SPLUNK" class="com.splunk.logging.HttpEventCollectorLogbackAppender"&amp;gt;
    &amp;lt;url&amp;gt;${splunkUrl}&amp;lt;/url&amp;gt;
    &amp;lt;token&amp;gt;${splunkToken}&amp;lt;/token&amp;gt;
    &amp;lt;source&amp;gt;${projectName}&amp;lt;/source&amp;gt;
    &amp;lt;host&amp;gt;${COMPUTERNAME}&amp;lt;/host&amp;gt;
    &amp;lt;sourcetype&amp;gt;batch_application_log:json&amp;lt;/sourcetype&amp;gt;
    &amp;lt;disableCertificateValidation&amp;gt;true&amp;lt;/disableCertificateValidation&amp;gt;
    &amp;lt;!--&amp;lt;messageFormat&amp;gt;json&amp;lt;/messageFormat&amp;gt;--&amp;gt;
    &amp;lt;!--&amp;lt;retries_on_error&amp;gt;1&amp;lt;/retries_on_error&amp;gt;--&amp;gt;
    &amp;lt;layout class="ch.qos.logback.classic.PatternLayout"&amp;gt;
        &amp;lt;pattern&amp;gt;"%msg"&amp;lt;/pattern&amp;gt;
    &amp;lt;/layout&amp;gt;
&amp;lt;/appender&amp;gt;
&amp;lt;root level="INFO"&amp;gt;
     &amp;lt;!--&amp;lt;appender-ref ref="SPLUNK"/&amp;gt;--&amp;gt; if I uncomment this line application never exits
&amp;lt;/root&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the java code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;public class Main {

public static void main(String[] args) {
    final Logger logger = LoggerFactory.getLogger(Main.class);
    logger.info("******");
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 01:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324039#M166204</guid>
      <dc:creator>arash_jalalian</dc:creator>
      <dc:date>2017-09-06T01:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324040#M166205</link>
      <description>&lt;P&gt;Any resolution on this?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 18:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324040#M166205</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-09-21T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324041#M166206</link>
      <description>&lt;P&gt;I haven't found any solution yet. Had to move on with the Universal Forwarders for now.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 22:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324041#M166206</guid>
      <dc:creator>arash_jalalian</dc:creator>
      <dc:date>2017-10-02T22:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324042#M166207</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/577988/splunk-logging-logback-appenders-is-not-terminatin.html?minQuestionBodyLength=80"&gt;Here&lt;/A&gt; is the answer to your question.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 02:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324042#M166207</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-10-03T02:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324043#M166208</link>
      <description>&lt;P&gt;I can't see any answer, maybe you forgot to add a link or something.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 02:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324043#M166208</guid>
      <dc:creator>arash_jalalian</dc:creator>
      <dc:date>2017-10-03T02:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324044#M166209</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/577988/splunk-logging-logback-appenders-is-not-terminatin.html?minQuestionBodyLength=80"&gt;https://answers.splunk.com/answers/577988/splunk-logging-logback-appenders-is-not-terminatin.html?minQuestionBodyLength=80&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 02:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324044#M166209</guid>
      <dc:creator>SNaikwade</dc:creator>
      <dc:date>2017-10-03T02:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324045#M166210</link>
      <description>&lt;P&gt;I also tried the same and facing the same issue. Initially I thought application is not getting terminated on getting exception but same is happening without any exception in Hello World Application. Is there any configuration to prevent this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 22:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324045#M166210</guid>
      <dc:creator>vijay_iiita</dc:creator>
      <dc:date>2018-02-21T22:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324046#M166211</link>
      <description>&lt;P&gt;I also tried the same and facing the same issue. Initially I thought application is not getting terminated on getting exception but same is happening without any exception in Hello World Application. Is there any configuration to prevent this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 22:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324046#M166211</guid>
      <dc:creator>vijay_iiita</dc:creator>
      <dc:date>2018-02-21T22:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324047#M166212</link>
      <description>&lt;P&gt;Hi vijay_iiita&lt;/P&gt;

&lt;P&gt;This question was posted almost 5 months ago. If the comments and the answer weren't able to help you with your question, please post a new question so you can get maximum exposure and help.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 22:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324047#M166212</guid>
      <dc:creator>Anam</dc:creator>
      <dc:date>2018-02-21T22:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding splunk logback appender prevents application termination</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324048#M166213</link>
      <description>&lt;P&gt;Hi asiddique_splunk, &lt;/P&gt;

&lt;P&gt;The only answer suggested here is to add custom middleware which check completion of all events. This doesn't seems to be standard solution and more like workaround. Instead I would expect to have exiting behavior as part of Appender configuration if that is intentional. Non existing behavior may be acceptable for web application but might not be suitable for other application which runs on demand  like AWS lambda or Spark Job. I am trying to upload logs using Splunk HEC appender for Spark job.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 05:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-splunk-logback-appender-prevents-application-termination/m-p/324048#M166213</guid>
      <dc:creator>vijay_iiita</dc:creator>
      <dc:date>2018-02-22T05:44:28Z</dc:date>
    </item>
  </channel>
</rss>

