Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logback Appender and message size #271

Open
ottuzzi-at-vegans opened this issue Jun 26, 2023 · 0 comments
Open

Logback Appender and message size #271

ottuzzi-at-vegans opened this issue Jun 26, 2023 · 0 comments

Comments

@ottuzzi-at-vegans
Copy link

Hi all,

we are using HttpEventCollectorLogbackAppender in raw mode and it looks like sent messages are somehow cut at a bit less than 10240 bytes.
Checking source code I see there is a limit in batchSize (coincidential?) at 10240 and I cannot override it as we are in raw mode[1]: is there any tip around this issue? Sometime we need to send large-ish json payload in the message and we are losing informations.
This is our logback.xml configuration:

			<appender name="SPLUNK_APPENDER"
				class="com.splunk.logging.HttpEventCollectorLogbackAppender">
				<url>${SPLUNK_URL}</url>
				<token>${SPLUNK_TOKEN}</token>
				<index>${SPLUNK_INDEX}</index>
				<!-- disableCertificateValidation should be true as we do not use valid certificates -->
				<disableCertificateValidation>true</disableCertificateValidation>
				
				<source>${SOURCE}</source>
				<sourcetype>logback</sourcetype>
				<messageFormat>text</messageFormat>
				<type>raw</type>
				<layout class="ch.qos.logback.classic.PatternLayout">
					<pattern>%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX, UTC} %.-3level SPAN_ID=%X{span_id} TRACE_ID=%X{trace_id} callId=%X{CALL_ID} uID=%X{USER_ID} ST=%X{SESSION_TOKEN} CH=%X{CHANNEL} %logger{35} - %msg%n%xException</pattern>
				</layout>
			</appender>

Thanks in advance for any help

[1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant