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

Order of log entries not maintained #261

Open
johncurrier opened this issue Oct 19, 2022 · 0 comments
Open

Order of log entries not maintained #261

johncurrier opened this issue Oct 19, 2022 · 0 comments

Comments

@johncurrier
Copy link

johncurrier commented Oct 19, 2022

When we log multiple events during the same millisecond the order that they're logged isn't maintained when viewing those events in Splunk. Note that we're using a batch_size_count (which should be batchSizeCount, but that's a different issue) of 1 since we want to increase the chance that all events get persisted to Splunk.

logback.xml exhibiting the issue:

<configuration>
<appender name="splunk" class="com.splunk.logging.HttpEventCollectorLogbackAppender">
<url>${SPLUNK_URL}</url>
<token>${SPLUNK_TOKEN}</token>
<index>${SPLUNK_INDEX}</index>
<host>${SPLUNK_HOST}</host>
<connectTimeout>2000</connectTimeout>
<writeTimeout>1000</writeTimeout>
<batch_size_count>1</batch_size_count>
<includeMDC>false</includeMDC>
<includeThreadName>false</includeThreadName>

<layout class="ch.qos.logback.contrib.json.classic.JsonLayout">
<jsonFormatter class="ch.qos.logback.contrib.jackson.JacksonJsonFormatter">
<prettyPrint>false</prettyPrint>
</jsonFormatter>

<includeTimestamp>false</includeTimestamp>
<includeLevel>false</includeLevel>
<includeLoggerName>false</includeLoggerName>
<includeMDC>false</includeMDC>
<includeThreadName>false</includeThreadName>
<includeContextName>false</includeContextName>
</layout>
</appender>

<root level="info">
<appender-ref ref="splunk" />
</root>
</configuration>
`

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