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

Does not support elasticsearch aliases? #88

Open
x4team opened this issue Sep 28, 2022 · 0 comments
Open

Does not support elasticsearch aliases? #88

x4team opened this issue Sep 28, 2022 · 0 comments

Comments

@x4team
Copy link

x4team commented Sep 28, 2022

There is such a configuration in the application

<appender name="ELASTIC" class="com.internetitem.logback.elasticsearch.ElasticsearchAppender"> <url>${elasticURL}/_bulk</url> <index>service-logs-${springProfile}</index> <type>entry</type> <!-- <errorLoggerName>es-error-logger</errorLoggerName> &lt;!&ndash; optional &ndash;&gt;--> <connectTimeout>2000</connectTimeout> <!-- optional (in ms, default 30000) --> <errorsToStderr>false</errorsToStderr> <!-- optional (default false) --> <includeCallerData>false</includeCallerData> <!-- optional (default false) --> <logsToStderr>false</logsToStderr> <!-- optional (default false) --> <maxQueueSize>104857600</maxQueueSize> <!-- optional (default 104857600) --> <maxRetries>3</maxRetries> <!-- optional (default 3) --> <readTimeout>15000</readTimeout> <!-- optional (in ms, default 30000) --> <sleepTime>5000</sleepTime> <!-- optional (in ms, default 250) --> <rawJsonMessage>false</rawJsonMessage> <!-- optional (default false) --> <includeMdc>false</includeMdc> <!-- optional (default false) -->

By default, the service-logs-dev index is used. I deleted it and created a shared service-logs index for which I assigned the alias service-logs-dev. As a result, I tested writing the document to the index using the service-logs-dev alias, everything was successful. But the application refuses to write logs by alias. Only if I specify a specific index. So appender doesn't work with aliases? Thanks for the help

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