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

Configuring index.max_docvalue_fields_search #78

Open
vitorqshr opened this issue Oct 26, 2020 · 0 comments
Open

Configuring index.max_docvalue_fields_search #78

vitorqshr opened this issue Oct 26, 2020 · 0 comments

Comments

@vitorqshr
Copy link

Hello everyone

I am getting the above error:

Trying to retrieve too many docvalue_fields. Must be less than or equal to: [100] but was [118]. This limit can be set by changing the [index.max_docvalue_fields_search] index level setting.

with this configuration:

<appender name="ELASTIC" class="com.internetitem.logback.elasticsearch.ElasticsearchAppender">
       <url>{URL}</url>
       <index>logs-%date{yyyy-MM-dd}</index>
       <type>tester</type>
       <loggerName>es-logger</loggerName> <!-- optional -->
       <errorLoggerName>es-error-logger</errorLoggerName> <!-- optional -->
       <connectTimeout>30000</connectTimeout> <!-- optional (in ms, default 30000) -->
       <errorsToStderr>false</errorsToStderr> <!-- optional (default false) -->
       <includeCallerData>false</includeCallerData> <!-- optional (default false) -->
       <logsToStderr>false</logsToStderr> <!-- optional (default false) -->
       <maxRetries>3</maxRetries> <!-- optional (default 3) -->
       <readTimeout>30000</readTimeout> <!-- optional (in ms, default 30000) -->
       <sleepTime>250</sleepTime> <!-- optional (in ms, default 250) -->
       <rawJsonMessage>false</rawJsonMessage> <!-- optional (default false) -->
       <includeMdc>false</includeMdc> <!-- optional (default false) -->
       <maxMessageSize>100</maxMessageSize> <!-- optional (default -1 -->
       <authentication class="com.internetitem.logback.elasticsearch.config.BasicAuthentication" /> <!-- optional -->
       <properties>
           <property>
               <name>host</name>
               <value>${HOSTNAME}</value>
               <allowEmpty>false</allowEmpty>
           </property>
           <property>
               <name>severity</name>
               <value>%level</value>
           </property>
           <property>
               <name>thread</name>
               <value>%thread</value>
           </property>
           <property>
               <name>stacktrace</name>
               <value>%ex</value>
           </property>
           <property>
               <name>logger</name>
               <value>%logger</value>
           </property>
       </properties>
       <headers>
           <header>
               <name>Content-Type</name>
               <value>application/json</value>
           </header>
       </headers>
   </appender>

Is there a way to configure the variable max_docvalue_fields_search or should it be done in elastic?

Thanks in advance

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