<?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 HEC Appender logging slow in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687943#M11484</link>
    <description>&lt;P&gt;Logging a single line to Splunk is taking about 30ms with the HEC appender.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g, the result of the below is 30ms.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Long start1 = System.currentTimeMillis(); 
log.info("Test logging"); 
Long start2 = System.currentTimeMillis(); 
log.info("logTime={}", start2 - start1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is our logback config -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kombi_0-1715999515555.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30864i352C1BFC1A000926/image-size/large?v=v2&amp;amp;px=999" role="button" title="kombi_0-1715999515555.png" alt="kombi_0-1715999515555.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Taking 30 ms is too long for a single log action. Are we missing anything in the config&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2024 02:35:47 GMT</pubDate>
    <dc:creator>kombi</dc:creator>
    <dc:date>2024-05-18T02:35:47Z</dc:date>
    <item>
      <title>HEC Appender logging slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687943#M11484</link>
      <description>&lt;P&gt;Logging a single line to Splunk is taking about 30ms with the HEC appender.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g, the result of the below is 30ms.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Long start1 = System.currentTimeMillis(); 
log.info("Test logging"); 
Long start2 = System.currentTimeMillis(); 
log.info("logTime={}", start2 - start1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is our logback config -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kombi_0-1715999515555.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30864i352C1BFC1A000926/image-size/large?v=v2&amp;amp;px=999" role="button" title="kombi_0-1715999515555.png" alt="kombi_0-1715999515555.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Taking 30 ms is too long for a single log action. Are we missing anything in the config&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 02:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687943#M11484</guid>
      <dc:creator>kombi</dc:creator>
      <dc:date>2024-05-18T02:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Appender logging slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687947#M11485</link>
      <description>&lt;P&gt;What do you mean by "takes 30ms"? Measured how - from when till when?&lt;/P&gt;&lt;P&gt;Did you do a tcpdump to check packets timeline?&lt;/P&gt;&lt;P&gt;Did you test just a single event or pushed in batch?&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2024 05:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687947#M11485</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-18T05:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: HEC Appender logging slow</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687977#M11486</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We re measuring with a code snippet like the below, the time before we called the logger subtract the time the logger completed.&lt;/P&gt;&lt;PRE&gt;Long start1 = System.currentTimeMillis(); 
log.info("Test logging"); 
Long start2 = System.currentTimeMillis(); 
log.info("logTime={}", start2 - start1);&lt;/PRE&gt;&lt;P&gt;We have not use a tcpdump yet as this is running on a container, not able to use batch too since we needed type=raw which don't support batch configs from my understanding. Is there a way to work with Raw type and send as batch?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 02:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/HEC-Appender-logging-slow/m-p/687977#M11486</guid>
      <dc:creator>kombi</dc:creator>
      <dc:date>2024-05-20T02:13:36Z</dc:date>
    </item>
  </channel>
</rss>

